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

91

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

LATEST

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