pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1625711 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java
Date Wed, 17 Sep 2014 17:42:17 GMT
Author: tilman
Date: Wed Sep 17 17:42:17 2014
New Revision: 1625711

URL: http://svn.apache.org/r1625711
Log:
pdfbox-2338: avoid exception for symbol fonts without descriptor

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java?rev=1625711&r1=1625710&r2=1625711&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDSimpleFont.java Wed
Sep 17 17:42:17 2014
@@ -178,6 +178,10 @@ public abstract class PDSimpleFont exten
         {
             return getBaseFont().equals("Symbol") || getBaseFont().equals("ZapfDingbats");
         }
+        else if (getBaseFont().startsWith("Symbol"))
+        {
+            return true;
+        }
         else
         {
             if (encoding == null)



Mime
View raw message