pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1686567 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
Date Sat, 20 Jun 2015 11:35:30 GMT
Author: tilman
Date: Sat Jun 20 11:35:29 2015
New Revision: 1686567

URL: http://svn.apache.org/r1686567
Log:
PDFBOX-2837: avoid input being read as EBCDIC in non ASCII systems

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

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java?rev=1686567&r1=1686566&r2=1686567&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
Sat Jun 20 11:35:29 2015
@@ -300,7 +300,7 @@ public class PDType1Font extends PDSimpl
                 BufferedReader in = null;
                 try 
                 {
-                    in = new BufferedReader(new InputStreamReader(fontFile.createInputStream()));
+                    in = new BufferedReader(new InputStreamReader(fontFile.createInputStream(),
"ISO-8859-1"));
                     
                     // this section parses the font program stream searching for a /Encoding
entry
                     // if it contains an array of values a Type1Encoding will be returned



Mime
View raw message