PDFium Component Docs

SetPageBox method

Component: TPdf  ·  Unit: PDFium
Upisuje novi pravokutnik za imenovani okvir stranice (MediaBox / CropBox / BleedBox / TrimBox / ArtBox) na trenutačnoj stranici

Syntax

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

Description

Writes a new rectangle for the named page box (MediaBox / CropBox / BleedBox / TrimBox / ArtBox) na trenutnoj stranici.

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

Omotava odgovarajući PDFium API i izlaže ga kao član instance TPdf tako da korisnici ne moraju izravno upravljati FPDF_DOCUMENT ručkama.

Remarks

Example

if Pdf1.Active then
  Pdf1.SetPageBox;

See Also

GetPageBox, PageBox, PageBounds