Thanks, Vern. Sounds very helpful. How can I go about getting your code?
If it's something you can send separately, I'm at breed@xxxxxxxxxxxxxx
Bill
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg
Sent: Monday, August 28, 2017 10:38 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Converting AFP page segments to pc image files
Hi Bill
I've written a program to "print" the page segment using program fields for the name and all. Basically I have a PRTF with PAGSEG using program fields. Then an RPG to print using this PRTF. The RPG is called from a CL that is a command-processing program that gets the qualified PAGSEG, an IFS path for the image, and the image type, GIF or TIFF.
After the call to print the PAGSEG, the CL does a CPYSPLF using a WSCST
- there are 2 of interest - QWPGIF & QWPTIFFG4.
THe CPYSPLF uses the TOSTMF parameter where you put the image file path.
There might be questions of size and white space in the results - I'm not sure what controls there are in the WSCSTs or elsewhere.
You can also use the WSCST in an OVRPRTF before printing in the RPG program.
We ended up using TIFFs, due to some issue with GIFs - it was a good-enough solution.
Now if you want to convert the result to something like a PNG, you can install ImageMagick in PASE to do the conversion - Scott Klement has a version on his site that is a little old yet does the job nicely.
HTH
Vern
On 8/28/2017 8:11 AM, Bill Reed wrote:
We have a large number of AFP page segments on our system (roughly 500), which need to be converted to jpg, bmp, or some other standard pc image file type, for use on another system. I find lots of pointers on how to build page segments from pc files, which is how we created all these years ago, but nothing for the reverse direction.
Does anyone have any ideas on this?
Thanks.
Bill Reed
--
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.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.