DynaPDF Manual - Page 635

Previous Page 634   Index   Next Page 636

Function Reference
Page 635 of 777
because the bounding box defines also the coordinate origin of the page. Predefined paper formats
can also be set with the function SetPageFormat().
It is also possible to change the bounding box of a template or pattern with this function. These
object types support the media box only; the other bounding boxes are ignored. Note that the
coordinates of the objects inside a page, template or pattern depends on the coordinate origin of the
media box.
The crop box crops the page as the name suggests. The crop box represents also the paper format if
If the width of a bounding box is less than 1 unit the function deletes the bounding box from the
object. The media box is required, it cannot be deleted.
The minimum page size is 3 x 3 Units; the maximum is 14,400 x 14,400 Units. The minimum size of a
template or pattern is 1 x 1 Units and the maximum is 14,400 x 14,400 Units.
If a page with more than 14,400 Units should be created then it is possible to scale the page format
with SetUserUnit(). A User Unit is an additional scaling factor that is used to calculate the page
format. This makes it possible to create extremely large page formats without exceeding the limits of
the page coordinate system.
No bounding box of a page should be larger than the media box.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Bounding boxes:
Media Box
Bleed Box
Trim Box
Art Box

Previous topic: SetBBox

Next topic: SetBookmarkDest