I don't understand the mark-up terminology, but, I will say that I used iText 5 (what used to be open-source, but appears to have gone to pay to play for more recent versions) to add lines, barcodes, and text to an existing PDF document. This is a Java tool that can run from RPG using the JNI interface. Using RPG and this tool, the process marks up a couple thousand pages a day, and is also used to separate a large file into smaller files while also extracting some text from various areas on the pages to generate a catalog of data referenced to the extracted pages.
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Justin Taylor
Sent: Friday, March 8, 2019 10:26 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: DIY mark-up to PDF
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. :)
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.