I can't help you with eclipse; an alternative solution: download the jar
here:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.0-SNAPSHOT/
just use the jar there, you won't need fontbox.
(You may need the levigo JBIG2 plugin and JAI in your classpath)
Tilman
Am 03.03.2015 um 22:37 schrieb Eric Douglas:
I have used maven a long time ago, I forget how. The project has a bunch
of pom.xml files I forget how to use.
I'm using Eclipse Luna 4.4.1. I have m2e installed.
I can compile the pdfbox jar by right clicking the build.xml file under the
the pdfbox folder, selecting Run As, Ant Build.
The fontbox jar came with the subversion install. The fontbox folder
doesn't have a build.xml.
On Tue, Mar 3, 2015 at 4:13 PM, Tilman Hausherr <[email protected]>
wrote:
What happens if you build pdfbox-app instead and use that one?
Tilman
Am 03.03.2015 um 21:06 schrieb Eric Douglas:
I downloaded pdfbox trunk source from https://github.com/apache/pdfbox on
1/8/15 and compiled a jar and my code to render a PDF works fine.
I tried building the pdfbox-2.0.0.jar and fontbox-2.0.0.jar from the
current subversion repository and the same code to render the same PDF
gets
this error.
java.io.IOException: Error: Could not find referenced cmap stream
Identity-H
at org.apache.fontbox.cmap.CMapParser.getExternalCMap(
CMapParser.java:418)
at org.apache.fontbox.cmap.CMapParser.parsePredefined(CMapParser.java:84)
at
org.apache.pdfbox.pdmodel.font.CMapManager.getPredefinedCMap(CMapManager.
java:54)
at
org.apache.pdfbox.pdmodel.font.PDType0Font.readEncoding(
PDType0Font.java:159)
at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(
PDType0Font.java:106)
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(
PDFontFactory.java:83)
at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:93)
at
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(
SetFontAndSize.java:50)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(
PDFStreamEngine.java:802)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(
PDFStreamEngine.java:464)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.
processStream(PDFStreamEngine.java:438)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.
processPage(PDFStreamEngine.java:149)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:160)
at org.apache.pdfbox.rendering.PDFRenderer.renderPage(
PDFRenderer.java:203)
at
org.apache.pdfbox.rendering.PDFRenderer.renderPageToGraphics(
PDFRenderer.java:166)
at
org.apache.pdfbox.rendering.PDFRenderer.renderPageToGraphics(
PDFRenderer.java:150)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]