[ 
https://issues.apache.org/jira/browse/PDFBOX-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13995526#comment-13995526
 ] 

Tilman Hausherr commented on PDFBOX-2074:
-----------------------------------------

This case is easy because it is ffffffff. But what if the entry is 12345678 ? 
Should we take 1234 or 5678 ?

> 4-bytes CMap entry causes exception
> -----------------------------------
>
>                 Key: PDFBOX-2074
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2074
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Juraj Lonc
>         Attachments: PDFBOX-2074_CMap.diff, pdf_with_4B_cmap_entry.pdf
>
>
> I have PDF that has CMap entry consisting of 4 bytes. It is just one entry 
> with that size, other entries have 2-bytes.
> Adobe reader has no problems with that, PDFBox throws Exception.
> I think this Exception should not be thrown. It should be skipped or 
> truncated tu 2 bytes and write warning to log.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to