PDF Plugin generation fail

Hi!

I'm Getting the following errors when using V1.02 of Create PDF plugin to convert a page to a downloadable PDF file:

Adobe PDF reader:
"There was an error opening this document. The file is damaged and could not be repaired."

Foxit PDF reader:
"format error: not a PDF or corrupted".

I am using the following line to generate the PDF:
<?php createPDF_fromOutput('attachment', 'example.pdf'); ?>

The same thing happens when inline also.

To make it even worse when I strip the page down I can get it to work in IE8 while FF6 fails with the above error or the plugin even crashes....

Any ideas?

Paul

Re: [Pixels & Beats] PDF Plugin generation fail

By Jason - September 20, 2011

Hi Paul,

Do you run into any problems (in any browser) when running the pdf examples from inside CMS Builder?

You mentioned that you can get it to work in some browsers when you "strip the page down". What parts of the page do you take out to make it work? Are you able to find the simplest form of the page that works in multiple browsers?

Let us know and we'll see what we can come up with.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Pixels & Beats] PDF Plugin generation fail

After much testing I could not pin down a specific item that caused the PDF generation to fail. It seems to be more of combination of stuff and a little hit and miss even then.

However, I took the time to design a page for printing and as such it is far more elegant and simple for it purpose, and I have no problem with the PDF generation.

As such I still highly recommend it!

Kind regards

Paul

Re: [Pixels & Beats] PDF Plugin generation fail

By Jason - September 22, 2011

Hi Paul,

I'm glad to hear that everything is working now. Please let us know if you run into any other issues.

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/