[Info-vax] Txt2PDF Utility for long fils
Joukj
joukj at hrem.nano.tudelft.nl
Fri Nov 11 03:48:49 EST 2022
Craig A. Berry wrote:
> On 11/10/22 6:53 AM, Joukj wrote:
>> Craig A. Berry wrote:
>>>
>>> On 11/9/22 11:02 AM, Shael Richmond wrote:
>>>> Is there a version of txt2pdf that can convert files longer that 132
>>>> characters? The one I have only supports 80/132 characters. Trying
>>>> to send a PDF report via e-mail that is around 200 characters.
>>> If what you have came from here;
>>>
>>> http://www.eprg.org/pdfcorner/text2pdf/text2pdf.c
>>>
>>> you could try changing some things like:
>>>
>>> int cols = 80; /* max chars per output line */
>>>
>>> to a different value and recompiling.
>>
>> This changes the line length of the resulting PDF-file. I think the
>> question is about the input TEXT-file. I do not think that is a
>> problem (I tested it with a line of more than 300 characters) with the
>> version 1.2.1 which Bill Pedersen addapted for OpenVMS. You can
>> download the source code for this version via:
>> http://nchrem.tnw.tudelft.nl/openvms/software2.html#TEXT2PDF
>
> You're right. It does say output line length and I wasn't paying
> attention. In which case this is probably not what the OP is using, so
> he should try it.
>
> I didn't know about Bill's version. I dredged up my own variant of this
> one, attached here, that addresses some other problems with the original
> version:
>
> - The number of pages and "locations" is limited only by the amount of
> memory you have instead of blowing up when you hit the limit.
>
> - Added command-line redirection.
>
> - Added command-line arguments to specify top and left margins.
>
> I think I did use this for a while but at some point went back to the
> other program Hoff posted up-thread:
>
> https://www.digiater.nl/openvms/decus/vmslt02b/vu/txt2pdf-c.txt
>
> which was in heavy use in production until a year or two ago.
>
>
>
>
>
Thanks.I merged your version into Bill's one. It is now as version 1.3
on my webpage:
http://nchrem.tnw.tudelft.nl/openvms/software2.html#TEXT2PDF
Jouk
More information about the Info-vax
mailing list