pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1686611 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Date Sat, 20 Jun 2015 13:12:32 GMT
Author: tilman
Date: Sat Jun 20 13:12:32 2015
New Revision: 1686611

URL: http://svn.apache.org/r1686611
Log:
PDFBOX-2837: avoid string being converted to EBCDIC in non ASCII systems; fix typos

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

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1686611&r1=1686610&r2=1686611&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Sat
Jun 20 13:12:32 2015
@@ -1393,7 +1393,7 @@ public class PDDocument implements Pagea
             // In order to avoid having %%EOF the first object on the same line
             // as the %%EOF, we put a newline here.  If there's already one at
             // the end of the file, an extra one won't hurt. PDFBOX-1051
-            output.write("\r\n".getBytes());
+            output.write("\r\n".getBytes("ISO-8859-1"));
             writer = new COSWriter( output, input );
             writer.write( this );
             writer.close();



Mime
View raw message