pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkühler <andr...@lehmi.de>
Subject Re: [ANNOUNCE] Apache PDFBox 1.8.5 released
Date Fri, 16 May 2014 09:53:40 GMT
Hi,


> Orion Poplawski <orion@cora.nwra.com> hat am 8. Mai 2014 um 05:17 geschrieben:
>
>
> On 05/02/2014 10:26 AM, Andreas Lehmkuehler wrote:
> > The Apache PDFBox community is pleased to announce the release of
> > Apache PDFBox version 1.8.5. The release is available for download at:
> >
> >    http://pdfbox.apache.org/downloads.html
>
> This release presents something of a challenge for the Fedora package.
> First off I will need to disable access to
> com.levigo.jbig2:levigo-jbig2-imageio and possibly
> net.java.dev.jai-imageio:jai-imageio-core-standalone in pdfbox.
>
>  But then I get test failures:
>
> Tests run: 139, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.121
> sec <<< FAILURE! - in org.apache.pdfbox.TestAll
> testRenderImage(org.apache.pdfbox.util.TestImageIOUtils)  Time elapsed:
> 1.238 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: X resolution doesn't match in
> image file target/test-output/raw_image_demo.pdf-1.bmp expected:<120>
> but was:<0>
>         at junit.framework.Assert.fail(Assert.java:57)
>         at junit.framework.Assert.failNotEquals(Assert.java:329)
>         at junit.framework.Assert.assertEquals(Assert.java:78)
>         at junit.framework.Assert.assertEquals(Assert.java:234)
>         at junit.framework.TestCase.assertEquals(TestCase.java:401)
>         at
> org.apache.pdfbox.util.TestImageIOUtils.checkBmpResolution(TestImageIOUtils.java:352)
>         at
> org.apache.pdfbox.util.TestImageIOUtils.checkResolution(TestImageIOUtils.java:300)
>         at
> org.apache.pdfbox.util.TestImageIOUtils.doTestFile(TestImageIOUtils.java:135)
>         at
> org.apache.pdfbox.util.TestImageIOUtils.testRenderImage(TestImageIOUtils.java:278)
>
>
> Results :
>
> Failed tests:
>
> TestImageIOUtils.testRenderImage:278->doTestFile:135->checkResolution:300->checkBmpResolution:352
> X resolution doesn't match in image file
> target/test-output/raw_image_demo.pdf-1.bmp expected:<120> but was:<0>
>
> I'd like to not have to disable all tests in the build.  Could there be
> some way to completely disable this functionality?
Maybe we should implement an optional switch to disable that part of the test if
necessary.

@Orion: Is that a possible solution you can live with?

BR
Andreas Lehmkühler

Mime
View raw message