Output Format
Output formats are written in XML and contain the following information:
- A FOP configuration
- The orientation of the page
- A set of stylesheets
Output Format
Output formats are written in XML and contain the following information:
Recommendation:
If you need an output format with another page format to
follow your corporate visual identity, customize your output format. For example, in
stylesheets, you can specify the default page size or specify where your customized
fonts are located.
Generation ProcessYou can interact in the generation process to customize the look of your report file. The following diagram presents an extract of the transformation process:
Structure and CustomizationTo define your PDF generation look, follow the tips given below:
The PDF output format looks like a ZIP file, which contains a set of files as in the following structure: <PdfOutputFormatDir>
| portrait.pdf or landscape.pdf
\---pdfConfiguration
| fop.xml
\---standard
\---xsl
| commons.xsl
| custoFo.xsl
| ...
+---common
+---fo
+---html
+---lib
\---params
Modify only the following files:
Useful InformationFontsSome font families such as the ones in the table below are hard-coded into FOP and are directly mapped as follows:
TablesSome specific styles can be associated with a table, for more information see Chart Styles for Tables. External ReferencesThe below links provide you with more information about the technologies used. About the DocBook Projecthttps://docbook.sourceforge.net/ A customized subset of the DocBook format is used. When you generate an XML report, the XML generated for PDF is slightly the same. About XSL (XML Stylesheet Language)Corresponds to the language that you must know for the PDF output format customization. About XSL-FO (XSL with Formatting Objects)https://www.w3.org/TR/xsl/#fo-section (Formatting Objects) https://www.w3.org/TR/xsl/#FO-summary (Formatting Object Summary) The specific features that you need to know to produce or tweak the PDF content from the XSL. About Apache FOPhttps://xmlgraphics.apache.org/fop/ (The Apache™ FOP Project) https://xmlgraphics.apache.org/fop/compliance.html (Compliance) The technology used to convert an XML into PDF using XSL-FO. | |||||||||||||||||||||||||||||||||||||||||||||||||||