pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1576086 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java
Date Mon, 10 Mar 2014 21:05:36 GMT
Author: jahewson
Date: Mon Mar 10 21:05:36 2014
New Revision: 1576086

URL: http://svn.apache.org/r1576086
Log:
PDFBOX-1963: add Dimension node to parent at the point it is created

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java?rev=1576086&r1=1576085&r2=1576086&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/ImageIOUtil.java Mon Mar 10 21:05:36
2014
@@ -181,6 +181,7 @@ public class ImageIOUtil
     {
         IIOMetadataNode root = new IIOMetadataNode("javax_imageio_1.0");
         Element dimension = new IIOMetadataNode("Dimension");
+        root.appendChild(dimension);
 
         Element h = new IIOMetadataNode("HorizontalPixelSize");
         h.setAttribute("value", Double.toString(dpi / 25.4));
@@ -189,8 +190,6 @@ public class ImageIOUtil
         Element v = new IIOMetadataNode("VerticalPixelSize");
         v.setAttribute("value", Double.toString(dpi / 25.4));
         dimension.appendChild(v);
-        
-        root.appendChild(dimension);
 
         try
         {



Mime
View raw message