PdfPrinter

page d'accueil
Boite à outils

Cette page a été mise à jour le 20 janvier 2009
Contact

Welcome page
Tools box

Versionning 

How to create a printer that produce a PDF file ?

To be tested !

To use the PDF transform on the iSeries, you require only Infoprint Server for iSeries (5722-IP1). 

Install Infoprint Server (library QIPS)

 

a converter


CRTPSFCFG PSFCFG(JPL/JPL)
PDFGEN(*STMF)
PDFDEVTYPE(*IP40300)
PDFPPRDWR1(*A4)
PDFPPRDWR2(*A4)
PDFDIR('/jpl/pdf')
TEXT('Convertisseur Spoule en PDF')
+?
RLSTMR(*SEC15)
PDFGEN(*STMF)

a writer


CRTDEVPRT DEVD(PRTJPL)
DEVCLS(*LAN)
TYPE(*IPDS)
MODEL(0)
LANATTACH(*IP)
AFP(*YES)
PORT(11002)
FONT(11)
RMTLOCNAME('127.0.0.1')
USRDFNOBJ(JPL/JPL *PSFCFG)
TEXT('Convertisseur Spoule en PDF')
+?
FORMFEED(*AUTOCUT)
SEPDRAWER(*FILE)
PRTERRMSG(*INQ)
MSGQ(*LIBL/QSYSOPR)
ACTTMR(*NOMAX)
IMGCFG(*NONE)
MAXPNDRQS(6)
PRTCVT(*YES)
FORMDF(*LIBL/F1C10110)
CHRID(*SYSVAL)
DEPLOCNAME(*NONE)')

an exit program


ADDEXITPGM EXITPNT(QIBM_QPQ_TRANSFORM)
FORMAT(XPDF0100)
PGMNBR(9974)
PGM(QIPS/QIPSINIT)
THDSAFE(*NO)
MLTTHDACN(*MSG)
PGMDTA(*JOB *CALC 'IPDS PDF') 

a runner job


STRPRTWTR DEV(PRTJPL) FORMTYPE(*ALL *NOMSG)

As soon as I have InfoPrint, I try

This tool is a free source text; you can redistribute it and/or modify it as much as you need. Just add as comment in the code a reference to this site : http://jplamontre.free.fr/jpltools.htm ... and send me an email Contact with "jpltools" in the subject (it's for my antispam rules). I will be happy to know what you have done with the jpltools. This tool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY :

THIS TOOLBOX IS PROVIDED ''AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PROVIDER OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS TOOLBOX, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.