[
https://issues.apache.org/jira/browse/PDFBOX-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14102376#comment-14102376
]
Andreas Lehmkühler commented on PDFBOX-2262:
--------------------------------------------
I've update my branch to the newest version. The pdfs of PDFBOX-62 and
PDFBO-1689 are working now.
But ApacheConPDFBox_outsidein-8.3.7.pdf from PDFBOX-1192 now crashes with
another exception.
{code}
Aug 19, 2014 6:02:58 PM org.apache.pdfbox.pdmodel.font.PDCIDFont
determineEncoding
WARNUNG: 'Oracle-Custom1-UCS2' isn't a predefined CMap, most likely it's
embedded in the pdf itself.
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException:
CMap Not implemented: Oracle-UCS2-ArialUnicodeMS
at
org.apache.pdfbox.util.PDFStreamEngine.processText(PDFStreamEngine.java:424)
at
org.apache.pdfbox.rendering.PageDrawer.processText(PageDrawer.java:285)
at
org.apache.pdfbox.util.PDFStreamEngine.showAdjustedTextRun(PDFStreamEngine.java:349)
at
org.apache.pdfbox.util.PDFStreamEngine.showAdjustedText(PDFStreamEngine.java:335)
at
org.apache.pdfbox.util.operator.text.ShowTextGlyph.process(ShowTextGlyph.java:69)
at
org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:589)
at
org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:269)
at
org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:236)
at
org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:190)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:160)
at
org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:228)
at
org.apache.pdfbox.rendering.PDFRenderer.renderPageToGraphics(PDFRenderer.java:190)
at
org.apache.pdfbox.rendering.PDFRenderer.renderPageToGraphics(PDFRenderer.java:174)
at org.apache.pdfbox.tools.gui.PDFPagePanel.paint(PDFPagePanel.java:87)
.....
{code}
> Remove usage of AWT fonts
> -------------------------
>
> Key: PDFBOX-2262
> URL: https://issues.apache.org/jira/browse/PDFBOX-2262
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel, Rendering
> Affects Versions: 2.0.0
> Reporter: John Hewson
> Assignee: John Hewson
> Attachments: ELVIA-Reiserucktritt-Vollschutz.pdf-1.png,
> PDFBOX-1094-094730.pdf-1.png, PDFBOX-1770.pdf-1.png, bugzilla886049.pdf,
> bugzilla886049.pdf-1.png
>
>
> We're still using AWT fonts to render the "standard 14" built-in fonts, which
> causes rendering problems and encoding issues (see PDFBOX-2140). We're also
> using AWT for some fallback fonts.
> Removal of these AWT fonts isn't too difficult, we need to load the fonts
> using the existing PDFFontManager mechanism which has recently been added.
> All missing TrueType fonts loaded from disk have been using SystemFontManager
> for a number of weeks now.
> We should ship some sensible default fonts with PDFBox, such as the
> Liberation fonts (see PDFBOX-2169, PDFBOX-2263), in case PDFFontManager can't
> find anything suitable, rather than falling back to the default TTF font, but
> by default we'll probe the system for suitable fonts.
--
This message was sent by Atlassian JIRA
(v6.2#6252)