You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "LynX (JIRA)" <ji...@apache.org> on 2011/09/16 20:19:09 UTC

[jira] [Updated] (PDFBOX-569) Text-Extraction of PDF fails

     [ https://issues.apache.org/jira/browse/PDFBOX-569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

LynX updated PDFBOX-569:
------------------------

    Attachment: TextExtractionFix-569.patch

Fix for offset problem

> Text-Extraction of PDF fails
> ----------------------------
>
>                 Key: PDFBOX-569
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-569
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 0.8.0-incubator
>         Environment: 1.6.0_11
>            Reporter: Stephan Götter
>            Priority: Blocker
>         Attachments: TextExtractionFix-569.patch, b820GL0204.pdf
>
>
> Using trunk this Exception occurs when extracting text of attached PDF.
> [WARN] PDFParser - invalid xref line: 0
> java.io.IOException: Cannot create font if /Type is not /Font.  Actual=COSName{FontDescriptor}
> 	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:95)
> 	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:68)
> 	at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:117)
> 	at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:206)
> 	at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:188)
> 	at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:367)
> 	at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:291)
> 	at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:247)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira