|
Please let me know if you can get your printers to print PDF direct. That would be the easiest solution for me.
www.pilotpen.us
Marianne Hatcher - Senior Systems Analyst
Office: (904) 645-9999 ext.1262
Pilot Corporation of America
3855 Regent Blvd, Jacksonville, Florida 32224 United States
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg
Sent: Sunday, August 14, 2016 8:25 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: GIF or JPEG printing still struggling (PDF and PNG printing with AFPRSC)
Congrats! Good to hear - that sounds like the same route I've used, starting with PNG, ending with PDF - we have some printers that can't do PDF direct, so I'm working on that.
Vern
On 8/14/2016 4:34 PM, Jack Tucky wrote:
I worked all day at it today. It finally works. I made so many test
changes and resets I can't even think what fixed it.
Here is basically what I'm doing:
For two labels and regular old 10CPI at bottom of page,
1. Get two different ZPL ASCII text to IFS 2. Use Bradley Stone's
GETURI to convert them both to PNG.
3. Use ImageMagick to convert PNG to GIF 4. OVRPRTF to WSCST(*PDF) and
STMF name 5. Print to same printer file twice using AFPRSC(&IMGFILE 22
(*MAPOPT *ST)) 6. Same print file has DDS, print that, close printer
file 6. OVRPRTF QSYSPRT to *userascii 7. Use QImgCvtImg to convert PDF
back to spool file
Wow it works.
I can post code if anyone is interested.
Thanks!
On Sun, Aug 14, 2016 at 12:00 AM, Jack Tucky <jacktucky@xxxxxxxxx> wrote:
Yes I am sending width 4.0 and height 6.0 . I opened the image in
paint.net and it said the canvas size was almost twice that.
I tried most of the mapopt's after I tried the ones that made sense
:/)
The ZPL to PNG conversion needs a DPMM. I'm wondering if that has
something to do with it
On Aug 13, 2016, at 10:55 PM, Vernon Hambergwrote:
<vhamberg@xxxxxxxxxxxxxxx>
Jack*MAPOPT that makes it fit - I don't have the code handy.
I control the printed size using the *SIZE parameter of AFPRSC and
the
ImageMagick CAN adjust the size as well - haven't really tried that yet.And it can reduce the PNG to fewer colors. We're getting PNGs that
are probably 32-bit - they don't need to be, but we've not done
everything in that regards yet.
HTHway
Vern
On 8/13/2016 8:08 PM, Jack Tucky wrote:
The new printer prints the PDF's directly from the i. There are
sizing issues with the JPG's.
Vern I do use Imagemagick to convert the PNG to GIF or JPG. Both
are
vhamberg@xxxxxxxxxxxxxxx>too big when they print, even though I asked the labelary web
service to send me 4x6 labels.
I have to go in now and see where the image size gets messed up.
On Sat, Aug 13, 2016 at 4:11 PM, Vernon Hamberg <
binarieswrote:
Jack
If you can only get PNGs, look at ImageMagick - Scott Klement has
itfor all you need to do PNG to GIF conversions - I'm doing it now.
The command to do it is simple - let me know if you need it, I'll
send
quickhere.
Vern
On 8/12/2016 9:28 PM, Jack Tucky wrote:
It says ZPL to PNG but I thought there was a GIF option
They also sell the software to run the service in house. They
were
alsoto answer emails
http://labelary.com/service.html
On Aug 12, 2016, at 1:22 PM, Hatcher, Marianne
<MHatcher@xxxxxxxxxxxx
wrote:
Jack,
What is the web service that will translate a ZPL to a GIF? I
can
to beget a label in a ZPL format but didn't try that because I was
going
expectedprinting the label on a laser printer rather than thermal and I
getPDF or PNG to work. At this point, I will do whatever it takes
to
arethis thing to print!
www.pilotpen.us
Marianne Hatcher - Senior Systems Analyst
Office: (904) 645-9999 ext.1262
Pilot Corporation of America
3855 Regent Blvd, Jacksonville, Florida 32224 United States
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they
addresseeaddressed. If you have received this email in error please
notify the system manager. This message contains confidential
information and is intended only for the individual named. If
you are not the named
notifyyou should not disseminate, distribute or copy this e-mail.
Please
distributingthe sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. If
you are not the intended recipient you are notified that
disclosing, copying,
isor taking any action in reliance on the contents of this
information
Ofstrictly prohibited.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On
Behalf
printingJack Tucky
Sent: Friday, August 12, 2016 10:06 AM
To: Midrange Systems Technical Discussion
<midrange-l@xxxxxxxxxxxx>
Subject: Re: GIF or JPEG printing still struggling (PDF and PNG
theywith AFPRSC)
This is what we are trying to do also.
We get ZPL from Fedex though. We have a server in our building
that
ZPLprovide.
I've already found some software/web service that will translate
the
MHatcher@xxxxxxxxxxxx>to a GIF
On Aug 12, 2016, at 8:03 AM, Hatcher, Marianne <
FedExwrote:
Michael,
I haven't tried that because I need to print the PDF (which is
a
of paperlabel) and a packing slip on the same page (we have a special
type
thethat has a peel off label on the top and a tear off packing
slip at
producing thebottom). The label comes back from FedEx's API and we are
AFPRSCpacking slip through an external printer file. I wanted to use
the
trying tokeyword within the same printer file that produces the packing list.
We are making this change because we currently have all of our
FedEx labels manually programmed and printed through TLAshford
and are
werereplace that with the label that comes back from the FedEx API.
We
GIF and Iable to do this for UPS labels because their labels come back
as
returnedcan get those to print using AFPRSC component id 22.
Another option that I have with FedEx is to have their labels
work foras PNG. I read that component id 65 is for PNG but that
doesn't
they areme either.
www.pilotpen.us
Marianne Hatcher - Senior Systems Analyst
Office: (904) 645-9999 ext.1262 Pilot Corporation of America
3855 Regent Blvd, Jacksonville, Florida 32224 United States
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom
theaddressed. If you have received this email in error please
notify
issystem manager. This message contains confidential information
and
addresseeintended only for the individual named. If you are not the
named
notifyyou should not disseminate, distribute or copy this e-mail.
Please
distributingthe sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. If
you are not the intended recipient you are notified that
disclosing, copying,
information isor taking any action in reliance on the contents of this
Behalf Ofstrictly prohibited.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On
Michael Schutte
Sent: Thursday, August 11, 2016 11:09 PM
To: Midrange Systems Technical Discussion
<midrange-l@xxxxxxxxxxxx>
Subject: Re: GIF or JPEG printing still struggling
Marianne. Have you tried using the QImgCvtImg Api to convert
the
Itto a userascii spool file?
It doesn't create pcl spool file but remains as a PDF spool file.
printers.appears you are using Hp printers that can handle direct PDF
MHatcher@xxxxxxxxxxxx>I have posted code on using the QImgCvtImg api.
Sent from my iPhone
On Aug 11, 2016, at 1:08 PM, Hatcher, Marianne <
thenwrote:
Vern,
We are on 7.2. I am getting the PDF image back from a FedEx
API
from thesaving it to the IFS. When I use the AFPRSC keyword to print
it
from aIFS, it just prints a blank page. I really need to have it
packingprinter file so we can combine it (it is a Fedex label) with a
the top andslip. It prints on a special form that has a peel-off label
on
AS400 thatthe packing slip on the bottom of the same page.
I can copy the PDF from the IFS to my desktop and print it
manually from there and it looks perfect. Am I missing
something on my
We aren'twill allow the printer to print the PDF with the AFPRSC keyword?
this way.currently printing anything else (except UPS label which are
.GIF)
they areHave you been able to print PDFs from a printer file?
Thanks,
Marianne
www.pilotpen.us
Marianne Hatcher - Senior Systems Analyst
Office: (904) 645-9999 ext.1262 Pilot Corporation of America
3855 Regent Blvd, Jacksonville, Florida 32224 United States
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom
theaddressed. If you have received this email in error please
notify
issystem manager. This message contains confidential information
and
addresseeintended only for the individual named. If you are not the
named
notifyyou should not disseminate, distribute or copy this e-mail.
Please
bythe sender immediately by e-mail if you have received this
distributingmistake and delete this e-mail from your system. If you are
not the intended recipient you are notified that disclosing,
copying,
information isor taking any action in reliance on the contents of this
Behalfstrictly prohibited.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On
above,Of Vernon Hamberg
Sent: Thursday, August 11, 2016 12:58 PM
To: Midrange Systems Technical Discussion
<midrange-l@xxxxxxxxxxxx
Subject: Re: GIF or JPEG printing still struggling
Hi Marianne
What version of the OS are you on? It seems it must be 7.2 or
thesince your normal printing is working - HPT is taking care of you.
We've been able to get the PDF itself into a *USERASCII file
using
only ifQImgCvtImg API - that puts raw PDF into the spooled file -
works
else?your printer has a direct PDF printing module.
Are you creating the PDFs yourself or getting them from
somewhere
*STMFI can get GIFs into a PDF using AFPSRC at 7.1 - the CPYSPLF to
DO supportand
WSCST(*PDF) does that fine, I just can't get it into true PCL.
There are a couple IBM i KB articles - there titles both begin
with "IBM Printing PDF Stream Files to an..." - one for
printers that
filedirect PDF printing, the other for printers that do NOT.
But they suggest using FTP to send the stream file to a
printer
sign in andyou create, and that just doesn't fly too well for me - have
to
Iall.
HTH
Vern
On 8/11/2016 11:18 AM, Hatcher, Marianne wrote:
I got GIFs to print using
R GIFLABEL AFPRSC(&GIFLBLID 22 0.08 2.20 +
(*ROTATION 0) (*PATH &GIFPATH) +
(*SIZE 7 4) (*MAPOPT *ST))
I pass my label name to GIFLBIID and the path to GIFPATH
within my RPG program and it works great (this is used to
print UPS labels that are sent back from their API)
Now I need to print PDFs the same way but only get a blank page.
print PDFshave tried component id's 25 and 49. Has anyone been able to
they arethis way? I need this for printing FedEx labels.
www.pilotpen.us
Marianne Hatcher - Senior Systems Analyst
Office: (904) 645-9999 ext.1262 Pilot Corporation of America
3855 Regent Blvd, Jacksonville, Florida 32224 United States
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
theaddressed. If you have received this email in error please notify
and issystem manager. This message contains confidential information
addresseeintended only for the individual named. If you are not the named
Please notifyyou should not disseminate, distribute or copy this e-mail.
bythe sender immediately by e-mail if you have received this e-mail
themistake and delete this e-mail from your system. If you are not
distributingintended recipient you are notified that disclosing, copying,
information isor taking any action in reliance on the contents of this
Behalfstrictly prohibited.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On
midrange-l@xxxxxxxxxxxx>Of Michael Schutte
Sent: Thursday, August 11, 2016 11:59 AM
To: Midrange Systems Technical Discussion <
spool file.Subject: Re: GIF or JPEG printing still struggling
Yes that's the same issue I was having. I got around that by
converting PDF and then converting the PDF back to a userascii
likely becauseI know you mentioned in another thread that it doesn't work
to pcl.it's a dell printer emulating Hp. So you really need to convert
to googleThere's a thread on experts exchange if you want to read up. Go
wrote:and search for aix PDF to pcl.
Sent from my iPhone
On Aug 11, 2016, at 11:50 AM, Jack Tucky <jacktucky@xxxxxxxxx>
IIf I use Spoolmail to send a PDF to my email, it looks fine. If
withprint, I get a blank page.
Interested in ANY more ideas. I created a simple GIF with the
letter A on it.
We don't have any HP printers but the DELL printer I'm testing
RMTLOCNAME('192.168.2.101') +emulates HP
Here is my printer description:
CRTDEVPRT DEVD(AJLASER) DEVCLS(*LAN) TYPE(3812) MODEL(1) +
LANATTACH(*IP) PORT(9100) ATTACH(*DIRECT) ONLINE(*YES) +
FONT(11 *NONE) FORMFEED(*AUTOCUT) SEPDRAWER(*FILE) +
PRTERRMSG(*INQ) MSGQ(*CTLD) ACTTMR(170) INACTTMR(*SEC15) +
LINESPEED(19200) WORDLEN(8) PARITY(*NONE) STOPBITS(1) +
TRANSFORM(*YES) MFRTYPMDL(*HP5) PPRSRC1(*LETTER) +
PPRSRC2(*LETTER) ENVELOPE(*NUMBER10) ASCII899(*NO) +
IMGCFG(*IMGD02) CHRID(*SYSVAL)
take--USRDFNOPT(*IBMSHRCNN) SYSDRVPGM(*HPPJLDRV) +--
TEXT('Dell 2135CN') +
PUBLISHINF(*UNKNOWN *UNKNOWN *UNKNOWN *UNKNOWN *BLANK +
(*UNKNOWN))
My Printer file created with DEVTYPE(*AFPDS) R IMAGE
AFPRSC('A.GIF' 22 +
1.000 1.000 (*SIZE 4.00 6.000) +
(*PATH '/tmp') +
(*MAPOPT *SL))
Program is really nothing
FPRTIMAGE9pO E PRINTER
/free
write image
*inlr = *On;
return;
/end-free
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
take a moment to review the archives at
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
take a moment to review the archives at
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
takea moment to review the archives at http://archive.midrange.com/mi
drange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
mailinga moment to review the archives at--
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
takelist To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
mailinga moment to review the archives at http://archive.midrange.com/mi
drange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
takelist To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
mailinga moment to review the archives at--
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
take alist To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
midrange-l.moment to review the archives at http://archive.midrange.com/
mailingPlease contact support@xxxxxxxxxxxx for any subscription related
questions.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
list--list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list--To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxxquestions.
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.