*TEMPLATE (PRTPAGE)
PLBCMP GUI Only, 9.6B
*TEMPLATE={string}
This advanced print control allows a page from a secondary PDF file to be included as a PDF object in the current page being generated for PDF output. This control allows a template page to be combined with PL/B program data to be generated into a single PDF output file. The template page used from the secondary PDF is not presented in the Print Preview.
This advanced print control takes a comma separated list of fields as provided in the <string> data string. Each field is composed of a field identifier assigned using a '=' character followed by field data. The data <string> field data can be specified with or without double quote characters.
The following *TEMPLATE fields are supported:
Where:
Fields:
Notes:
The *TEMPLATE control is implemented to extract PDF pages and objects from a Sunbelt PDF formatted document. If a PL/B application creates a Sunbelt PDF document, this Sunbelt PDF document can be used as the template PDF document referenced by the *TEMPLATE control. A Sunbelt template PDF document has the following requirements:
The
template PDF cannot have more than five hundred (500) objects where the objects are determined as follows:
|
Count |
Object Type |
|
1 |
Each Unique image |
|
1 |
Each Unique font |
|
2 |
Each page in the PDF document |
PDF
encryption is not allowed.
PDF
compression is not allowed.
A
maximum of 20 images per page are allowed.
A
maximum of 20 fonts per page are allowed.
If a 3rd party PDF document meets the criteria as outlined for a Sunbelt PDF template document, it might work with the *TEMPLATE control if basic PDF objects and formats are being used.
The default behavior when using a 3rd party PDF document as a template is that it must meet the criteria as outlined for a Sunbelt PDF template document. It might work with the *TEMPLATE control if basic PDF objects and formats are being used in the third party PDF template. However, if the 'G' command is specified in the *TEMPLATE command {string}, the third party PDF template is processed to extract the PDF objects and resources without knowing the PDF object syntax structures. The 'G' command can be used to improve the ability to use more complex 3rd party PDF templates.
When the *Template control embeds PDF page objects into the current PDF output file, the PDF page objects are optimizes to re-use the first page object multiple times as needed. The PDF page object optimization helps to reduce the size of a PDF document the includes the multiple page objects.
Example:
See Also: List Controls (PRTPAGE), PRTPAGE
![]() |