× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Rune,
printing pdf's in a batch job is kind of tricky. There is, as far as I know, 
not a print service in Java that recognize a pdf file. 
But I have used 2 different ways of printing pdf's in a batch job:
1. Convert the pdf file to Postscript and use the java print service to print 
the Ps file. 
I use PdfToPs.exe (free) to convert from PDF to Postscript.
2. Create an iSeries printerfile: CRTPRTF FILE(TEST) DEVTYPE(*USERASCII) 
OUTQ(TEST)
Use ftp (in a java og rpg program) and send the pdf file to the iSeries printer 
file. 
The pdf file will be placed in the iSeries outq and printed if the outq is 
connected to a network printer.
Rune, just call me if you want more details (seems like we both are norwegians).
Regards,
Magne
phone 908 97 168




>-----Original Message-----
>From: Rune Kaus [mailto:rune@xxxxxxx]
>Sent: Wednesday, May 3, 2006 07:45 PM
>To: 'Java Programming on and around the iSeries / AS400'
>Subject: Printing from java
>
>Hi list.
>
>I'm sure some of you have had this challenge before and solved it, so 
>I'm bravely asking.
>
>Printing (rtf's and pdf's) from a java web-application running under WAS 
>5.1 on an i5.
>
>The story is that I'm generating an rtf or a pdf document based on some 
>user activity on the web. This document is processed in batch (the user 
>will not see it until it is printed) and should be printed on a 
>predefined (for the user) network (not i5) printer.
>
>Any hints or suggestions.
>
>Rgds Rune
>-- 
>This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
>mailing list
>To post a message email: JAVA400-L@xxxxxxxxxxxx
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/mailman/listinfo/java400-l
>or email: JAVA400-L-request@xxxxxxxxxxxx
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/java400-l.
>
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.