GraffitiPDFDocument

Enumerations #

Name Values
Formats A0
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
B0
B1
B2
B3
B4
B5
B6
B7
B8
B9
B10
C0
C1
C2
C3
C4
C5
C6
C7
C8
C9
C10
Executive
Folio
Legal
Letter
Tabloid
RA0
RA1
RA2
RA3
RA4
SRA0
SRA1
SRA2
SRA3
SRA4
Orientations Portrait
Landscape

Constants #

Name Type Value

This class exposes no constants.

Events #

Definition Parameters Return Type Description

This class exposes no events.

Methods #

Definition Parameters Return Type Description
AddCSS css as String None Adds the provided CSS block to the document before building.
AddFont font as GraffitiPDFFont None Adds the provided font to the document before rendering.
Constructor content as String None Creates a new instance of the class.

Properties #

Name Type Default Value Description
Compress Boolean True When True, the PDF will be compressed to reduce file size.
Content String “” HTML content of the PDF.
Format Formats A0 Page dimensions.
Metadata GraffitiPDFMetadata Nil Document metadata, such as author.
Orientation Orientations Portrait Page display orientation.
Protection GraffitiPDFProtection Nil Allows for PDF file protection, such as password-based access or read-only.
Template GraffitiPDFTemplate Nil Page headers and footers.
Watermark String “” Allows the addition of a watermark string to each page of the document.

Examples #

This class currently has no examples.

Notes #

This class currently has no notes.