You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Adam Nichols (JIRA)" <ji...@apache.org> on 2011/06/28 23:08:28 UTC

[jira] [Commented] (PDFBOX-479) loading a CUPS-generated PDF results in RasterExceptions

    [ https://issues.apache.org/jira/browse/PDFBOX-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056783#comment-13056783 ] 

Adam Nichols commented on PDFBOX-479:
-------------------------------------

I was able to load this file without any exceptions using PDFBox 1.5.0.  Below is my test case (which I added to TestPDFParser.java on my local machine, but did not commit because permission to include the PDF was not granted).  To replicate my test results:
mkdir pdfbox/src/test/resources/org/apache/pdfbox/pdfparser

&lt;download job_497-Testpagina.pdf to this newly created directory&gt;
&lt;Add the following function to TestPDFParser.java&gt;
    /**
     * Test the problem reported in PDFBOX-479
     *
     * @throws Exception If there is an error parsing the PDF.
     */
    public void testPDFBOX479() throws Exception {
        PDDocument doc = null;
        try {
           doc = PDDocument.load(TestPDFParser.class.getResourceAsStream(&quot;job_497-Testpagina.pdf&quot;));
        } finally {
            if(doc != null) {
                doc.close();
            }
        }
    }

Please let me know if I misunderstood the bug report, or if my test is accurate and if the bug is actually fixed.  Also, if anyone can confirm that this PDF is able to be loaded without throwing any exceptions, it never hurts to have a second pair of eyes.

> loading a CUPS-generated PDF results in RasterExceptions
> --------------------------------------------------------
>
>                 Key: PDFBOX-479
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-479
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing, PDFReader, PDModel
>    Affects Versions: 0.8.0-incubator
>         Environment: Java 1.6 / 1.5
> Windows vista
>            Reporter: Tim Boven
>            Priority: Blocker
>         Attachments: job_497-Testpagina.pdf
>
>
> I've generated a PDF with cups (a testpage) and when I try to load this PDF with the recently checked out version of PDFBox,
> I get RasterExceptions because there are filters active on the inline images.
> I've removed the filters in the pdf and then I can open it without errors but I also get an empty page.
> Note: the pdf works with the pdf-renderer on dev.java.net and the reader of Adobe.

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