[Html2PdfConverter] Not to add header on first page but needed for the rest of the pages

Forge Component
(70)
Published on 2 Jun by Guilherme Pereira
70 votes
Published on 2 Jun by Guilherme Pereira

Hi there,

Is it possible not to add a header on the first page but to add on the rest of the pages?

 Could someone help with this?


Thanks!

Hi

Yes this can be done. Please refer to this https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

      --custom-header <name> <value>  Set an additional HTTP header (repeatable)
      --custom-header-propagation     Add HTTP headers specified by
                                      --custom-header for each resource request.
      --no-custom-header-propagation  Do not add HTTP headers specified by
                                      --custom-header for each resource request.
      --debug-javascript              Show javascript debugging output
      --no-debug-javascript           Do not show javascript debugging output
                                      (default)
      --default-header                Add a default header, with the name of the
                                      page to the left, and the page number to
                                      the right, this is short for:
                                      --header-left='[webpage]'
                                      --header-right='[page]/[toPage]' --top 2cm
                                      --header-line

Put in the "OtherArgs" in GeneratePDF server action