Yes, though that will only help you when working with fully embedded
Type 1 or TrueType fonts. It will NOT help you with subset fonts of
any type :(.
Leonard
On Sep 23, 2008, at 4:50 PM, Nhia Nhia wrote:
thanks for answering,
I use the PdfContentByte.showText(BaseFont,size) and I create the
font with BaseFont(file,...), so I need to create the font with
BaseFont(PRIndirectReference (reader of original pdf), num)) and I
would have the font data ?? because currently I search in my system
a file with the same FontName of the PostScriptName of the font from
the original pdf....
On Tue, Sep 23, 2008 at 4:47 PM, Leonard Rosenthol <[EMAIL PROTECTED]
> wrote:
On Sep 23, 2008, at 11:49 AM, Laura Cobos wrote:
> I need to know if is it possible to extract with itext the stream
> object of a Type 3 font and the stream object of a XForm (I suppose
> the same method would be correct for both). I know how scan the
> PdfDictionary keys but not the object where is the stream....
>
I assume you mean a Form XObject...
Yes, you can certainly extract their streams and process
them. You
just need to get the correct parent dictionaries...
Also, don't forget about Patterns and Annotation
Appearances...they
are also content streams...
> Currently I can rewrite de pdf if it use Type 1 fonts, but in some
> cases the letters are not identical to the original letters. It
> seems like some of the "copied" letters had more thickness, but only
> a bit more, so if you compare the pdf it seems like the copied
> letters would be shifted a little.
> Is it possible that even I have made the original pdf with a font
> file store in my computer and I try to rewrite it reading the
> content stream and using the same font file and writing the same
> text, some characteristics of the font like Descent could change
> when you create the pdf instead of using the Descent in the .afm
> file...?
>
You MUST use the EXACT SAME font data as found in the original
PDF...Substitution of any fashion will create a non-equivalent
document.
Also, how do you plan to deal with TrueType and OpenType fonts?
What about CID fonts?
Leonard
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere in
the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere in
the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php