Versions Compared

Key

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

...

  1. set the option <generatePdf>true</generatePdf> in the declarations section of the report module
    Code Block
    xml
    xml
    <reports ......>
     <declarations>
       <chartFormat id="chartFormat1"> ....    </chartFormat>
       <summaryFormat id="formatStatusMap"> ....    </summaryFormat>
       <htmlTableFormat id="htmlTableFormat1NL" tableStyle="tableStyle1"> ....    </htmlTableFormat>
       <dateFormat id="dateFormat1"> ...  </dateFormat>
       <numberFormat id="numberFormat1"> ... </numberFormat>
    
       <generatePdf>true</generatePdf>
    
       <templateDir>$REPORT_TEMPLATE_DIR$</templateDir>
       <reportsRootDir>$REPORT_ROOT_DIR$</reportsRootDir>
       <reportsRootSubDir>nl/fluvial</reportsRootSubDir>
    
       <sendToLocalFileSystem>true</sendToLocalFileSystem>
    
       <timeZone ..
       <locale .... 
     </declarations>
    
  2. Note that the option sendToLocalFileSystem should be set to true. It is not possible to generate a PDF from zipfile (and so to store in the database)
  3. in the global.properties the option REPORT_HTML2PDF_PROGRAM should be defined.
    For example to REPORT_HTML2PDF_PROGRAM=%REGION_HOME%/Modules/Reports/bin/html2pdf.cmd
    See attached the binaries.

Currently the htmldoc program is used.