pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1662522 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
Date Thu, 26 Feb 2015 18:11:22 GMT
Author: tilman
Date: Thu Feb 26 18:11:22 2015
New Revision: 1662522

URL: http://svn.apache.org/r1662522
Log:
PDFBOX-2350, PDFBOX-2128: also skip for space after eexec in type1 font

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java?rev=1662522&r1=1662521&r2=1662522&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java Thu
Feb 26 18:11:22 2015
@@ -245,8 +245,8 @@ public class PDType1Font extends PDSimpl
                 bytes[offset + 3] == 'c')
             {
                 offset += 4;
-                // skip additional CR LF characters
-                while (offset < length1 && (bytes[offset] == '\r' || bytes[offset]
== '\n'))
+                // skip additional CR LF space characters
+                while (offset < length1 && (bytes[offset] == '\r' || bytes[offset]
== '\n' || bytes[offset] == ' '))
                 {
                     offset++;
                 }



Mime
View raw message