
Text-To-PDF
If you have any questions about the content of this page, please contact Requests for clarification.
Vendor | Documentation |
Freeware | TXT2PDF User Reference Guide |
TXT2PDF (Text to Portable Document Format (PDF)) is z/OS freeware that converts a text file to a PDF document.
Some of the features include:
- Several Font type and size options
- Several background options
- Control of both Fore and Background colors
- Viewer Control
- Page Specifications
It includes an ISPF dialog that allows:
- The creation of the TXT2PDF options
- Batch or Foreground processing
- Modeling for batch JCL
- Support for FTP and E-Mail of the generated report
Below is sample JCL that will convert a file to a PDF documents using default options then FTP and email the generated report.
Your-job-card
/*JOBPARM C=99999,L=99999
//TXT2PDF EXEC PGM=IKJEFT1B,DYNAMNBR=50,
// PARM=(''),
// COND=(0,NE)
//*
//SYSEXEC DD DISP=SHR,DSN=NWR.PROD.TXT2PDF.EXEC
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
%txt2pdf BROWSE Y IN 'your.input.file' +
OUT 'your.output.pdf.report'
/*
//************************************************
//* Secure FTP of the generated PDF report *
//************************************************
//*
//FTPSTEP EXEC PGM=FTP,PARM='ftp-server-name-or-ip (EXIT'
//SYSPRINT DD SYSOUT=*
//SYSFTPD DD DSN=NWR.TCPIP.TCPDATA(FTPCDATA),DISP=SHR
//INPUT DD *
server-user-id server-password
binary
put 'your.output.pdf.report' report.pdf
quit
/*
//************************************************
//* E-Mail generated PDF report as an attachment *
//************************************************
//*
//MAILSTEP EXEC PGM=IKJEFT1B,DYNAMNBR=50,
// PARM=(''),
// COND=(0,NE)
//*
//SYSEXEC DD DISP=SHR,DSN=NWR.PROD.XMITIP.EXEC
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
xmitip email-name@email.server +
From user-id@nwr +
Subject 'E-Mail Subject' +
File 'your.output.pdf.report' +
Filename report.pdf +
Format pdf +
MSGT 'Short E-Mail Message'
/*