Jahia Dev Forum > Render html to pdf

0 (0 Good)
0 (0 Bad)

Render html to pdf

by  chandandatta »  2014/12/10 04:34

Hi , Is it possible to convert a html5 document to pdf using the document converter module(http://www.jahia.com/documentation-and-downloads/developers-techwiki/services/doc-converter-usage)? I uploaded a html and css into the file system and the PDF output doesn't pickup the CSS styling. Also how to enable auto-convert to PDF for files uploaded to the repository in a website?


Number of messages  4
Registration date
0 (0 Good)
0 (0 Bad)

Re : Render html to pdf

by  cefou »  2015/05/28 09:52

Rules to make auto-conversion:

  1. rule "Auto-convert to PDF"
  2. when
  3. A file content has been modified
  4. - the mimetype is not application/pdf
  5. then
  6. Convert node to type "application/pdf"
  7. end


I think this module is more for 'office' document convertion, not HTML ones. 

More documentation on: https://www.jahia.com/fr/home/resources/developers-techwiki/services/doc-converter-usage.html

List of supported formats:

  • <option value="application/pdf">Adobe PDF</option>
  • <option value="application/msword">Microsoft Word Document</option>
  • <option value="application/vnd.ms-excel">Microsoft Excel Sheet</option>
  • <option value="application/vnd.ms-powerpoint">Microsoft Powerpoint Presentation</option>
  • <option value="application/vnd.oasis.opendocument.text">OpenDocument Text</option>
  • <option value="application/vnd.oasis.opendocument.spreadsheet">OpenDocument Spreadsheet</option>
  • <option value="application/vnd.oasis.opendocument.presentation">OpenDocument Presentation</option>
  • <option value="application/x-shockwave-flash">Flash</option>



Number of messages  17
Registration date

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page