You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2017/10/27 17:30:03 UTC

svn commit: r1813553 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/JPEGFactory.java

Author: tilman
Date: Fri Oct 27 17:30:03 2017
New Revision: 1813553

URL: http://svn.apache.org/viewvc?rev=1813553&view=rev
Log:
PDFBOX-2852: clarify javadoc

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/JPEGFactory.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/JPEGFactory.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/JPEGFactory.java?rev=1813553&r1=1813552&r2=1813553&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/JPEGFactory.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/JPEGFactory.java Fri Oct 27 17:30:03 2017
@@ -191,7 +191,7 @@ public final class JPEGFactory
      * quality by calling {@link #createFromStream(org.apache.pdfbox.pdmodel.PDDocument,
      * java.io.InputStream) createFromStream()} instead.
      * 
-     * The image will be created at 72 DPI.
+     * The image will be created with a dpi value of 72 to be stored in metadata.
      * @param document the document where the image will be created
      * @param image the BufferedImage to embed
      * @param quality the desired JPEG compression quality
@@ -205,7 +205,7 @@ public final class JPEGFactory
     }
 
     /**
-     * Creates a new JPEG Image XObject from a BufferedImage, a given quality and DPI.
+     * Creates a new JPEG Image XObject from a BufferedImage, a given quality and dpi metadata.
      * <p>
      * Do not read a JPEG image from a stream/file and call this method; you'll get more speed and
      * quality by calling {@link #createFromStream(org.apache.pdfbox.pdmodel.PDDocument,
@@ -214,7 +214,8 @@ public final class JPEGFactory
      * @param document the document where the image will be created
      * @param image the BufferedImage to embed
      * @param quality the desired JPEG compression quality
-     * @param dpi the desired DPI (resolution) of the JPEG
+     * @param dpi the desired dpi (resolution) value of the JPEG to be stored in metadata. This
+     * value has no influence on image content or size.
      * @return a new Image XObject
      * @throws IOException if the JPEG data cannot be written
      */