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 2022/05/07 03:58:07 UTC

svn commit: r1900638 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java

Author: tilman
Date: Sat May  7 03:58:06 2022
New Revision: 1900638

URL: http://svn.apache.org/viewvc?rev=1900638&view=rev
Log:
PDFBOX-5430: don't throw, log error instead so that file can be rendered

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java?rev=1900638&r1=1900637&r2=1900638&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java Sat May  7 03:58:06 2022
@@ -1,4 +1,4 @@
-/*
+ew io/*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
@@ -682,12 +682,12 @@ public abstract class PDFStreamEngine
             }
             else if (obj instanceof COSArray)
             {
-                LOG.error("Nested arrays are not allowed in an array for TJ operation:" + obj);
+                LOG.error("Nested arrays are not allowed in an array for TJ operation: " + obj);
             }
             else
             {
-                throw new IOException("Unknown type " + obj.getClass().getSimpleName()
-                        + " in array for TJ operation:" + obj);
+                LOG.error("Unknown type " + obj.getClass().getSimpleName()
+                        + " in array for TJ operation: " + obj);
             }
         }
     }