Howard Shank wrote:
Hi Bruno/Paulo,
In the iText Document class why is it not possible to add meta-data once the document is opened? Is this a technical limitation or a specific design limitation?

In the book, I explain the origin of this limitation.
When I wrote the first versions of iText, I developed
an HtmlWriter that wrote HTML simultaneously with PDF.
This was very useful in the debugging process: half
a PDF document is hard to read, but reading half an
HTML document is easy.

In HTML all meta data is written in the HEAD section
(before document.open()), not in the BODY (after
document.open()).

In PDF, it doesn't matter when you add the metadata.

In other words, there's a technical limitation, but
only for HtmlWriter.

The reason I ask is in the RTF specification, it is possible to parse document text before encountering document meta-data. With that in mind for parsing RTF it is necessary to be able to write document content and/or meta-data at any time while parsing an existing document.

Hmm, you're right. Maybe we should find a way around
this problem.
br,
Bruno

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to