Api2Pdf - Generate PDF from HTML

Use the Api2Pdf - Generate PDF from HTML action A tool for building the processes, logic, and direction within workflows. Actions are the steps the workflow performs to complete a process. to convert HTML to a PDF using Headless Chrome on AWS Lambda. HTML is the standard markup language for web pages.

For more information about the Api2Pdf connector, go to Api2Pdf.

Configure the Api2Pdf - Generate PDF from HTML action

  1. Add the action to the workflow and open the action configuration panel. For more information, see Add an action to the workflow.

  1. Select a Connection. If you do not have a connection, see Add a connection.
  1. Specify the HTML that you want to convert to PDF.

  2. Specify the File name of the output.

  3. Select the Page orientation for the PDF.

  4. Select the Print background for the PDF.

Api2Pdf - Generate PDF from HTML action fields and settings

Section

Field

Description

Variable types

(Unlabeled)

Connection Credentials and other settings that enables workflows to communicate with external systems, services, or applications. It's required to pass data between the workflow and the indicated service, which could be a cloud service, business application, or content store.

The Api2Pdf connection to use.

To refresh the available connections, click .

(n/a)

(Unlabeled) HTML The raw HTML you want to convert to PDF. Text, Decimal, Integer, Boolean, DateTime, Collection
(Unlabeled) File name The file name for the output PDF. Text, Decimal, Integer, Boolean, DateTime, Collection
(Unlabeled) Page orientation The orientation to use when generating the PDF. You can select Portrait or Landscape. Text, Decimal, Integer, Boolean, DateTime, Collection
(Unlabeled) Include background Indicates if the background graphics should be included in the generated PDF. Boolean
Output PDF details Stores the result of the action as an object. The following values are returned:
  • URL: (Text) The URL for the generated PDF.
    Note: 

    This integration is anonymous and there is no authorization required to access the URL. Anyone who has access to the URL has access to PDFs created here.

  • Megabytes input: (Decimal) The number of input megabytes, for example 0.06463.
  • Megabytes output: (Decimal) The number of output megabytes, for example 0.73327.
  • Cost: (Decimal) The cost for the conversion, see Api2Pdf Pricing for more information.
  • Successful: (Boolean) Whether the conversion to PDF was successful.
  • Response ID: (Text) An identifier for the successful conversion. You use this value in aApi2Pdf - Delete a generated PDF action.
Object