Copy link to clipboard
Copied
Hello,
I am using pdfservices api to convert html to pdf.
I am using the defautl header and footer from the pdfoptions.
.includeHeaderFooter(true)
The only trouble I am facing is that the footer is giving me soem temporary html file address which I can't seem to change. From the documentation, I know the default footer shows the page number and filename, but how is the filename determined? Is it something I can change? Attaching a screenshot for your reference.
TIA
Copy link to clipboard
Copied
The filename you are seeing is the filename that is being used on our server. You cannot change it. It's placed there automatically by the PDF rendering engine.
Copy link to clipboard
Copied
So there is no way to get rid of it? I cannot use the generated pdf file like this for my purpose.
Copy link to clipboard
Copied
Yes, but you also lose the page number. Just change "true" to "false"
Copy link to clipboard
Copied
Yeah, wanted to retain the page numbers. Inserting footer page number from html/css is proving to be difficult because of the nature of the html generation process in my case. I guess there is no way around for either getting rid of file name alone, or changing filename text.
Copy link to clipboard
Copied
Have you looked at Paged.js? It will help you paginate HTML for print as well as add "generated content" like page numbers and running headers and footers.
Copy link to clipboard
Copied
For some internal reasons, we are unable to use any other external libraries at the moment.
However, during our initial POC research with adobe, we didn't face this issue. The default footer didn't show any such temp html link. At that time, our dev test account also had 1000 trial hits.
However, with the latest dev trial, we get this link and the number of hits have also been reduced to 500.
We are negotiating with Adobe a deal that commits us to using this service for 3 years, but this footer issue may prove to be a show-stopper for us.
The pdf's html generation process is a bit tedious, where adding paging from css/js may be difficult.
Did something change with the latest adobe releases? We weren't getting this footer link back in April.
Copy link to clipboard
Copied
In my experience, if "includeHeaderFooter" is true, the file location and page number have always shown. That's actually why I sought out a better solution that lets me control the header/footer content and found paged.js. I don't doubt you. We may very well have suppressed it at some point. I've just never seen that. It's also possible that the "includeHeaderFooter" was defaulted to false at some point. Are you using one of the SDKs? Based on your line of code, I suspect as much.