eZ Community » Forums » Setup & design » text in pdf version of article wrong...

text in pdf version of article wrong output

text in pdf version of article wrong output

Sunday 24 May 2009 12:23:12 am - 7 replies

After upgrading to 4.0.1 to 4.1.1 , the pdf version of my articles (the xml block) comes out without space and with tags

see example :


my pdf article main template :

{*?template charset=utf-8?*}
{let article=$node.contentobject_version_object

  {pdf(pageNumber, hash( identifier, "main",
                         start, 1 ) )}

{attribute_pdf_gui attribute=$article.data_map.title}

{default image_class=medium
{let image_attribute=$article.data_map.image
  {let image=$image_content[$image_class]}



{attribute_pdf_gui attribute=$article.data_map.intro}

{attribute_pdf_gui attribute=$article.data_map.body}

{pdf(pageNumber, hash( identifier, "main",
                       stop, 1 ) )}

{include uri="design:content/pdf/footer.tpl" node=$node}


Is this a bug ?

Modified on Sunday 24 May 2009 12:25:44 am by Dominik LEE

Wednesday 12 August 2009 11:36:06 am

Hi ,
I'm newer here but let's back on main goal.

I have the same problem as Dominik LEE.
I create a class with attributes : text_line (title), xml_block (body) etc. So when i try to export my page as PDF it comes out without space between elements (header,body,footer etc.) and the main problem is that all tags like <p></p>, <h3>, <a></a> etc. appeared too.

I think it's no needed to gave an example cause it's the same as Dominik gaves.
So please if someone has a good solution or know is this kind of bug let replay.

It's bit urgent.
Thanks guys.

Modified on Wednesday 12 August 2009 11:37:59 am by Desislava Kioseva

Monday 05 October 2009 6:27:17 pm

same for me after upgrade from 4.0 to 4.1...I put a post to ask help about this. So if someone can give us a clue...

Many thanks.

Tuesday 06 October 2009 9:14:31 am

Use this extension: http://projects.ez.no/paradoxpdf
It works perfectly and it is easy to install.

Tuesday 06 October 2009 9:47:31 am

Hi Sandra,

The problem with this extension is that it needs Java JRE installation on our server (which doesn't suit our administrator) and it's really incredible that we cannot find any other easy way to make pdf parsing work as it was between two versions of EZP. The 4.0 version is not so old ... Why can't we make it work after a simple upgrade of version ?

I'm really waiting for some explanation about this fact because I'm sure that the solution mustn't be so complicated. For the moment text fields and images display well, it's only the XML Block data type fields which are not interpreted.

Tuesday 06 October 2009 3:34:09 pm

The answer is in this post:

This is the contribution based on the PHP library TCPDF:

Hope it helps.

Wednesday 07 October 2009 9:22:38 am

Hello Sandra,

Nice references, thank you very much, I'm working for the moment on TCPDF, but I think that I will have to change the php code to make it fit my desire...Anyhow, I've been able to display something more less correct making some light changes on the code...

Many, many thanks to you !!!


Wednesday 07 October 2009 3:06:56 pm


For those of you who have chosen to work with tcpdf don't forget to get the latest versions of tcpdf.php class if you don't want to have the same troubles I got when using the tcpdf contrib which is available on ez.no. In this contrib version, the tcpdf class has some bugs for example on text-wraping which makes your words cut improperly at the end of paragraph. I used a tcpdf version 4.8.009 to fix this bug and now my pdf works fine.



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

36 542 Users on board!

Forums menu

Proudly Developed with from