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



Be aware that contrary to what a lot of people believe, iText is not free. It is a licensed product. I believe there is something about being free for personal use but definitely not corporate use.

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> On Behalf Of Eddie Gomez
Sent: Thursday, December 13, 2018 3:02 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: Re: Append AFPDS files

Have you looked into ConcatPDF? You have to load the itext5.jar java package into your IFS, compile the CONCATPDF CLLE program and command and you’re good to go. Allows you to merge to .PDF’s on the IFS and give that merged ,pdf file a new name.

On Dec 13, 2018, at 9:32 AM, Barb Hines <BHines@xxxxxxxxxxxxxxxxx> wrote:

It's third party software and they generate two spool files for the document, we don't own the source. I was looking for a quick solution without having to re-write a bunch of code...

Barbara Hines
Allied Machine & Engineering
330.343.4283 Ext. 8251
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> On Behalf Of Charles
Wilt
Sent: Thursday, December 13, 2018 12:13 PM
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Subject: Re: Append AFPDS files

Brad answered your question...

But why do you do two overlays? If you generate the spool file as AFPDS, you could assign a different overlay for every page in the single spool file.

Charles

On Thu, Dec 13, 2018 at 6:24 AM Barb Hines <BHines@xxxxxxxxxxxxxxxxx> wrote:

Hello group,

I'm having issues with merging spool files that are being sent to the IFS.

Two AFPDS spool files with overlays are created for our commercial
invoice, a header page and continuation pages. I'm copying them to a
directory as .pdf files.

Here is the command I'm using for each file:

CPYSPLF FILE(spoolfileX) TOFILE(*TOSTMF) +
JOB(12345/xxxxxxx/QPADEV0001) +
SPLNBR(000001) JOBSYSNAME(xxxxxx) +
TOSTMF('/myfolder/splf.PDF') +
WSCST(*PDF) STMFOPT(*NONE) OPNSPLF(*YES)

I run the ftp append command with "namefmt 1".

The files appear to append, the size increases as expected.

The problem is, when I open them in acrobat, I only see the first page.
What am I missing? Should I be using a different command to merge them?

Thank you,

Barbara Hines

[Allied Machine & Engineering]<http://www.alliedmachine.com/>


Barbara Hines

[Allied Machine & Engineering]<http://www.alliedmachine.com/>

Phone: 330.343.4283 Ext. 8251
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email:
RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx 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 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.