Operating System - OpenVMS
1836590 Members
2987 Online
110102 Solutions
New Discussion

txt2pdf for high width files

 
Wim Van den Wyngaert
Honored Contributor

txt2pdf for high width files

I've the program txt2pdf but that truncates the file after 132 char (+-).

I need a solution for files with line lengths of 300 or more. In the best case, it should size the page based upon the maximum line length.

I've tried convert/doc + ghostscript but don't get it right (line is split after about 145 char).

Wim
Wim
5 REPLIES 5
Wim Van den Wyngaert
Honored Contributor

Re: txt2pdf for high width files

If I increase the width specified in the program (and recomp + link) it works fine for bigger files. But how to get a page size that matches the file contents ?

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: txt2pdf for high width files

I changed the program myself. See enclosure.

1) I modified the page size to Euro norm A4

2) a 3rd param is now possible =xxx where xxx is the record length (# char).Default stays A4.

The program will adjust the page size to something suitable. E.g. file with length 280 come out fine (but small print). The #char I get by reading the file in dcl and taking the longest $len of the records. This because we have dirty file usage.

Usage : mail reports to users in pdf format.

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: txt2pdf for high width files

I also noted that such genrated files must be mailed in ASCII mode.

Wim
Wim
B Claremont
Frequent Advisor

Re: txt2pdf for high width files

I really like authors that answer their own questions AND post the results. Thanks!
www.MigrationSpecialties.com
Wim Van den Wyngaert
Honored Contributor

Re: txt2pdf for high width files

B.

Welcome to this forum.
Now you've got your first point.
I wanted to save time but had to do the C adjustment myself (I'm a cobol guy).

Wim
Wim