Package: libpdfbox-java
Version: 1:1.7.0+dfsg-1
Severity: important

Without fontbox installed, I get the following...

java -cp /usr/share/java/commons-logging.jar:/usr/share/java/pdfbox.jar 
org.apache.pdfbox.ExtractText CAH_MainGame.pdf CAH_MainGame.txt
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/fontbox/afm/AFMParser
        at 
org.apache.pdfbox.pdmodel.font.PDFont.addAdobeFontMetric(PDFont.java:145)
        at 
org.apache.pdfbox.pdmodel.font.PDFont.getAdobeFontMetrics(PDFont.java:114)
        at org.apache.pdfbox.pdmodel.font.PDFont.<clinit>(PDFont.java:106)
        at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:104)
        at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:187)
        at 
org.apache.pdfbox.util.PDFStreamEngine.getFonts(PDFStreamEngine.java:601)
        at 
org.apache.pdfbox.util.operator.SetTextFont.process(SetTextFont.java:54)
        at 
org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:556)
        at 
org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:270)
        at 
org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237)
        at 
org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217)
        at 
org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:448)
        at 
org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:372)
        at 
org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:328)
        at org.apache.pdfbox.ExtractText.startExtraction(ExtractText.java:274)
        at org.apache.pdfbox.ExtractText.main(ExtractText.java:84)

With fontbox installed and added to the classpath, all works fine!

-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (600, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.35-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information



__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to