Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 611

Previous Page 610   Index   Next Page 612

Function Reference
Page 611 of 750
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
present.
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.
Remarks:
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
Headline
Trim Box
Art Box
1
2
3
4
 

Previous topic: SetBBox

Next topic: SetBookmarkDest