pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1604305 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java
Date Sat, 21 Jun 2014 00:38:12 GMT
Author: jahewson
Date: Sat Jun 21 00:38:12 2014
New Revision: 1604305

URL: http://svn.apache.org/r1604305
Log:
PDFBOX-2094: add PrintRequestAttributeSet to silentPrint()

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java?rev=1604305&r1=1604304&r2=1604305&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PDFPrinter.java Sat Jun
21 00:38:12 2014
@@ -168,6 +168,16 @@ public class PDFPrinter
 
     /**
      * Prints the given document using the default printer without prompting the user.
+     * @param attributes application supplied attributes
+     * @throws PrinterException if the document cannot be printed
+     */
+    public boolean silentPrint(PrintRequestAttributeSet attributes) throws PrinterException
+    {
+        return print(printerJob, attributes, true);
+    }
+
+    /**
+     * Prints the given document using the default printer without prompting the user.
      * @param printerJob a printer job definition
      * @throws PrinterException if the document cannot be printed
      */



Mime
View raw message