You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2023/10/06 15:28:53 UTC

svn commit: r1912776 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java

Author: tilman
Date: Fri Oct  6 15:28:53 2023
New Revision: 1912776

URL: http://svn.apache.org/viewvc?rev=1912776&view=rev
Log:
PDFBOX-5694: improve log message

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java?rev=1912776&r1=1912775&r2=1912776&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java Fri Oct  6 15:28:53 2023
@@ -228,12 +228,13 @@ class TilingPaint implements Paint
         if (Math.abs(width * height) > MAXEDGE * MAXEDGE)
         {
             // PDFBOX-3653: prevent huge sizes
-            LOG.info("Pattern surface is too large, will be clipped");
-            LOG.info("width: " + width + ", height: " + height);
-            LOG.info("XStep: " + xStep + ", YStep: " + yStep);
-            LOG.info("bbox: " + bbox);
-            LOG.info("pattern matrix: " + pattern.getMatrix());
-            LOG.info("concatenated matrix: " + patternMatrix);
+            LOG.warn("Pattern surface larger than " + MAXEDGE + " x " + MAXEDGE + ", will be clipped");
+            LOG.warn("width: " + width + ", height: " + height);
+            LOG.warn("XStep: " + xStep + ", YStep: " + yStep);
+            LOG.warn("bbox: " + bbox);
+            LOG.warn("pattern matrix: " + pattern.getMatrix());
+            LOG.warn("concatenated matrix: " + patternMatrix);
+            LOG.warn("increase the property 'pdfbox.rendering.tilingpaint.maxedge'");
             width = Math.min(MAXEDGE, Math.abs(width)) * Math.signum(width);
             height = Math.min(MAXEDGE, Math.abs(height)) * Math.signum(height);
             //TODO better solution needed