pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1862944 - /pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Fri, 12 Jul 2019 04:09:23 GMT
Author: tilman
Date: Fri Jul 12 04:09:23 2019
New Revision: 1862944

URL: http://svn.apache.org/viewvc?rev=1862944&view=rev
Log:
PDFBOX-4581: catch InternalError

Modified:
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1862944&r1=1862943&r2=1862944&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Fri Jul 12 04:09:23 2019
@@ -1384,7 +1384,15 @@ public class PageDrawer extends PDFGraph
         {
             if (isContentRendered())
             {
-                graphics.drawImage(image, null, null);
+               try
+               {
+                   graphics.drawImage(image, null, null);
+               }
+               catch (InternalError ie)
+               {
+                   LOG.error("Exception drawing image, see JDK-6689349, " +
+                             "try rendering into a BufferedImage instead", ie);
+               }
             }
         }
 



Mime
View raw message