• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

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

New Here ,
Mar 18, 2021 Mar 18, 2021

Copy link to clipboard

Copied

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:
132.png

Thanks!

 

Views

253

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 07, 2021 May 07, 2021

Copy link to clipboard

Copied

Have the same problem. Any solution?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

Here dont working too

 

Ex. 

            var options = CreatePDFOptions.HtmlOptionsBuilder()
                .IncludeHeaderFooter(false)
                .WithPageLayout(pageLayout)
                .WithDataToMerge(jsonData)
                .Build();
            operation.SetOptions(options);

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 14, 2022 Dec 14, 2022

Copy link to clipboard

Copied

LATEST

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.

 

eduardo27580575sw7e_0-1671071652496.png

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources