Printing from IBM i with Images

Any IBM i topic that does not fit in another forum
Post Reply
bbunney
Posts: 45
Joined: Wed Jul 06, 2022 7:52 pm

Printing from IBM i with Images

Post by bbunney »

I need to be able to print a page of information from IBM i that includes an image of a customer's signature. Do I need third party software to do that? How do IBM i shops do that? We are currently on the 7.2 OS but we are slowly upgrading to 7.4. Thanks.
vhamberg
Posts: 13
Joined: Thu Jul 29, 2021 1:33 am

Re: Printing from IBM i with Images

Post by vhamberg »

One way of printing images is to use the AFPRSC keyword in the PRTF - your PRTF has to be *AFPDS type. You should be able to find documentation and examples for it pretty easily.
bbunney
Posts: 45
Joined: Wed Jul 06, 2022 7:52 pm

Re: Printing from IBM i with Images

Post by bbunney »

Thank you for the information. I will definitely look into it.
juan11de14
Posts: 7
Joined: Mon May 08, 2023 3:50 pm

Re: Printing from IBM i with Images

Post by juan11de14 »

The first thing you should do is download an AFP printer driver and print a page with the image of the signature you want, take it to the machine and create an *OVL.
https://www.ibm.com/support/pages/creat ... er-drivers

You can then merge this *OVL (image) with the print output with a simple OVRPRTF.

OVRPRTF FILE(&File) TOFILE(&ToFile) +
DEVTYPE(*AFPDS) PAGESIZE(27.94 21.59 *UOM)
UOM(*CM) FRONTOVL(&OVL) TOSTMF(&FILPDF)
WSCST(*PDF)

The previous one is the simplest way, there are more complex ways but it already requires more knowledge in AFP.
Post Reply