pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1626334 - in /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight: content/PreflightContentStream.java font/descriptor/TrueTypeDescriptorHelper.java font/util/FontLike.java
Date Fri, 19 Sep 2014 21:07:18 GMT
Author: jahewson
Date: Fri Sep 19 21:07:17 2014
New Revision: 1626334

URL: http://svn.apache.org/r1626334
Log:
PDFBOX-2360: Use getName() in preflight

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/descriptor/TrueTypeDescriptorHelper.java
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/FontLike.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java?rev=1626334&r1=1626333&r2=1626334&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
Fri Sep 19 21:07:17 2014
@@ -319,7 +319,7 @@ public class PreflightContentStream exte
         else if (fontContainer == null)
         {
             // Font Must be embedded if the RenderingMode isn't 3
-            registerError(font.getBaseFont() + " is unknown wasn't found by the FontHelperValdiator",
+            registerError(font.getName() + " is unknown wasn't found by the FontHelperValdiator",
                     ERROR_FONTS_UNKNOWN_FONT_REF);
             return;
         }

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/descriptor/TrueTypeDescriptorHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/descriptor/TrueTypeDescriptorHelper.java?rev=1626334&r1=1626333&r2=1626334&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/descriptor/TrueTypeDescriptorHelper.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/descriptor/TrueTypeDescriptorHelper.java
Fri Sep 19 21:07:17 2014
@@ -97,7 +97,7 @@ public class TrueTypeDescriptorHelper ex
         catch (IOException e)
         {
             this.fContainer.push(new ValidationError(ERROR_FONTS_TRUETYPE_DAMAGED, "The FontFile
can't be read for "
-                    + this.font.getBaseFont()));
+                    + this.font.getName()));
         }
         finally
         {

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/FontLike.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/FontLike.java?rev=1626334&r1=1626333&r2=1626334&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/FontLike.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/util/FontLike.java
Fri Sep 19 21:07:17 2014
@@ -61,7 +61,7 @@ public class FontLike
     {
         if (font != null)
         {
-            return font.getBaseFont();
+            return font.getName();
         }
         else
         {



Mime
View raw message