Have you considered changing the template from RTF to PDF and then changing the variables within that? I haven't done it in production code but was able to get it to work pretty easily some time back.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Sep 27, 2017, at 10:55 AM, Philip Kolomeysky <PKolomeysky@xxxxxxxxx> wrote:



I would like to add more details.
I wrote a process in RPG/CL combination which reads RTF template looking
for reserved words and replacing them with the data. Then it's saved on
IFS as RTF file. I need to convert this RTF file on the fly to PDF from
another RPG/CL process and send it as an attachment.

-Phil

Philip Kolomeysky | IT Consultant
t: 203-899-6932 || www.tauck.com


message: 4
date: Wed, 27 Sep 2017 10:15:55 -0400
from: glenn-ericson <glenn-ericson@xxxxxxx>
subject: RE: Convert RTF to PDF

Like save as then instead of .RTF ?select file extension .PDF


Sent from my Sprint Samsung Galaxy S7.
-------- Original message --------From: Richard Schoen
<Richard.Schoen@xxxxxxxxxxxxxxx> Date: 9/27/17 9:51 AM (GMT-05:00) To:
midrange-l@xxxxxxxxxxxx Subject: RE: Convert RTF to PDF Nothing free
that I know of, unless you want to try and code something yourself
around iText or other APIs. Might also be some PHP stuff out there.

If you're open to commercial options our iForms software might work for
what you want. It allows you to use RTF formatted documents as input and
you can then output as PDF and other formats.

If you want to email me a sample RTF file I would be happy to send a
sample to convert it and send you the PDF sample.

Another option might be to automate MS Word to do this for you. We have
software that can help with that as well.

Regards,


Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com

------------------------------

message: 3
date: Tue, 26 Sep 2017 17:08:45 -0400
from: "Philip Kolomeysky" <PKolomeysky@xxxxxxxxx>
subject: Convert RTF to PDF

Has anyone got or knows of a command or utility (including

source) on ISeries (AS400) that would convert a Microsoft RTF file
located on IFS to PDF file?



Regards,

-Phil





Philip Kolomeysky | IT Consultant
t: 203-899-6932 || www.tauck.com <http://www.tauck.com/>


---------------------------------------------------------------

PRIVACY NOTICE

At Tauck, we take security and privacy very seriously and are
firmly committed to protecting the personal information of our
guests and employees as well as company confidential
information. This e-mail message, including any attachments,
may contain information that is privileged, confidential and
exempt from disclosure under applicable law and is intended
only for the addressed recipient and may not be forwarded
without the express consent of the sender. If you are not the
intended recipient of this e-mail, kindly delete it and let us
know that you received it in error.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
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: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.