Eric Summkeller wrote:
> My problem now is, that I don't know how I convert the String "(2)" to the 
> code "(\u0000\u0015)". Pherhaps this is something easy but I don't know how. 
> If I replace my Stream into the following, the Template has no content in the 
> new Document.
> 
> My new Stream:
> "BT\n/F1 10 Tf\n1 0 0 rg\n1 0 0 1 0 0 Tm\n(2)Tj\nET\n"

Now I understand!
/F1 is some special font, and you don't know how the characters
are encoded... Maybe the font referred to by /F1 only contains
a subset of the complete font, in which case the glyph for the
character '2' might not even be present; in which case your
question is unanswerable. (Editing the PDF was a bad idea to start
with; I hope you're paid by the hour.)
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
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to