Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
How To
Syntax
FAQ
License

PDF custom CSS support



There is a limited level of support for custom element styles in the PDF generation.

Supported elements

The following elements are supported:
  • title elements: h<x> tag
  • box elements: div tag
  • table elements: column and cell tags
  • image elements: caption tag
  • references elements: a tag
  • hyperlink elements: a tag
  • ul elements: ul tag
  • ol elements: ol tag
  • "li" elements: li tag

Supported properties

For hx elements

  • "color"

For column elements

  • "background-color"
  • "color"

For cell elements

  • "width"
  • "font-size"

For caption elements

  • "caption"
  • "text-align"

For a elements

  • "font-style"

For ul and ol elements

  • "list-style"

For li elements

  • "font-size"

Example of generation with ant

  <java classname="org.docgene.main.DocGenerator">
     <arg value="-input=wiki/input"/>
     <arg value="-output=wiki/output"/>
     <arg value="-fileName=docGeneratorWiki"/>
     <arg value="-outputType=pdf"/>
     <arg value="-css=myStyles.css"/>
     <classpath>
        <pathelement path="docGenerator.jar"/>
     </classpath>
  </java>

See also


Categories: pdf

docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.