pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1788149 - /pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java
Date Wed, 22 Mar 2017 18:40:24 GMT
Author: tilman
Date: Wed Mar 22 18:40:23 2017
New Revision: 1788149

URL: http://svn.apache.org/viewvc?rev=1788149&view=rev
Log:
PDFBOX-3731: add parsing for /RD

Modified:
    pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java

Modified: pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java?rev=1788149&r1=1788148&r2=1788149&view=diff
==============================================================================
--- pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java (original)
+++ pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/type1/Type1Parser.java Wed
Mar 22 18:40:23 2017
@@ -532,6 +532,15 @@ final class Type1Parser
                 read(Token.NAME, "executeonly");
                 read(Token.NAME, "def");
             }
+            else if (key.equals("RD"))
+            {
+                // /RD {string currentfile exch readstring pop} bind executeonly def
+                read(Token.START_PROC);
+                readProc();
+                readMaybe(Token.NAME, "bind");                
+                readMaybe(Token.NAME, "executeonly");                
+                read(Token.NAME, "def");
+            }
             else
             {
                 readPrivate(key, readDictValue());



Mime
View raw message