Skip to main content
Participant
October 21, 2021
Question

PDF Services API always creating file with header and footer

  • October 21, 2021
  • 1 reply
  • 514 views

I'm creating a pdf using a HTML file and the API always gives me a PDF with header and footer, even setting the option to not include header and footer.

The API was working fine about a 3 months ago, but now i'm having this problem, any solution or explanation would help, thanks

pageLayout.setPageSize(16, 9);

        CreatePDFOptions htmlToPdfOptions = CreatePDFOptions.htmlOptionsBuilder()
                .includeHeaderFooter(false)
                .withPageLayout(pageLayout)
                .build();
        htmlToPDFOperation.setOptions(htmlToPdfOptions);

 

    This topic has been closed for replies.

    1 reply

    Participant
    October 21, 2021