"Export Blog as PDF" event filter is hosed

Found a bug? Tell us!!
Post Reply
genesis
Regular
Posts: 28
Joined: Wed Jun 11, 2008 5:26 pm

"Export Blog as PDF" event filter is hosed

Post by genesis »

Attempting to enable it with "HTML2PDF support" returns the following error:

FPDF error: GIF parser: unable to open file http://tickerforum.org/smilies-local/nuke.gif

The URL in question is valid and does display.

With that switch off, the blog exports but formatting is destroyed and included tables and images are missing.

Ideas?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: "Export Blog as PDF" event filter is hosed

Post by garvinhicking »

Hi!

Hm, that GIF file seems broken; its animations stop mid in between the stream. I think you'll need to get rid of that linked image so that the GIF parser does not choke on it.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
genesis
Regular
Posts: 28
Joined: Wed Jun 11, 2008 5:26 pm

Re: "Export Blog as PDF" event filter is hosed

Post by genesis »

The GIF displays fine.

More problematic however is that over time externally-linked images may become unavailable. A second blog that I have has a couple of broken links in it and that also blows up this output filter, rendering it effectively useless.

That's most unfortunate as it means that there's effectively no way to export the blog for a regular user - I can export it as an XML file from the admin menu, and a RSS reader (including IE) can directly display that export as an RSS.

This is something that IMHO warrants correction so that images that fail to translate are simply ignored.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: "Export Blog as PDF" event filter is hosed

Post by garvinhicking »

Hi!

We only bundle the FPDF/HTML2PDF library, so this is something that would need addressing from this library. Funny thing is that their homepage http://html2fpdf.sourceforge.net/ also bails out with the same error ;)

For starters it could help to edit the html2pdf_fpdf.php file, and change the Error() function to not die().

If you can fix this (or any other developer wants to have a look), I can commit that patch for the current plugin!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
genesis
Regular
Posts: 28
Joined: Wed Jun 11, 2008 5:26 pm

Re: "Export Blog as PDF" event filter is hosed

Post by genesis »

I'll take a look at it - thanks for the pointer to how it works... :)
Post Reply