[
https://issues.apache.org/jira/browse/PDFBOX-5324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17445612#comment-17445612
]
qiang Liu commented on PDFBOX-5324:
-----------------------------------
[~tilman] thanks for your quick response and review.
submit a new patch [^0002-support-get-unicode-form-font-cmap.patch]
^use font Cmap only if the font is embedded to avoid recursively calling of
toUnicode() and codeToGID() repeatedly, which cause a stack overflow.^
> support get unicode from TrueTypeFont cmap
> ------------------------------------------
>
> Key: PDFBOX-5324
> URL: https://issues.apache.org/jira/browse/PDFBOX-5324
> Project: PDFBox
> Issue Type: Improvement
> Components: Text extraction
> Affects Versions: 3.0.0 PDFBox
> Reporter: qiang Liu
> Priority: Major
> Labels: patch
> Attachments: 0001-support-get-unicode-form-font-cmap.patch,
> 0002-support-get-unicode-form-font-cmap.patch, fp-jiangshu-public.pdf
>
>
> for some special pdf files like the one I attached, some text is missing from
> text extraction. after some debug and tests, found out that this can be fixed
> if we use Cmap from TrueTypeFont too.
> I will submit a patch soon
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]