× 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.



Andres,

We need to get a couple of things straightened out.

A spool file could be *AFPDS or *ASCII.  If the spool file is *ASCII then one 
possibility is that the spool data is a PDF data stream.

So you can't have a PDF in a *AFPDS spool file.

You can however, use Infoprint server to create a PDF from an *AFPDS spool 
file.  The PDF data stream can be placed in either the IFS or a *ASCII spool 
file.

So the question is what are you actually sending to the printer?  (When you 
display the spool file attributes using WRKSPLFA, what is listed as the 
"Printer Device type?")

Now using Infoprint Server, you can set up a virtual printer, lets call it 
PDFCREATE, that will automatically transform *AFPDS to PDF.  

To get the PDF sent to a printer, you need to specify a RMTOUTQ on the PSFCFG 
object.  Here's the section from the Printing Redbook:

Printers from IBM that are PDF-capable include the Infoprint 21 and Infoprint 
70.
If you have a PDF-capable printer and you access it from the iSeries, you can
send the PDF files to the printer, as well as store them in a file system. To 
do this,
change the PSF configuration object parameters as follows (or, more likely, use 
a
dedicated PSF configuration object for this purpose):

CRTPSFCFG PSFCFG(QGPL/PDFCREATE)
PDFGEN(*SPLF)
PDFDEVTYPE(*IP40300)
PDFMULT(*NO)
PDFSENDER(*NONE)
PDFOUTQ(QUSRSYS/PDFPRINT)
TEXT('PSF configuration to print pdf')

It is important that the target printer is PDF-capable. Otherwise, you may 
receive
garbage output. Note that most PDF-enabled printers require specific hardware
features to print PDF files. If a PDF is sent to an Infoprint 21 printer 
without a hard
drive, it will fail. With the 1000 series and the ImageQuick feature, we used 
the
queue name TEXT, which proved to be successful.
You need to create the remote queue specified in the PSF configuration object.
The LR/LPD used with the Remote Output Queue is written to the disk on the
hard drive and then processed. The data stream is opened. It is determined that 
it
is a PDF file and processed accordingly.


Note: You'll end up with two different output queues
1) PDFCREATE - the outq for the Infoprint Server virtual printer for PDF 
transforms
2) PDFPRINT - the outq used to send the *ASCII spool file to the printer via 
LPD/LPR.

You'll the to create the PDFPRINT outq manually as a RMTOUTQ.

I would think that it might be possible to use IPP/SNMP protocols instead of 
LPD/LPR.  But let's get this working as shown in the manual before trying that! 
<grin>


HTH,


Charles Wilt
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121
 

> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx
> [mailto:java400-l-bounces@xxxxxxxxxxxx]On Behalf Of ANDRES COLODRERO
> LEHMANN
> Sent: Wednesday, June 01, 2005 10:51 AM
> To: java400-l@xxxxxxxxxxxx
> Subject: RE: Printing PDF from AS400 . . . ?PDF spool data?
> 
> 
> Thanks, Wilt but i have a problem, the spool file is *AFPDS (contains 
> overlay) and DEVTYPE(*USERASCII) not allowed with externally 
> described 
> file. 
> 
> other way? 
> 
> I think in  Java batch program to print PDF files in IFS, but 
>  could to do 
> it with Infoprint Server and PDF Spool Data :-)
>  
> 
> 
>  Andrés Colodrero Lehmann 
> Dpto. Atención del Cliente. 
> 
> c/ Fomento, 14 - P.I.S.A. 41927-Mairena Del Aljarafe (Sevilla) Tel: 
> 955128200 Fax: 955601250
> | www.asersa.com | Conozca Quivir | Descargar el último ejemplar de 
> asers@.com (.pdf) | Tienda virtual | 
> 
> Este correo está dirigido exclusivamente a su destinatario y 
> su contenido 
> puede ser confidencial estando su divulgación prohibida en 
> virtud de la 
> legislación vigente.
> Si ha recibido este mensaje por error, comuníquelo por favor 
> al remitente 
> por esta misma vía y proceda a su eliminación. Gracias.
> 
> 


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.