View previous topic :: View next topic
|
Author |
Message |
pavankumarhassaji
New User
Joined: 20 Aug 2007 Posts: 11 Location: Canada
|
|
|
|
Hi,
I would like to know is there any utility to convert any flat file to PDF format. So that it can be mailed as read only.
In the forum i have seen that there is a utility VPSPDF to convert AFP to PDF. Similarly is there any utility to convert ordinary flat file to PDF. If exists please explain me how to use it. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
There's TXT2PDF.
And, if you already have SAS, the SAS Output Descriptor System (ODS) produces PDF output. |
|
Back to top |
|
|
pavankumarhassaji
New User
Joined: 20 Aug 2007 Posts: 11 Location: Canada
|
|
|
|
Could you please let me know how to use TXT2PDF. If you could give a sample code i will be pleased. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
PDF does not make a file read only. If the recipient has Adobe Acrobat, not just the reader, or some other tool then they can edit a PDF like it was a text file. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
Something I already was aware of, but pointed out to me in a private message, not a publicly for some reason...
PDFs can be protected to disallow things like this. Search google for TXT2PDF z/OS and you can find the manuals and see that there is a protection panel..
However, someone could write a program to edit PDFs to the PDF spec disregarding the protection bits of the format. Someone who is really determined to edit the contents of the file will be able to regardless of what kind of protection you apply at the PDF level. They could take screenshots of the PDF then take it into a graphics editor laying other text over the part they want to change. Print the doucment out and scan it back in using some OCR software then editing it as an unprotected document, etc etc...
I wasn't implying that PDF can't be protected, just that the OP had made it sound like PDF automatically made the file read only. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You know, all of the details on how to use this freeware utility are included in the distribution of the utility. Anyway, here's a sample job:
Code: |
//STEPXXXX EXEC PGM=IKJEFT01,
// PARM='%TXT2PDF ORIENT=PORTRAIT,CC=YES'
//SYSPROC DD DISP=SHR,DSN=SUPERK.REXX
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
//SYSUT1 DD *
1REPORT DATA ...
/*
//SYSUT2 DD DSN=SUPERK.PDF,
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,RECFM=VB,LRECL=256,DSORG=PS,
// SPACE=(TRK,(1,1),RLSE)
//FONTINFO DD *
Courier 10 11.5 0
/*
//TRCFONTS DD *
0 Courier-Bold 10 11.5 0
1 Courier 10 11.5 0
/*
//IMAGE DD DISP=SHR,DSN=SUPERK.JPG
//IMAGECM DD *
32 0 0 32 25 756
/*
//BACKTEXT DD *
100 200 60 Draft
/*
//TEXTTM DD *
1 0 0 1 25 752
/*
//*
|
|
|
Back to top |
|
|
pavankumarhassaji
New User
Joined: 20 Aug 2007 Posts: 11 Location: Canada
|
|
|
|
Hi Superk,
Thank you very much for the replay. The code code you sent was very useful.
I have found out some user guide for using TXT2PDF utility. I am posting the URL for that manual so that others may get benefited.
URL is : Use [URL] BBCode for External Links
Thanks,
Hassaji. |
|
Back to top |
|
|
pavankumarhassaji
New User
Joined: 20 Aug 2007 Posts: 11 Location: Canada
|
|
|
|
Hi,
I tried to run the job but it was unable to find TXT2PDF routine.
Does TXT2PDF come with Mainframe installation or shall we need to get it explicitly. Could you please let me know, from where and how can i get the utility?
Thanks,
Hassaji. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
PDF conversion utilities come in many flavors, for many environments,
but ( bolded to point out it' s importance )
with different licensing options...
usually freeware for ==>personal use<==
Anyway before installing any third party products in a "COMMERCIAL" environment
it would be wise to ask about the practices of Your shop for such issues
there are quite often strong limitations on the use of freeware things
both from the product owner point of view,
and also from the point of view of the company using it
freeware comes with lots of legalese about responibilities liabilities and so on...
which means that if You are having troubles using it ...
YOU ARE ON YOUR OWN
Thats why I ALWAYS discourage the use of such products in a production
environment
unless there are people capable of takig care of all, repeat ALL, the problems
|
|
Back to top |
|
|
|