The information you seek is in the PageDeivce dictionary.
The ps string currentpagedevice /PageSize get will put the PageSize array on the stack. Other useful information is also found in this dictionary. To view all of the Key/Value pairs in a dictionary use the following: nameofdictionary {exch =string cvs print ( ---> ) print ==} forall
Yeah, that's a pretty big detail! PDFs aren't PostScript files. Perhaps the question would be more appropriately posted in the Acrobat forum.
A PostScript programming solution has no applicability at all to a PDF file.
If you're working with a PDF file, you'll likely need to use a component that traverses the PDF object hiearchy look for the /MediaBox and /CropBox dictionary entries.
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.