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


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.