HTML to PDF

Overview

Version 1.0.0 - Accepts inline and internal styles and also adds images in the PDF if they are publicly hosted. Based on content, multiple pages will be created in the PDF. The Smart Service will accept HTML files with properly closed tags including <br> and <img> tags otherwise the node will be errored out.

Version 2.0.0 - Everything with Version 1.0.0 and ability to generate PDF from HTML with landscape orientation.

Key Features & Functionality

Inputs

  • Source Document (Document) - The html file to be converted into PDF.
  • New Document Name (Text) - Name for the newly created PDF Document.
  • New Document Desc (Text) - Description of the output PDF Document.
  • Save In Folder (Folder) - Folder to which the output PDF Document to be saved in.

Outputs

  • New Document Created (Document) - The output PDF file.
  • Error Message (Text) - Error message received.
  • Error Occurred (Boolean) - Set to true on the occurrence of error.
Anonymous
  • Hello, 

     There is some problem with the plugin since the beginning of August. The plugin appears to be failing silently — process nodes remain unattended, and the application engine continuously attempts to convert HTML to PDF without completing the task.

    This behavior is causing the application engine to fill up with stuck processes, which risks leading to a full engine crash and potentially a broader environment failure.

  • Hi,  I am using HTML to PDF(page number and custom font) smart service to generate PDF file in Arial font. but in generated file bold style text is not clearly visible if I open generated file in any browser  and if I use adobe acrobat reader I can see everything clearly. 

    Please help on this, file should be in proper format in all application

  • I had issue in retaining the format of the html template when generating PDF using the PDF from HTML template, but this plugin resolved the issue....:)

  • Hello,

    I have a requirement where I want to build a html file out of a template which would have some special characters i.e Greek characters. 

    The html file is generated properly and even the alphabets are also displayed eg: 

    <td rowspan="1" colspan="1"><p>β</p></td>

    But when the same file is converted to PDF using the HTML to PDF plugin the Greek alphabets are not displayed.

    We are currently using:

    1. HTML Doc from Template to generate the HTML document.
    2. HTML to PDF plugin to convert the HTML into a PDF.

    Can any one suggest what we can do here ,any configuration we can use?

    Regards,

    Salil Raje

  • Hi, if the image size is > 100kb, the image is not added to the pdf. Is there a size limitation for included images?

  • Hi, is there a way to render Chinese characters in the PDF?

  • Health check shows - HTML To PDF Conversion (com.vuram.plugins.htmltopdfconversion) references deprecated Appian APIs
    [deprecated] com.appiancorp.exceptions.AppianException.getMessage(). Team any plan to release updated plugin using latest Appian APIs

  • Hi, 

    What are all types of page format text is supported by this plugin? & Could you also provide a sample input we need to pass for each format?

  • Hi, Facing an issue to render the image's in the PDF. Images are stored in the appian application folder. 

    Seems like we may need to convert all those images into base 64 but unable to find an option to convert an image to base64 string from rule directly. 

    Suggest me the best way to render the images in PDF that are stored in the appian folder.

  • v2.1.12 Release Notes
    • Fixed an issue where the file streams were left open.