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

Default footer showing html temp link

Community Beginner ,
Jul 31, 2023 Jul 31, 2023

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

 

Atul31410794pffh_0-1690833715013.png

 



 

 

TOPICS
Document Generation API , How to , Java SDK , PDF Services API , REST APIs

Views

323

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
Community Expert ,
Jul 31, 2023 Jul 31, 2023

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. 

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
Community Beginner ,
Jul 31, 2023 Jul 31, 2023

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.

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
Community Expert ,
Jul 31, 2023 Jul 31, 2023

Copy link to clipboard

Copied

Yes, but you also lose the page number. Just change "true" to "false"

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
Community Beginner ,
Jul 31, 2023 Jul 31, 2023

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.

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
Community Expert ,
Aug 01, 2023 Aug 01, 2023

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.

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
Community Beginner ,
Aug 03, 2023 Aug 03, 2023

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. 

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
Community Expert ,
Aug 03, 2023 Aug 03, 2023

Copy link to clipboard

Copied

LATEST

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.

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