http://code.midrange.com/0452359861.html

Code used to be here. I can't seem to get it to come up now though

Sent from my iPhone

On Aug 11, 2016, at 3:41 PM, Hatcher, Marianne <MHatcher@xxxxxxxxxxxx> wrote:

Thanks. I can get GIFs to print with component ID 22 with no problem. Nothing works for PDFs though.



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: Thursday, August 11, 2016 3:37 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: GIF or JPEG printing still struggling

Good luck Marianne.

I should clarify - the AFPRSC keyword DOES put the image into an *AFPDS spooled file - it is HPT that doesn't transform it for printing.

But if I look at the spooled file in a client like ACS, it does show the image I'd put there - at least it does for GIFs (they have a new component ID of 22, IIRC).

Vern

On 8/11/2016 2:32 PM, Hatcher, Marianne wrote:
Thanks for your help, Vern. I think I will have to call IBM for help. I have tried everything ....

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: Thursday, August 11, 2016 3:22 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: GIF or JPEG printing still struggling

We are at 7.1, so the AFPRSC keyword does not work, since HPT does not support transforming it.

You CAN see it in Access Client Solutions printer output - and maybe in IBM i Access Navigator - I use the former now to see how things print.

I just tried the *PDFSPO value and got a blank page - I don't know just what a *PDFSPO thing is - PDF single-page object is what the documentation says, and I can't find any reference to that other than the AFPRSC documentation - so just what IS it?

I had tried it first without the *SIZE parameter - then with smaller-than-letter-size values. no luck - position was 1 inch down, 1 inch across, so I should not have run into unprintable, if that's even an issue.

I used *MAPOPT of *ST for scale to fit.

Tried *PDFSPOTR - still no good.

Changed *MAPOPT to *PT - the default for all "other" object types.

You probably should call IBM support to get help, because it looks as if it SHOULD work -at least they can tell you what the object type has to be - maybe we don't have the right thing.

In case you noticed, this isn't IBM support - it's other folks floundering about just as you are, lots of the time! Just as I am!

Good luck
Vern

On 8/11/2016 12:08 PM, Hatcher, Marianne wrote:
Vern,
We are on 7.2. I am getting the PDF image back from a FedEx API then saving it to the IFS. When I use the AFPRSC keyword to print it from the IFS, it just prints a blank page. I really need to have it print from a printer file so we can combine it (it is a Fedex label) with a packing slip. It prints on a special form that has a peel-off label on the top and the 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 AS400 that will allow the printer to print the PDF with the AFPRSC keyword? We aren't currently printing anything else (except UPS label which are .GIF) this way.

Have 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 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: 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 above, since 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 the QImgCvtImg API - that puts raw PDF into the spooled file - works only if your printer has a direct PDF printing module.

Are you creating the PDFs yourself or getting them from somewhere else?

I can get GIFs into a PDF using AFPSRC at 7.1 - the CPYSPLF to *STMF
and
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 DO support direct PDF printing, the other for printers that do NOT.

But they suggest using FTP to send the stream file to a printer file you create, and that just doesn't fly too well for me - have to sign in and all.

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. I have tried component id's 25 and 49. Has anyone been able to print PDFs this 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 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 Michael Schutte
Sent: Thursday, August 11, 2016 11:59 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
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 spool file. I know you mentioned in another thread that it doesn't work likely because it's a dell printer emulating Hp. So you really need to convert to pcl. There's a thread on experts exchange if you want to read up. Go to google and search for aix PDF to pcl.

Sent from my iPhone

On Aug 11, 2016, at 11:50 AM, Jack Tucky <jacktucky@xxxxxxxxx> wrote:

If I use Spoolmail to send a PDF to my email, it looks fine. If I
print, 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 with
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) RMTLOCNAME('192.168.2.101') +
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 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 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.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.