Forums / Developer / tcpdf class -pdf cache problems

tcpdf class -pdf cache problems

Author Message

Sergi A

Thursday 09 December 2010 3:45:18 am

Hi! i'm using the tcpdf extension on a 4.2 ezPublish installation... i am able to create the pdf content, but after creating it, on the next html-page served the html code is mixed with pdf code.. so the browser crashes. It doesn't happens every time, and when it happens it is only the next page served, then it works again.

Could it be some cache problems? Maybe the pdf code is cached and then mixed with html code...on this mixed code, i can see the pdf headers on the last lines of the html page (and just before the pdf code itseld)

HTTP/1.1 200 OK
Date: Thu, 09 Dec 2010 11:38:22 GMT
Server: Apache/2.2.12 (Ubuntu)
X-Powered-By: eZ Publish
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Last-Modified: Thu, 09 Dec 2010 11:38:22 GMT
Served-by: localhost
Content-language: cat-ES
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 6577
Keep-Alive: timeout=15, max=96
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8

i'm really stuck in this problem..

thanks!

Ivo Lukac

Thursday 09 December 2010 4:00:39 am

We have good experience with http://projects.ez.no/paradoxpdf

So try that extension if you can't solve your current problem...

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Sergi A

Thursday 09 December 2010 4:02:39 am

"

We have good experience with http://projects.ez.no/paradoxpdf

So try that extension if you can't solve your current problem...

"

thanks, but it needs java and i'm not able to use it :/

Sergi A

Thursday 09 December 2010 4:24:58 am

I noticed that, when the wrong html page is served, the $module_result.uri is that of the pdf view page, not the one being served... i don't understand it..

every ez url is changed by this one:

"/en/tcpdf/artykul/objectid/645/nodeid/406"