PeachDrawing.PDF.PdfComposerPage
PdfComposerPage.SetPrintBoxes(double, double) Method
Makes the sheet larger than the page, for print production: the page box (the size given to AddPage(double, double))
becomes the /TrimBox, the /BleedBox extends it by bleedPoints on every side, and the
/MediaBox extends it by bleedPoints plus outsidePoints, which is room for printer’s marks.
public void SetPrintBoxes(double bleedPoints, double outsidePoints);
Parameters
bleedPoints System.Double
how far the bleed area extends beyond the page box, in points; not negative
outsidePoints System.Double
how much further the sheet extends beyond the bleed area, in points; not negative
Exceptions
System.ArgumentOutOfRangeException
a distance is negative or not a finite number
Remarks
Drawing keeps its origin at the page box’s top-left corner, so what is drawn at a negative coordinate (or past the page’s width or height) lands in the bleed and mark area. The boxes are written when the document is saved, and WidthPoints, HeightPoints and the coordinates links and bookmarks use stay the page box’s throughout.