× 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.



Does your printer understand PDF files? Most newer ones do...

In that case it's easy.
1) Retrieve the PDF
2) Send it to the printer

For step 1), you can use Scott's HTTPAPI..
http://www.scottklement.com/httpapi/

For step 2)
If your print server includes an FTP service, you could use FTP (via
Scott's FTPAPI)
http://www.scottklement.com/ftpapi/
Or you could spool it to a *USERASCII spool file
http://iprodeveloper.com/rpg-programming/how-do-i-print-pdf-file-ifs
http://www.scottklement.com/PrtStmf.zip

If your printer doesn't understand PDF, then you'd need to convert the PDF
to PCL and send the PCL to the printer using FTP or the spool subsystem.
Ghostscript is probably the tool of choice. Here's an old thread about
using it...
http://www.scottklement.com/archives/ftpapi/200903/msg00083.html

Charles

On Tue, Nov 18, 2014 at 2:55 PM, Jeffrey Day <Jeff.Day@xxxxxxxx> wrote:

Hey good afternoon everyone!

Can anybody give me a step up here? I've been trying to get my head
around how I can retrieve a PDF from a URL, and print it via an IBM i outq
with RPG or CL.

A picture is worth a thousand words, so if someone has some sample code,
I'd greatly appreciate it if you could share it.

Thanks,
Jeff



If the reader of this email is not the intended recipient(s), please be
advised that any dissemination, distribution or copying of this information
is strictly prohibited. Johnson Matthey PLC has its main place of business
at 5th Floor, 25 Farringdon Street, London (020 7269 8400).

Johnson Matthey Public Limited Company
Registered Office: 5th Floor, 25 Farringdon Street, London EC4A 4AB
Registered in England No 33774

Whilst Johnson Matthey aims to keep its network free from viruses you
should note that we are unable to scan certain emails, particularly if any
part is encrypted or password-protected, and accordingly you are strongly
advised to check this email and any attachments for viruses. The company
shall NOT ACCEPT any liability with regard to computer viruses transferred
by way of email.

Please note that your communication may be monitored in accordance with
Johnson Matthey internal policy documentation.

This message has been scanned for viruses by MailControl -
www.mailcontrol.com
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



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.