I am creating a small application in which I open a existing PDF and then check whether the individual pages are in A4 or not. If pages are not in A4 then convert them to A4.
I am facing two problems now:
- How to check whether the page in PDF is in A4 or not?
- During the conversion of a non-A4 page to A4, the text outside the A4 page frame is omitted. Therefore it cause some loss of content.
How can I get around these two issues?