Hi Ricardo,

probably not something you can use in the short-term but you may want to keep an eye on h2pe (http://h2pe.sourceforge.net).

It was just started last month, therefore it has very limited functionality, but it should move pretty fast in the next few weeks.

The goal is to print/preview an 'FCK Editor' document in PDF, but behind the scenes it really is transforming XHTML into PDF using iText.

There's now a demo which should be updated regularly as new functionality is added: http://h2pe.sourceforge.net/demo.html (Please bear in mind that sourceforge is pretty slow lately, so the editor may take some time to load)

We started this project because, although SAXmyHtmlHandler provides a quick solution within iText, HTML to PDF transformation is not what iText is all about, and other solutions using iText (i.e. Ice Browser) are not open-source.

Regards

Daniel

Ricardo Coutinho wrote:
Hi Bruno,

Thanks for the information. Is subclassing the SAXmyHtmlHandler the only
solution? I was not planning on extending iText as it offered all the
functionality I needed as is.
It seems that this functionality changed since version 1.2 although I
have not yet found where the change is. Can you give me a pointer where
the code changed?

For information; I liked the way the code behaved in version 1.2 because
it allowed be to have 1 html template and then decide what the output
format I want it generated. It is a pity that this has gon.

Ricardo

-----Original Message-----
From: bruno [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 16:00
To: Ricardo Coutinho
Cc: [email protected]
Subject: Re: [iText-questions] Re: HTML -> PDF conversion code change
from itext 1.2 to 1.3 and 1.4

Ricardo Coutinho wrote:

       Document document = new Document(new Rectangle(842f, 595f));

That was what I meant.
In the meanwhile I have checked the source code and I have seen
that somebody introduced some new BODY attributes.
You should have something like this in your HTML:
<body pagesize="A4" orientation="landscape">
If you don't want this, you should subclass SAXmyHtmlHandler
so that it skips the body tag.
br,
Bruno

____________________________________________________________

• This email and any files transmitted with it are CONFIDENTIAL and intended
  solely for the use of the individual or entity to which they are addressed.
• Any unauthorized copying, disclosure, or distribution of the material within
  this email is strictly forbidden.
• Any views or opinions presented within this e-mail are solely those of the
  author and do not necessarily represent those of Odyssey Asset Management
  Systems SA unless otherwise specifically stated.
• An electronic message is not binding on its sender. Any message referring to
  a binding engagement must be confirmed in writing and duly signed.
• If you have received this email in error, please notify the sender immediately
  and delete the original.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions





--
Daniel Farinha
Software Developer
Genial Genetic Solutions Ltd
The Heath Business & Technical Park
Runcorn, Cheshire WA7 4QX
Tel: +44 (0)870 757 9300
Fax: +44 (0)870 757 9301
Email: [EMAIL PROTECTED]
Website: www.genialgenetics.com



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to