Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2009 at 12:07 UTC
Updated:
6 Mar 2009 at 16:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
jcnventuraHi,
The replacement of URLs to file URLs happens only if the following are all true:
1. You're generating a PDF.
2. Drupal's file system settings is set to private.
3. The tag is an img tag.
I can't understand how (3) is failing for you. Can you attach the contents of the 'printer-friendly version' HTML source code?
Thanks,
João
Comment #2
lisawoodsca commentedHi there,
Thanks so much for getting back to me.
Yes I'm generating a PDF from the content on the page. The download method in admin/settings/file-system is actually set to Public. Not sure what tag you're talking about. The link is just a simple text link, no images involved.
I've attached the HTML. At the end of the page - just above 'Source URL' there is a link to mycompany News that's working in this printer-friendly version but when I want it in PDF the link points to file://
Thanks again for you help. Let me know if you need anything.
Comment #3
jcnventuraHi,
I took a look at it, it has nothing to do with the replacement I was talking about in #1. It's actually a 'bug' in TCPDF which seems to be unable to handle relative URLs. This is easily fixable in my side of things, so in a couple of days I should have it.
João
Comment #4
jcnventuraHi,
I have just committed some code that converts all the URLs in a PDF to absolute, which should fix your problem. It will be in tomorrow's dev version.
João