Skip to content

Convert to PDF Activity

The Convert to PDF activity transforms a source file — such as an image, HTML page, or XML document — into a new PDF file. This removes the need for a separate conversion tool when a process must produce a PDF from a different source format.

Field Description Requirement
File name The full file path of the source file to convert (e.g., an image, HTML, or XML file). Required
File type The format of the source file (e.g., IMAGE, HTML, XML). Required
Xsl file name The path to an XSL stylesheet used to render the PDF layout. Only relevant when File type is XML. Optional
New pdf file name The full file path where the resulting PDF file will be saved. Required

Action Types & Examples

Image to PDF

  • Format: string
  • Example Result: "IMAGE"

HTML to PDF

  • Format: string
  • Example Result: "HTML"

XML to PDF

  • Format: string
  • Example Result: "XML"

Implementation Examples

Field Setup - File name: C:\Robusta\report.html - File type: HTML - New pdf file name: C:\Robusta\report.pdf

Execution Parameters - File name: C:\Robusta\invoice.xml - File type: XML - Xsl file name: C:\Robusta\invoice-layout.xsl - New pdf file name: C:\Robusta\invoice.pdf

Technical Notes

The Xsl file name field only applies when converting an XML source, where the XSL stylesheet defines how the XML content is laid out on the page. It is not required, and is ignored, when converting IMAGE or HTML source files.