Create a PF on the IBM i - we call ours PAGESEG
Field Type Length Length Position Usage Heading
PAGESEG CHAR 8201 8201 1 Both
Coded Character Set Identifier . . . . . : 65535
(no idea why I made it that length)
Install the IBM AFP Print Driver on your PC
Load the logo/image into a Word document (or similar)
- we usually remove the margins
- size it as you would like to see it on the page
Print to file using the IBM AFP Driver with output type = Page Segment
File example: MyLogo.mbr
Then use FTP to upload it to the PAGESEG file
quote site namefmt 0
put c:\logos\Mylogo.mbr /qsys.lib/asthhobj.lib/pageseg.file/mylogo.mbr
On the IBM command line:
CRTPAGSEG PAGSEG(yourlib/mylogo) FILE(ASTHHOBJ/PAGESEG) MBR(*PAGSEG) TEXT('My New Logo')
Now the image is on the system.
In the DDS (which has to be *AFPDS) - add logo below last record format
A* COMPANY LOGOS (IN THE FORM OF LOGOCOM#)
A PAGSEG(&WRLOGO 0.25 0.25)
In the above example, the logo name (page segment name) is a variable called WRLOGO. You could easily just do:
A PAGSEG(MYLOGO 0.25 0.25)
The numbers after represent the "offset" over and down - the non-printable area of a laserjet printer.
BTW - this works with any image - even one that is the entire page.
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Gary Kuznitz
Sent: Sunday, November 14, 2021 4:42 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: How to print a logo in a Spool file
I have a logo on a PC.
Can someone walk me through the steps required to use
that logo in a .PRTF file with DDS?
I'm running v7r4 trying to print to an HP printer with HPT
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2022 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
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.