This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » tcpdf class -pdf cache problems
expandshrink

tcpdf class -pdf cache problems

tcpdf class -pdf cache problems

Thursday 09 December 2010 12:45:18 pm - 3 replies

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!

Modified on Thursday 09 December 2010 12:48:06 pm by Sergi A

Thursday 09 December 2010 1:00:39 pm

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

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

Thursday 09 December 2010 1:02:39 pm

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 :/

Thursday 09 December 2010 1:24:58 pm

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"

Modified on Thursday 09 December 2010 3:40:18 pm by Sergi A

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from