pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1557554 - in /pdfbox/branches/1.8: ./ pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
Date Sun, 12 Jan 2014 16:28:50 GMT
Author: lehmi
Date: Sun Jan 12 16:28:50 2014
New Revision: 1557554

URL: http://svn.apache.org/r1557554
Log:
write COSDictionary direct if set to direct

Modified:
    pdfbox/branches/1.8/   (props changed)
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java

Propchange: pdfbox/branches/1.8/
------------------------------------------------------------------------------
  Merged /pdfbox/trunk:r1557339,1557553

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java?rev=1557554&r1=1557553&r2=1557554&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java Sun
Jan 12 16:28:50 2014
@@ -918,8 +918,15 @@ public class COSWriter implements ICOSVi
                 COSBase current = i.next();
                 if( current instanceof COSDictionary )
                 {
-                    addObjectToWrite( current );
-                    writeReference( current );
+                	if (current.isDirect())
+                	{
+                		visitFromDictionary((COSDictionary)current);
+                	}
+                	else
+                	{
+                		addObjectToWrite( current );
+                		writeReference( current );
+                	}
                 }
                 else if( current instanceof COSObject )
                 {



Mime
View raw message