Author: tilman
Date: Tue Feb 13 17:24:36 2018
New Revision: 1824160

URL: http://svn.apache.org/viewvc?rev=1824160&view=rev
Log:
PDFBOX-4108: /Length1 not needed for /CIDToGIDMap

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

Modified: 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java?rev=1824160&r1=1824159&r2=1824160&view=diff
==============================================================================
--- 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java
 (original)
+++ 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java
 Tue Feb 13 17:24:36 2018
@@ -231,10 +231,8 @@ final class PDCIDFontType2Embedder exten
             out.write(new byte[] { (byte)(gid >> 8 & 0xff), (byte)(gid & 0xff) 
});
         }
 
-        byte[] byteArray = out.toByteArray();
-        InputStream input = new ByteArrayInputStream(byteArray);
+        InputStream input = new ByteArrayInputStream(out.toByteArray());
         PDStream stream = new PDStream(document, input, COSName.FLATE_DECODE);
-        stream.getCOSObject().setInt(COSName.LENGTH1, byteArray.length);
 
         cidFont.setItem(COSName.CID_TO_GID_MAP, stream);
     }


Reply via email to