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

Adding custom Header & Footer

Explorer ,
Jul 06, 2022 Jul 06, 2022

Copy link to clipboard

Copied

I am using Adobe PDFServiceSDK, using PDF Api Services. I am using static Html to pdf conversion functionality I am getting good result with default Header and Footer but it is Indented to be customized Header & Footer does Adobe PDFServiceSDK support customized Header and Footer in Html to PDF Conversion?

 

if you can share any guide or support related to this.

 

ThanksHeader & Fotter Required.png

Views

971

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
Adobe Employee ,
Jul 18, 2022 Jul 18, 2022

Copy link to clipboard

Copied

Hi there,

The HTML file you're using as input dictates what content is to be presented in the document. Therefore, if you want the header to be different, you need to make it different in the HTML input file. Keep in mind that the HTML file is a single page, and therefore the header will only appear at the top of the first page of the resultant PDF document.

Votes

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
Explorer ,
Jul 19, 2022 Jul 19, 2022

Copy link to clipboard

Copied

Hi, 

 

If i am not getting you wrong you are saying that Adobe doesn't provide the support for custom Header & Footer. Means whenever we'll use CreatePDFOptions.HtmlOptionsBuilder().IncludeHeaderFooter(true) method it'll come with default header and footer ?

 

Votes

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
Adobe Employee ,
Jul 19, 2022 Jul 19, 2022

Copy link to clipboard

Copied

It seems that only a default header/footer per PDF page is available. This is the documentation of the includeHeaderFooter method:

Sets the includeHeaderFooter parameter. If true, default header and footer will be included in resulting PDF. The default header consists of the date and the document.title. The default footer consists of the file name and page number.

Votes

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
Explorer ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

And what can we do to add custom header and footer instead of default ones on each page not just on first page? Is this option available in Abode Document Service Api or not?  

Votes

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
Adobe Employee ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

LATEST

It doesn't seem to be an option.

Votes

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