Skip to main content
Participating Frequently
March 13, 2008
Question

Image quality CFPDF

  • March 13, 2008
  • 1 reply
  • 478 views
Hello,
I'm creating a PDF with CFDOCUMENT and CFPDF and I have two questions

1. I'm trying to insert an image with the following code:
<cfdocument name="cover" format="pdf">
<img src=" http://www.domain.com/image.jpg">
</cfdocument>
<cfPDF action="write" source="cover" destination="test.pdf" overwrite="yes" />

The image isn't displayed. I only see a broken image link. Is there I way I can fix this?

2. Because I don't know why my image isn't working I use <cfpdf action="addwatermark" image="images/pdf.jpg" opacity="10" ...>. Then I noticed that the image quality is very bad. Is there a way to fix that?

Thanks!

Sam
    This topic has been closed for replies.

    1 reply

    March 18, 2008
    What version of CF are you using?

    I remembered occasionnaly having this problem using mx7, but I believe there may have been a hotfix that corrected the issue of using an image that is not hosted locally on the machine.

    If you have all the hotfixes, and you are running 7, have you tried using cfdocument without the "cfpdf"?

    To my knowledge you shouldnt have this problem in cf8.