How do I configure document orientation with the HTML to PDF step? (Landscape / Portrait)

I’m using an HTML to PDF step in my flow, and my HTML code is set to landscape orientation, but the PDF is being created in portrait.

How can I configure the document orientation with the HTML to PDF step?

Comments

  • The HTML to PDF step doesn’t use the orientation specified in the HTML code. By default, the page orientation is set to portrait (8.89 × 13.00 in.).


    To change the orientation of the document, you can set the page dimensions of the PDF manually:


    1- Click on the HTML to PDF step, go to the properties > ‘Configuration’, then select ‘Set Page Dimensions’


    2- Scroll down to ‘Inputs’ and enter the desired page height and width for the PDF


    3- Run the flow and your PDF will be displayed with the chosen dimensions


    For more information on the HTML to PDF step please see the below documentation:

    https://documentation.decisions.com/step-library/docs/html-to-pdf

Sign In or Register to comment.