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.
Thanks
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.
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 ?
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.
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?
Copy link to clipboard
Copied
It doesn't seem to be an option.