ing erl wrote:

> Hello Bruno!
>
> Is there any other way to round-trip this solution ?
> Say that I have a bunch of labels; such as 'firstname','lastname' and 
> so on
> and data is retrieved from a database - and that I would like to 
> create an
> identical layout for PDF and HTML from my 'source' ?

It is a common misunderstanding that HTML is a format suitable for layout.
There will always be layout differences.
At Ghent University, we use iText to create study programs from our 
database.
We create the HTML and the PDF version simultaneously (using the same code).
Please compare:
http://www.opleidingen.ugent.be/studiegids/2006/EN/FACULTY/TW/MABA/EMRUIS/000201/INDEX.HTM
http://www.opleidingen.ugent.be/studiegids/2006/EN/FACULTY/TW/MABA/EMRUIS/000201/INFO.PDF
Note that the HTML version has a link to the PDF, but not vice-versa.
We used the pause()/resume() method on the PdfWriter to achieve this.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to