Skip to main content
April 29, 2024
Question

Multiple pages on PDF

  • April 29, 2024
  • 2 replies
  • 0 views

Hi everyone,

I have a process with a PDF from HTML task. The problem is that the pdf that is generated only has one page, so only the content that fits on one page is displayed. How can I modify this process to generate multpiple pages?

This is the process:

    2 replies

    shubhama926776
    Brainy
    April 29, 2024

    Hello [mention:a65c7ff9ca3c4ec3ada4ceac2a96f03c:e9ed411860ed4f2ba0265705b8793d05] 
    You can try HTML page breaker(Insert page breaks (<br style="page-break-after: always;">) in your HTML where you want new pages)
    Or
    Alternative approach would be:
    Populate a copy of your HTML template for each record.
    Save each populated template as a separate HTML file.
    Use a separate "PDF from HTML" task for each generated file.
    Merge all PDF.

    stefanhelzle0001
    April 29, 2024

    Use a different plugin. "HTML to PDF" is the silver bullet to great PDFs.

    https://appian.rocks/2023/10/23/great-pdfs-with-appian/

    community.appian.com/.../html-to-pdf