Just to poke fun, does the $$$$ represent your perceived cost of your product and if so, is the $ scale a $ - $$$$$ or $ - $$$$$$$$$$ scale? ;-)
Coy Krill
Core Processing Administrator/Analyst
Washington Trust Bank
-----Original Message-----
From: JAVA400-L [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Richard Schoen
Sent: 2017 December 20 10:12
To: java400-l@xxxxxxxxxxxx
Subject: RE: Print PDF in duplex mode
Importance: Low
Depending on the type of printer you're going to, the print driver controls the duplexing not the spool file attributes.
Is the stream a *USERASCII stream such as PCL or Postscript ?
You could possibly look into using Ghostscript or something commercial.
For the latter, our iForms Document Assembly component can be used to print PDFs from your application via CL command or REST API call.
If you want a technical demo let me know, otherwise you can reach out to the sales team for $$$$ info.
Regards,
Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com
----------------------------------------------------------------------
message: 1
date: Tue, 19 Dec 2017 19:14:07 +0000 (GMT)
from: Max Bobzien <maxbobzien@xxxxxxx>
subject: Print PDF in duplex mode
Hi
I?have a PDF document that is stored in the iSeries' IFS folder and want to print it using Java that is running in the iSeries' JVM. Just printing the PDF and sending it to the outqueue works perfectly fine but now I want to to print it in Duplex mode using
---------------------------------------------------------------------------------------------------------------------------------------
String outqueueName = "/QSYS.LIB/QUSRSYS.LIB/" + outqueue + ".OUTQ"; OutputQueue outputQueue = new OutputQueue(as400, outqueueName); parms.setParameter(PrintObject.ATTR_OUTPUT_QUEUE, outputQueue.getPath()); parms.setParameter(PrintObject.ATTR_HOLD, hold ? "*YES" : "*NO"); parms.setParameter(PrintObject.ATTR_SAVE, save ? "*YES" : "*NO"); parms.setParameter(PrintObject.ATTR_SPOOLFILE, ""); parms.setParameter(PrintObject.ATTR_DUPLEX, "*YES");
SpooledFileOutputStream outputStream = new SpooledFileOutputStream(as400, parms, null, null);
---------------------------------------------------------------------------------------------------------------------------------------
but it still just prints single page mode.
Does anyone have an idea what I am missing here?
Max
--
"The best laid schemes o' mice an' men gang aft aglay."
Robert Burns
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/java400-l.
---------------------------------------------------------------------
This electronic mail message and any attachments may contain confidential or privileged information and is intended for use solely by the above-referenced recipient. Any review, copying, printing, disclosure, distribution, or other use by any other person or entity is strictly prohibited under applicable law. If you are not the named recipient, or believe you have received this message in error, please immediately notify the sender by replying to this message and delete the copy you received
---------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.