HTML to PDF
  • 05 Jan 2024
  • 1 Minute to read
  • Dark
    Light

HTML to PDF

  • Dark
    Light

Article Summary

Step Details

Introduced in Version

---

Last Modified in Version

7.12.0

Location

Data > PDF

The HTML to PDF step converts a text or HTML input file into PDF format. It is used with the Create File step to create the PDF file. One use case for this step may include converting a patient's old text-formatted medical record into a PDF.



Known Issue:

Decisions uses the Aspose library to convert HTML to PDF format. Aspose library does not convert the hyperlinks within the HTML file. Thus, after conversion, the hyperlinks will not work. One Solution is to use the ‘HTML to Word Document’ step first and then use the ‘Convert Word to PDF’ step.


Properties

Configuration

Property

Description

Data Type

Get HTML From File

Changes the HTML input data type from String to FileData

Boolean

Set Page Dimensions

Includes additional inputs to further customize the PDF being created. Page Height, Page Width, Page Margins. Page Dimensions are set in inches.

Chaning Page Orientation

By default, the page orientation is set to portrait (8.89 × 13.00 in.). To change the page orientation from portrait to landscape, users can enable the "Set Page Dimensions" and set the Page Height and Page Width to the required lengths in inches.

Boolean

Use Custom Page Numbers

This will replace the "Include Page Numbers" input with "Custom Page Numbers" input.

Boolean

Inputs

Property

Description

Data Type

HTML

HTML file to convert to PDF

String/
FileData

Include Page Numbers or Custom Page Numbers 

Determine whether Page Numbers are included and include a dynamic way of displaying the Page Numbers.

Boolean/
String

Page Number Alignment

Determines whether the Page Number will be Left, Right, or Center.     

HorizontalPlacement

PDF File Name

Name of the pdf file, include .pdf

String

Outputs

Property

Description

Data Type

PDF File

Converted PDF 

FileData

Error Message

Error message 

String

Related Information

Example Labs:
Saving Sent Emails as PDFs
Converting Forms to PDFs for Email
Combining PDFs Using a Custom Group Action

Forum Posts:
Html To Pdf
Conversion Error For HTMLtoPDF Step
Set Page Dimensions Checkbox In Html To PDF Step


Was this article helpful?