Create two identical PDFS -- one for A4 and the other for A3. Open each of them in a text editor. You'll see a block of text at the start of the file, this being the file header. Somewhere in there is the page size. This is plain text, so you only have to look to see what's different between the A3 and the A4 versions.
Once you know that, it should be easy to read the file into a variable (using FILETOSTR()) and test the relevant characters.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Thanks Mike but it is more than this.
Using FILETOSTR() you must find "MediaBox" parameter.
MediaBox give you the paper size of pdf document in points.
ex. A4 = 595 x 842 points
For more information you can read PDFReference16.pdf from
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.