This content has been marked as final. Show 4 replies
Look at the method getPageBox of the Doc object in the documentation.
Thanks for your reply.
Can I get the pdf's page size like A4?I hope divide A3 size and A4 size in pdf files.
The method returns a rectangle in rotated user space,
The page size will not always necessarily conform to a standard size such as A4 - PDFs can be defined at any abstract size a user wants. Having a function that only output standard sizes would greatly limit its ability, so it was left up to the user to calculate whether or not the returned rectangle is a standard size as that satisfies many more workflows than the opposite method.