pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: Pdfbox trunk error
Date Wed, 04 Mar 2015 15:20:29 GMT
Hi Eric,

I have PDFBox in Eclipse up and running - so I might be able to help you getting that too.

BR
Maruan

Am 04.03.2015 um 16:06 schrieb Eric Douglas <edouglas@blockhouse.com>:

> I would prefer to import the project to Eclipse so I can have it
> automatically get updates and build the latest jar, but as I can't get that
> to work we can try the snapshot for now.
> The snapshot jar is confusing, as it appears it merges in some requirements
> but not all.  It appears it has the classes for the pdfbox jar and the
> fontbox jar and the bc jars (I'm not sure why it would need a mail package,
> but these appear to be required for encrypt/decrypt).  It appears it does
> not have the classes from the other dependencies.  Do I need these in my
> path or what are they for?  Of course we need the levigo-jbig2 jar as we
> did already have one user try to read a PDF with a jbig2 image embedded.
> I'm guessing we need the jai-imageio jar to process any other type of
> images?  and we need to include the pcfi jar?  what's hamcrest for?
> 
> On Tue, Mar 3, 2015 at 5:14 PM, Tilman Hausherr <THausherr@t-online.de>
> wrote:
> 
>> 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 <THausherr@t-online.de>
>>> 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: users-unsubscribe@pdfbox.apache.org
>>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>>> 
>>>> 
>>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>> 
>> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message