The cmap is broken, as you said, the dictionary never ends.
Paulo
----- Original Message -----
From: Kevin Day
To: IText Questions
Sent: Thursday, April 07, 2011 12:07 AM
Subject: [iText-questions] CMap parse failure
I have a CMap that DocumentFont.fillMetrics() is failing to parse. I'm
wondering if someone who knows CMaps could tell me if this is a corrupted CMap
or not.
The problem is that the dictionary that begins on line 2 ( <</Registry
(F0+0) doesn't appear to ever end. It looks like we hit a 'def' operator.
Is this an invalid CMap, or is the parser in fillMetrics() naive in assuming
that standard PDF token syntax applies inside the CMap?
Here's the CMap:
/CIDInit /ProcSet findresource begin 12 dict begin begincmap
CIDSystemInfo <</Registry (F0+0) /Ordering (F0) /Supplement 0
/CMapName /F0+0 def
/CMapType 2 def
1 begincodespacerange <0003> <005D> endcodespacerange
3 beginbfchar
<0003> <0020>
<0009> <0026>
<003D> <005A>
endbfchar
7 beginbfrange
<000B> <000C> [ <0028> <0029> ]
<000F> <001D> [ <002C> <002D> <002E> <002F> <0030> <0031> <0032> <0033>
<0034> <0035> <0036> <0037> <0038> <0039> <003A> ]
<0024> <0026> [ <0041> <0042> <0043> ]
<0028> <002D> [ <0045> <0046> <0047> <0048> <0049> <004A> ]
<0030> <0037> [ <004D> <004E> <004F> <0050> <0051> <0052> <0053> <0054> ]
<0039> <003A> [ <0056> <0057> ]
<0044> <005D> [ <0061> <0062> <0063> <0064> <0065> <0066> <0067> <0068>
<0069> <006A> <006B> <006C> <006D> <006E> <006F> <0070> <0071> <0072> <0073>
<0074> <0075> <0076> <0077> <0078> <0079> <007A> ]
endbfrange
endcmap CMapName currentdict /CMap defineresource pop end end
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
iText-questions mailing list
[email 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
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
iText-questions mailing list
[email 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