Joget DX Beta Available for Download

Check out Joget DX, the next generation successor to Joget Workflow for faster, simpler digital transformation.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Formatting (CSS)

CSS to be included when generating pdf file.

The Advanced > Formatting (CSS) field gives you formatting options (font size and color) for the output. 

Available CSS Classes: 


Code Block
- Wildcard. Everything in the form.
- Container of a section
- Container of section title
- Container of column
- Container of field
- Label of field
//Sub Form
- Container of a Subform
- Container of Subform title
- Container of section in Subform
- Container of section title in Subform
- Container of column in Subform
- Container of field in Subform
- Container of configured header
- Container of configured footer


Figure 5: This figure illustrates the CSS classes used in the form layout.


Code Block
//Change all word to blue color
*, .form-cell{
//Change all word to smaller size
*, .form-cell{
//Change all label format to underline
//Transform all header format to uppercase


Font & Unicode 

There are a few fonts (added by default) that you can use in CSS formatting.  They are:


Code Block
serif, sans-serif, monospace, Courier, TimesRoman,


For Unicode content, you can use the following fonts for Asian languages (i.e., Chinese, Traditional Chinese, Japanese, Korean):


Code Block
STSong-Light, MSung-Light, HeiseiMin-W3,  HYGoThic-Medium


Note : "STSong-Light" gives the best result for Chinese; "MSung-Light" for Traditional Chinese; "HeiseiMin-W3" for Japanese; and "HYGoThic-Medium" for Korean.


Code Block


Example for Thai Unicode:

1. Add the following CSS into Export Form Email Tool > "Formatting (CSS)" field:

Code Block
@font-face {
    src: url(http://localhost:8080/THSarabun.ttf);
    -fs-pdf-font-embed: embed;
    -fs-pdf-font-encoding: Identity-H;
*{font-family: 'TH SarabunPSK';}

2. Download the THSarabun.ttf font file and copy it to "[Tomcat Directory]/webapps/ROOT" folder.

Note: From Joget v6.0.18, it now supports adding additional font for datalist pdf export and FormPdfUtil by adding the font file to folder "/wflow/fonts" directory and configure the font in "fonts.csv" file in the same directory with format "font family name, file name, encoding". For the sample, kindly refer to the "fonts.csv" file.


Header (HTML)Header in HTML to be included when generating pdf file.
Repeat header on every page?If checked, the Header (HTML) will be included in every subsequent pages in the generated pdf file.
Footer (HTML)Footer in HTML to be included when generating pdf file.
Repeat footer on every page?If checked, the Footer (HTML) will be included in every subsequent pages in the generated pdf file.