You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by da...@apache.org on 2009/09/12 20:04:32 UTC

svn commit: r814218 - in /incubator/pdfbox/trunk: src/main/java/org/apache/pdfbox/filter/ test/input/rendering/

Author: danielwilson
Date: Sat Sep 12 18:04:31 2009
New Revision: 814218

URL: http://svn.apache.org/viewvc?rev=814218&view=rev
Log:
Incorporating PDFBox-518 patch and updating test cases to suit.
Several of the test documents were significantly improved by this patch, which is why the PNG's from them are being updated.  And since Andrew granted us the rights to use the survey.PDF file he included, I'm making it a test case as well.

Added:
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf   (with props)
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf-1.png   (with props)
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf-2.png   (with props)
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf-3.png   (with props)
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf-4.png   (with props)
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf-5.png   (with props)
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf-6.png   (with props)
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf-7.png   (with props)
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf-8.png   (with props)
    incubator/pdfbox/trunk/test/input/rendering/survey.pdf-9.png   (with props)
Modified:
    incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/filter/FlateFilter.java
    incubator/pdfbox/trunk/test/input/rendering/ARCHIVERGB.ai-1.png
    incubator/pdfbox/trunk/test/input/rendering/HOTRODCMYK.ai-1.png

Modified: incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/filter/FlateFilter.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/filter/FlateFilter.java?rev=814218&r1=814217&r2=814218&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/filter/FlateFilter.java (original)
+++ incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/filter/FlateFilter.java Sat Sep 12 18:04:31 2009
@@ -238,7 +238,7 @@
 
                 // read line
                 int i = 0;
-                int offset = 0;
+                int offset = bpp;
                 while (offset < rowlength && ((i = data.read(actline, offset, rowlength - offset)) != -1))
                 {
                     offset += i;

Modified: incubator/pdfbox/trunk/test/input/rendering/ARCHIVERGB.ai-1.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/ARCHIVERGB.ai-1.png?rev=814218&r1=814217&r2=814218&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/pdfbox/trunk/test/input/rendering/HOTRODCMYK.ai-1.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/HOTRODCMYK.ai-1.png?rev=814218&r1=814217&r2=814218&view=diff
==============================================================================
Binary files - no diff available.

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-1.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf-1.png?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-2.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf-2.png?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-3.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf-3.png?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-3.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-4.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf-4.png?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-4.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-5.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf-5.png?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-5.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-6.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf-6.png?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-6.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-7.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf-7.png?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-7.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-8.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf-8.png?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-8.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-9.png
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/test/input/rendering/survey.pdf-9.png?rev=814218&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pdfbox/trunk/test/input/rendering/survey.pdf-9.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream