Java Mailing List Archive

http://www.junlu.com/

Home » Post all your questions about iText here »

[iText-questions] PdfContentStreamProcessor and Type3 fonts

Gylfi Ingvason

2013-06-26


Author LoginPost Reply
Gents,

I'm playing with the PdfContentStreamProcessor - doing some text extraction
testing - in iTextSharp (5.4.2) and I'm finding that Type3 fonts are not
supported. No text is extracted and no errors are thrown even though the
encoding is present and is straight ASCII. It appears that
CMapAwareDocumentFont and the parent DocumentFont classes do not support
Type3. Didn't see any Type1 support either, but support for TrueType and
Type0 appears to be present and the Type1 support may be part of that
although it didn't jump out at me.

Any plans on adding this support in the foreseeable future? If not, can
somebody give me an idea of what would be a reasonable way to roll my own?

BTW, PdfBox has no problems in terms of text extraction using Type3 fonts,
at least not in the testing that I've done so far, but I prefer using
iTextSharp for this if I can get it to work.

Thanks,

Gylfi



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
©2008 junlu.com - Jax Systems, LLC, U.S.A.