GraffitiPDFTemplate

View Categories

Enumerations #

Name Values

This class exposes no enumerations.

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
Constructor None None Creates a new instance of the class.
Constructor headerLeft as String None Creates a new instance of the class and assigns the parameters to their corresponding properties.
headerCenter as String
headerRight as String
footerLeft as String
footerCenter as String
footerRight as String

Properties #

Name Type Default Value Description
FooterCenter String None Text to display in the center of each page’s footer.
FooterLeft String None Text to display at the left of each page’s footer.
FooterRight String None Text to display at the right of each page’s footer.
HeaderCenter String None Text to display in the center of each page’s header.
HeaderLeft String None Text to display at the left of each page’s header.
HeaderRight String None Text to display at the right of each page’s header.

Examples #

Page Numbering #

For page numbering, the variables %x and %y are parsed when the PDF is rendered. %x corresponds to the current page while %y corresponds to page count.

The following example will show the current page’s number and total page count in the center position of both the header and footer.

gwPDF.PageTemplate = new GraffitiPDFTemplate( "Header Left", "Page %x of %y", "Header Right", "Footer Left", "Page %x of %y", "Footer Right" )

Notes #

This class currently has no notes.