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

PDFs created with cfdocument are not shown in Microsoft Edge.

New Here ,
Feb 20, 2018 Feb 20, 2018

Copy link to clipboard

Copied

we have problems with PDFs created with cfdocument (CF 11) and the Microsoft Edge Browser.

Edge shows only a white page.

Here is the Link to a Sample Document, please try it on Edge:

https://unimedia.ag/Rechnung.pdf

The same PDF, but opened and saved with Acrobat DC.

This PDF is shown in Edge

https://unimedia.ag/Rechnung2.pdf

What can we do to create compatible PDFs also for Edge with cfdocument?

Thanks in advance
Herbert

Views

945

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
Advocate ,
Feb 20, 2018 Feb 20, 2018

Copy link to clipboard

Copied

Please show example code used to create the PDF document. That way we can try it in our environment and see what result we get.

Cheers

Eddie

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
New Here ,
Feb 20, 2018 Feb 20, 2018

Copy link to clipboard

Copied

Hello Eddie,

we use <cfpdf action="ADDWATERMARK to merge our letterhead with the created content from cfdocument to our final invoice PDF.

<cfpdf action="ADDWATERMARK" destination="#application.docpath#\fbRechnungen\Rechnung_FB#dateformat(redatum, "yy")##dateformat(redatum, "mm")##dateformat(redatum, "dd")#-#id#.pdf" source="mydocument" copyfrom="#application.docpath#fbDocs\RE_background_INT.pdf" opacity="10" overwrite="Yes" showonprint="Yes"></cfpdf>

Here is our letterhead:
https://unimedia.ag/RE_background_INT.pdf

Herbert

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
Advocate ,
Feb 20, 2018 Feb 20, 2018

Copy link to clipboard

Copied

Are you saying that if you don't add the watermark then the resulting PDF works correctly in MS Edge?

Cheers

Eddie

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 ,
Feb 20, 2018 Feb 20, 2018

Copy link to clipboard

Copied

This wouldn't surprise me at all. Certain PDF features will prevent PDFs from rendering in browsers. The way CF implements watermarks is not the same as how Acrobat itself does it.

Dave Watts, CTO, Fig Leaf Software

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
New Here ,
Feb 20, 2018 Feb 20, 2018

Copy link to clipboard

Copied

Yes that's right.

The PDF created with cfdocument works correctly in MS Edge

https://unimedia.ag/invoice.pdf


But the combined watermarked PDF doesn't.

We use this method for many years and had no problems so far, until now with Edge.

Cheers
Herbert

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
Advocate ,
Feb 20, 2018 Feb 20, 2018

Copy link to clipboard

Copied

As a matter of interest, if you serve only the "RE_background_INT.pdf" file as the response to the Web request, does MS Edge display it correctly?

If not, try opening it and re-saving it on the server with Adobe Acrobat. It is possible that file itself is the source of the problem.

Cheers

Eddie

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
New Here ,
Feb 20, 2018 Feb 20, 2018

Copy link to clipboard

Copied

Both PDFs are displayed correctly in Edge:

https://unimedia.ag/RE_background_INT.pdf

https://unimedia.ag/invoice.pdf

But the "watermarked" doesn't.

https://unimedia.ag/invoice_watermarked.pdf

Herbert

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
Advocate ,
Feb 21, 2018 Feb 21, 2018

Copy link to clipboard

Copied

I can confirm that using CF11, Internet Explorer, Google Chrome and Mozilla Firefox successfully show the resulting PDF document, but Microsoft Edge does not.

Cheers

Eddie

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
New Here ,
Feb 22, 2018 Feb 22, 2018

Copy link to clipboard

Copied

Hello Eddie,

thank you for your support.

Is this a bug in CF11 or in Edge?

That means for us we have to create our documents completely in one cfdocument-statement.

HTML in cfdocument is very tricky, but i think for now this the only option.

Best regards and greetings from Vienna
Herbert

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
Advocate ,
Feb 27, 2018 Feb 27, 2018

Copy link to clipboard

Copied

LATEST

hkk  wrote

Is this a bug in CF11 or in Edge?

You will need to contact Adobe directly to have them investigate whether or not this is a bug in ColdFusion.

Cheers

Eddie

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
Documentation