Hi Bruno/Paulo,

I am working with Mark Hall and the RTF code.

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?

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.

Here is a valid RTF encoding of a document:
--------------Start Document----------------
{\rtf1\ansi\ansicpg1252 Text in header\line
\deff0{\fonttbl{\f0\froman\fcharset0 Times New Roman;}{\f1\froman\fcharset0 
Arial;}}
{\colortbl\red0\green0\blue0;\red255\green255\blue255;\red255\green0\blue0;}
{\stylesheet 
}
{\*\listtable
}
{\*\listoverridetable
}
Text before \\info group\line
{\info {\author Shank}}
\paperw11907\paperh16840\margl720\margr720\margt720\margb720
\pgwsxn11907\pghsxn16840
\marglsxn720\margrsxn720\margtsxn720\margbsxn720Testing a soft linebreak\line 
here. With \f1 a different font and \cf2 colour.}
--------------End Document----------------

In line 1 there is "Text in header" with a soft line break.
In line 10 there is "Text before \info group" with a soft line break
In line 11 there is meta-data "Author = Shank".
The text from lines 1 and 10 would be included in the document text and 
encountered before the meta-data element for the author.
The remaining text "Testing a soft linebreak\line here. With a different font 
and colour." would be included in the doucment text.

Thanks for your time!

Regards,
Howard Shank


      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to