pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1720909 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1FontEmbedder.java
Date Sat, 19 Dec 2015 12:59:56 GMT
Author: lehmi
Date: Sat Dec 19 12:59:56 2015
New Revision: 1720909

URL: http://svn.apache.org/viewvc?rev=1720909&view=rev
Log:
PDFBOX-3131: use the byte array instead of using a stream to avoid holding a copy of the origin
data

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1FontEmbedder.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1FontEmbedder.java?rev=1720909&r1=1720908&r2=1720909&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1FontEmbedder.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1FontEmbedder.java
Sat Dec 19 12:59:56 2015
@@ -60,8 +60,8 @@ class PDType1FontEmbedder
 
         // read the pfb
         byte[] pfbBytes = IOUtils.toByteArray(pfbStream);
-        PfbParser pfbParser = new PfbParser(new ByteArrayInputStream(pfbBytes));
-        type1 = Type1Font.createWithPFB(new ByteArrayInputStream(pfbBytes));
+        PfbParser pfbParser = new PfbParser(pfbBytes);
+        type1 = Type1Font.createWithPFB(pfbBytes);
         
         if (encoding == null)
         {



Mime
View raw message