Hi Dmitri,

> for the detailed drawback description and for te patch, I'll go check the
> affected class source to see the reason.

Well, I have to admit that I didn't add comments to the class source 
explaining the reason since the patch consists only of a few extra lines 
within one class method.

So here comes the explanation:

When rebuilding new indices for charstrings and global and local 
subroutines the code introduced zero-length index entries for unused 
charstrings and unused subroutines. Apparently Adobe Reader 8 and above 
does not handle this situation correctly (although prior versions did). 
So I changed the class source to insert 1-byte instructions for unused 
charstrings and subroutines (operator ENDCHAR for charstrings and 
operator RETURN for subroutines). This solves the problem at the price 
of a slightly bigger PDF file.

BTW OpenType (CFF) fonts are only subsetted if they are used with 
encoding Identity-H, otherwise the complete CFF table is embedded 
resulting in quite large PDF files depending on the font used.

Regards,

Ulrich


-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to