PDFium Component Docs

SetPageBox-metodi

Component: TPdf  ·  Unit: PDFium
Kirjoittaa uuden suorakulmion nimetylle sivulaatikolle (MediaBox / CropBox / BleedBox / TrimBox / ArtBox) nykyisellä sivulla.

Syntax

procedure SetPageBox(Box: TPdfPageBox; const Rectangle: TPdfRectangle);

Description

Writes a new rectangle for the named page box (MediaBox / CropBox / BleedBox / TrimBox / ArtBox) on the current page.

Call UpdatePage after to commit the change; required to crop or pad printable PDFs.

Käärii vastaavan PDFium-API:n ja altistaa sen TPdf-instanssin jäsenenä, joten kuluttajien ei tarvitse hallita FPDF_DOCUMENT-kahvoja suoraan

Remarks

Example

if Pdf1.Active then
  Pdf1.SetPageBox;

See Also

GetPageBox, PageBox, PageBounds