Bad text alignment in PDF

Author Message

Linh Vu

Wednesday 22 June 2005 8:23:40 pm

I've been searching the forums for hours but can't find a solution to this. I'm using ezp 3.5.2 on this site: www.wuxiapedia.com. Been working on the PDF export of articles. The problem is that the PDF export code seems to mess up the text alignment in the original article, i.e entering whitespaces at random inside paragraphs (it's fine between paragraphs).

An example:
Article: http://www.wuxiapedia.com/research/the_arts/xajh_song
PDF: http://www.wuxiapedia.com/content/pdf/242

My xml_paragraph.tpl looks like this:

{pdf(newline)}
{pdf(text,$content|wash(pdf) )}
{pdf(newline)}

I had to remove the hash(align, full) part because it is exactly the same and even inserts more newlines between paragraphs. Align left does the exact same thing. I suspect it's wash(pdf) causing this as it's supposed to translate whitespaces from postscript codes, but don't know how to fix it. Anyone has an idea? Thanks in advance.

Btw system is LAMP on RH3EL. PHP 4.3.11, MySQL 4.0.24 and Apache 2.0.40.

If I had more time, I would write less code.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.