PDF Page Settings

Top Previous Topic Next Topic  Print this topic

XF Rendering Server offers support for different page properties regarding the .PDF output file, through the xf:pdf-page-settings extension.

This extension must be a "child" of the fo:root element.

 

Example of usage:

 

 

       <?xml version="1.0" encoding="utf-8" ?>

       <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0">

               <xf:pdf-page-settings pdf-conformance="PDF/A-1b:2005" embed-true-type-fonts="true"></xf:pdf-page-settings>

               <fo:layout-master-set>

                  ...

               <fo:layout-master-set>

       </fo:root>

 

 

·embed-true-type-fonts can be set to: "true" | "false" | "subset".

This extension controls how the fonts will be embedded in the PDF output.

When using the "subset" value, each character will be embedded only once and additional font codes will be generated.

When using the "true" value, each font will be embedded separately and no codes will be generated in the output, but the generated PDF will have a larger file size.

 

·pdf-conformance - sets the type of conformance for the PDF output file. The available values are: "PDF/X-1a" | "PDF508" | "PDF/A-1a" | "PDF/A-1b".

PDF/A is a standard that defines a format for the long-term archiving of electronic documents and is based on the PDF Reference Version 1.4., while the purpose of PDF/X is to facilitate graphics exchange.

PDF508 compliance requires that electronic and information technology must be accessible for people with disabilities.

 

·The default pdf version is "1.4".

 

Also, the option to set the trim box and bleed box is available in XF Rendering Server, using the xf:bleed-box and xf:trim-box extensions. These extensions are "children" elements of fo:simple-page-master and have the following attributes:

·x
·y
·width
·height

All the above attributes are length type and their default value is "0".