IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PDF conversion utility?


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pavankumarhassaji

New User


Joined: 20 Aug 2007
Posts: 11
Location: Canada

PostPosted: Tue Dec 18, 2007 5:15 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Dec 18, 2007 5:19 pm
Reply with quote

There's TXT2PDF.

And, if you already have SAS, the SAS Output Descriptor System (ODS) produces PDF output.
Back to top
View user's profile Send private message
pavankumarhassaji

New User


Joined: 20 Aug 2007
Posts: 11
Location: Canada

PostPosted: Tue Dec 18, 2007 5:58 pm
Reply with quote

Could you please let me know how to use TXT2PDF. If you could give a sample code i will be pleased.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Tue Dec 18, 2007 6:05 pm
Reply with quote

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
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Tue Dec 18, 2007 7:07 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Dec 18, 2007 7:08 pm
Reply with quote

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
View user's profile Send private message
pavankumarhassaji

New User


Joined: 20 Aug 2007
Posts: 11
Location: Canada

PostPosted: Wed Dec 19, 2007 4:05 pm
Reply with quote

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
View user's profile Send private message
pavankumarhassaji

New User


Joined: 20 Aug 2007
Posts: 11
Location: Canada

PostPosted: Wed Dec 19, 2007 4:59 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Dec 19, 2007 5:17 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts REASON 00D70014 in load utility DB2 6
No new posts file manager is doing string conversion IBM Tools 3
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
Search our Forums:

Back to Top