Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder: Plugins & Add-ons:
PDF Plugin generation fail

 

 


8bit Pixel
User

Sep 20, 2011, 4:51 AM

Post #1 of 5 (926 views)
Shortcut
PDF Plugin generation fail Can't Post

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:

Code
<?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


Jason
Staff / Moderator


Sep 20, 2011, 10:02 AM

Post #2 of 5 (924 views)
Shortcut
Re: [Pixels & Beats] PDF Plugin generation fail [In reply to] Can't Post

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 - Programmer 
interactivetools.com

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


8bit Pixel
User

Sep 20, 2011, 10:18 AM

Post #3 of 5 (923 views)
Shortcut
Re: [Jason] PDF Plugin generation fail [In reply to] Can't Post

Hi Jason,

All the PDF tests work, and I agree with you that it may be an element of HTML/PHP etc that could be causing problems with the PDF render itself. I will continue to try and strip down and pinpoint any potential causes that way. I thought I would post the problem here in case anyone else had bumped into any quirks that could help me diagnose quicker.

It might be worth designing a new CSS / Code layout from scratch as it's for a downloadable/printable price list.

If I find the cause I'll make sure I post my findings here ;)

Thanks for getting back to me so quick :)

Paul


8bit Pixel
User

Sep 22, 2011, 4:06 AM

Post #4 of 5 (915 views)
Shortcut
Re: [Pixels & Beats] PDF Plugin generation fail [In reply to] Can't Post

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


Jason
Staff / Moderator


Sep 22, 2011, 11:45 AM

Post #5 of 5 (895 views)
Shortcut
Re: [Pixels & Beats] PDF Plugin generation fail [In reply to] Can't Post

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 - Programmer 
interactivetools.com

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