× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Here's a method I came up with about 7 or 8 years ago to convert HTML pages
into JPEGs. Seems like it'd be a trivial step from that point to convert
the JPEG into a PDF using iText.

I have not tried this technique in probably 6 years or more and the I.E.
browser has changed quite a bit since then...however, it SHOULD still work
with maybe some minor modifications. It worked well then and I used it in a
production setting (slightly modified version) for awhile until that
particular project got derailed (for non-related reasons).

In this example, I had the java code running on the PC...but it doesn't have
to be. It's java. It can be ported to your IFS and ran from there just as
easily (I think). There wasn't anything special or unique in any of the
java code that I can remember that would not run from the iSeries.

Anyway, give it a shot. You'll have to put a little sweat equity into it
but heck, if you wanted a packaged solution that did everything you wanted
straight out of the box, it wouldn't be free. :-)

How to Convert HTML into a JPEG

http://www.itjungle.com/mpo/mpo062002-story01.html



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Nathan Andelin
Sent: Thursday, February 25, 2010 10:19 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] RPGCGI - Convert HTML page to PDF

I occasionally use the browser's print() function to convert HTML pages to
PDF files, but would like to be able to convert HTML to PDF files - storing
them on the IFS - from batch programs.

-Nathan.



----- Original Message ----
From: "TAllen@xxxxxxxxxxxx" <TAllen@xxxxxxxxxxxx>
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Sent: Thu, February 25, 2010 8:46:33 AM
Subject: Re: [WEB400] RPGCGI - Convert HTML page to PDF

I don't know that I've used for converting HTML to PDF but it works well
for creating a PDF. I see how that intermediate step of having the HTML
first to convert can be a bit tricky.
Does this need to be web-based? There are utilities to print document as a
PDF but that would introduce complexity.

Thanks,
Todd Allen
EDPS
Electronic Data Processing Services
tallen@xxxxxxxxxxxx




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.