Page 1 of 1

"Export Blog as PDF" event filter is hosed

Posted: Sun Mar 22, 2009 4:13 pm
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?

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

Posted: Mon Mar 23, 2009 12:38 pm
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

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

Posted: Mon Mar 23, 2009 2:35 pm
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.

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

Posted: Mon Mar 23, 2009 3:16 pm
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

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

Posted: Mon Mar 23, 2009 3:23 pm
by genesis
I'll take a look at it - thanks for the pointer to how it works... :)