Justin,
How about using an industry standard like HTML ... HTML can do colors and fonts, etc.?
Then just open the document in any browser, and print to .PDF ...? There are also any number of "libraries" of javascript, or for .NET, etc. to do this -- do a google search for "html to pdf" ...
HTH ...
Mark S. Waterbury
On Friday, March 8, 2019, 10:26:03 AM EST, Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:
I have text files that contain a DIY mark-up that I need to convert into PDF files. I'm afraid I'm going to have to build the PDF by hand, but I figured I'd throw this out there in the hope that someone can offer a better alternative.
For reference, here's a snippet of mark-up:
X7
FontBold = True
FontUnderline = True
Print
FontBold = False
FontUnderline = False
X.5
Print John Smith
X.5
FontBold = True
FontUnderline = True
Print Text data;
X4.5
Print More text data;
Horizontal spacing is controlled by the X values (in inches) and by spaces in the "Print" commands. Vertical spacing is thru CR/LF.
This will be part of a real-time process running in RPG, with a transaction rate of about 1000/week.
I appreciate whatever feedback you can provide. :)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.