|
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,because you can see the logo on the page and resize as necessary. The
We've been doing this for 20 years - it works great for what we do
pageseg objects are really small and do not slow printing at all.
GregVern Hamberg
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Sent: Friday, November 19, 2021 11:40 AMTEXT('My New Logo')
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)
called WRLOGO. You could easily just do: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
non-printable area of a laserjet printer.A PAGSEG(MYLOGO 0.25 0.25)
The numbers after represent the "offset" over and down - the
Gary Kuznitz
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
midrange-l@xxxxxxxxxxxxxxxxxx>Sent: Sunday, November 14, 2021 4:42 PM
To: Midrange Systems Technical Discussion <
--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 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.