Skip to main content
Participant
March 18, 2021
Question

Can't hide default header/footer when generating pdf from html

  • March 18, 2021
  • 2 replies
  • 887 views

Hi, I'm trying to generate pdf file from html template, all works good except default header/footer can't be hidden.

I'm doing using this example

How Tos — PDF Tools SDK (adobe.com)

 

And trying to change this line

 

.includeHeaderFooter(true) 

 


to false, but it doesn't look like affecting smth.

result still have default header like this:


Thanks!

 

    This topic has been closed for replies.

    2 replies

    Participant
    June 4, 2021

    Here dont working too

     

    Ex. 

                var options = CreatePDFOptions.HtmlOptionsBuilder()
                    .IncludeHeaderFooter(false)
                    .WithPageLayout(pageLayout)
                    .WithDataToMerge(jsonData)
                    .Build();
                operation.SetOptions(options);
    Participant
    December 15, 2022

    I have the packages updated, but it doesn't remove the header. What I can do? The date is increased by five hours. Attached image.

     

     

    Participant
    May 7, 2021

    Have the same problem. Any solution?