pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1859192 - /pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
Date Mon, 13 May 2019 16:51:21 GMT
Author: tilman
Date: Mon May 13 16:51:21 2019
New Revision: 1859192

URL: http://svn.apache.org/viewvc?rev=1859192&view=rev
Log:
PDFBOX-4544: use the document specified as parameter, as suggested by Jonathan

Modified:
    pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java

Modified: pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java?rev=1859192&r1=1859191&r2=1859192&view=diff
==============================================================================
--- pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
(original)
+++ pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
Mon May 13 16:51:21 2019
@@ -569,11 +569,11 @@ public class COSWriter implements ICOSVi
         String headerString;
         if (fdfDocument != null)
         {
-            headerString = "%FDF-"+ Float.toString(fdfDocument.getDocument().getVersion());
+            headerString = "%FDF-"+ Float.toString(doc.getVersion());
         }
         else
         {
-            headerString = "%PDF-"+ Float.toString(pdDocument.getDocument().getVersion());
+            headerString = "%PDF-"+ Float.toString(doc.getVersion());
         }
         getStandardOutput().write( headerString.getBytes(Charsets.ISO_8859_1) );
         



Mime
View raw message