PDFium Component Docs

SetPageBox Methode

Dieser API-Eintrag behält Bezeichner, Signaturen, Codeblöcke und PDF-Begriffe in ihrer Originalform.
Komponente: TPdf  ·  Unit: PDFium
Schreibt ein neues Rechteck für die benannte Seitenbox (MediaBox / CropBox / BleedBox / TrimBox / ArtBox) auf die aktuelle Seite

Syntax

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

Beschreibung

Schreibt ein neues Rechteck für die benannte Seitenbox (MediaBox / CropBox / BleedBox / TrimBox / ArtBox) auf die aktuelle Seite

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

Wraps the corresponding PDFium API and exposes it as a TPdf instance member so consumers do not have to manage FPDF_DOCUMENT handles directly.

Hinweise

Beispiel

if Pdf1.Active then
  Pdf1.SetPageBox;

Siehe auch

GetPageBox, PageBox, PageBounds