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



Hi Art

If using an overlay, you have to use the AFP print driver. For page segments, you can use the AFPRSC keyword, it allows resizing and a couple settings different from PAGSEG.

I suppose one could use an image for printed forms - so a PAGSEG might work. OVERLAYs have been the usual thing, since you can specify them on the PRTF attributes.

Logos are usually not full page things, so PAGSEG and AFPRSC both do the job nicely. It's just the AFPRSC gets the image content directly from a TIFF or GIF or PDF or JPEG in the IFS, all on the IBM i.

So you pays your money and you makes your choice, right?

Regards
Vern

On 11/19/2021 4:43 PM, Art Tostaine, Jr. wrote:
Do you need to know how to create the overlay/logo with the AFP Driver any
everything?

On Fri, Nov 19, 2021 at 5:30 PM Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx>
wrote:

Greg

I completely understand. We were doing this with remote calls to a
Windows box to make the source for the PAGSEG. This was for signatures
coming from our field associates. Having it done on that server was
sometimes unreliable - not the process of "printing" the source, just it
being a Windows box. So the mandate was to get it all done on the system.

If people do this once in a while, OK, one-zees, two-zees, like for a
logo. So I recognize our situation is different - we do have several
graphic objects that were created with the print drivers.

But for our purposes, AFPRSC saved our bacon - there is no way to create
PAGSEGs directly from image files - well, probably is, a friend gave me
some code for doing just that with the MO-DCA stuff from TIFFs, IIRC,
but it didn't work well enough, or I didn't understand it enough.

Different folks, different strokes. AFPRSC is a great improvement, IMO,
it doesn't replace OVERLAYs, so it's not a complete boon.

Regards
Vern

On 11/19/2021 3:21 PM, Greg Wilburn wrote:
Vern,
We've been doing this for 20 years - it works great for what we do
because you can see the logo on the page and resize as necessary. The
pageseg objects are really small and do not slow printing at all.
Greg

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Vern Hamberg
Sent: Friday, November 19, 2021 11:40 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Re: How to print a logo in a Spool file

Hi Greg

Have you looked at the AFPRSC PRTF keyword? It effectively replaces
PAGSEG, so you don't need anything off the system. You point it at an
IFS image file and even PDF - ba-da-boom. I don't know if it supports
PNGs yet - at least with Host Print Transform. It does work with TIFFs
and GIFs, so that is good enough for us.

It's been around since v54r, and is supported in Host Print Transform
since I don't remember when.

You might use FTP to upload the image file.

Cheers
Vern

On 11/19/2021 10:10 AM, Greg Wilburn wrote:
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
Binary mode
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.

HTH
Greg

-----Original Message-----
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
configured.

Thank you,

Gary Kuznitz
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



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.