pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1788135 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java
Date Wed, 22 Mar 2017 16:23:08 GMT
Author: tilman
Date: Wed Mar 22 16:23:08 2017
New Revision: 1788135

URL: http://svn.apache.org/viewvc?rev=1788135&view=rev
Log:
PDFBOX-3727: use height instead of rows, because the later number has been found to be unreliable

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java?rev=1788135&r1=1788134&r2=1788135&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java
Wed Mar 22 16:23:08 2017
@@ -49,8 +49,8 @@ final class CCITTFaxFilter extends Filte
         int height = parameters.getInt(COSName.HEIGHT, COSName.H, 0);
         if (rows > 0 && height > 0)
         {
-            // ensure that rows doesn't contain implausible data, see PDFBOX-771
-            rows = Math.min(rows, height);
+            // PDFBOX-771, PDFBOX-3727: rows in DecodeParms sometimes contains an incorrect
value
+            rows = height;
         }
         else
         {



Mime
View raw message