You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Juraj Lonc (JIRA)" <ji...@apache.org> on 2015/03/20 16:04:38 UTC

[jira] [Updated] (PDFBOX-2721) Invalid ToUnicode CMap in font

     [ https://issues.apache.org/jira/browse/PDFBOX-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juraj Lonc updated PDFBOX-2721:
-------------------------------
    Attachment: cmap_beginnotdefrange.pdf

> Invalid ToUnicode CMap in font 
> -------------------------------
>
>                 Key: PDFBOX-2721
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2721
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Juraj Lonc
>         Attachments: cmap_beginnotdefrange.pdf
>
>
> Attached PDF file works fine in Adobe Reader, but PDFBox logs warnings:
> 2015-03-20 15:48:57,573 WARN  [org.apache.pdfbox.pdmodel.font.PDFont] (http-0.0.0.0-8080-7) Invalid ToUnicode CMap in font HPDFAA+Thoth-Unicode
> It seems that you require "beginbfchar" or "beginbfrange" in CMap. But should it be required?
> CMap definition contains "beginnotdefrange" and this is ignored in PDFBox.
> PDF Reference says:
> beginnotdefchar, endnotdefchar, beginnotdefrange, and endnotdefrange
> define notdef mappings from character codes to CIDs. As described in the
> section “Handling Undefined Characters” on page 355, a notdef mapping is
> used if the normal mapping produces a CID for which no glyph is present in
> the associated CIDFont.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org