Document page size?

Help
abevig
2010-07-13
2013-05-28
  • abevig
    abevig
    2010-07-13

    I'm new to JPod, it is working very well for me thus far.  One question - how do I specify the page size for a new document?

     
  • mtraut
    mtraut
    2010-07-13

    The page size is determined by the "boxes" of a page. You do not set this for the whole document. Boxes are inherited, so you can set them at the pages root. You find the accessors in PDPageNode, e.g. get/setMediaBox. If you need some of the more exotic boxes you can still use get/setFieldObject.

     
  • abevig
    abevig
    2010-07-13

    Thanks!  That fixed my problem.