×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




You can't merge PDFs by simple putting them together. You'll need some
sort of PDF merge utility.

Our SPLTOOL software does contain a command named PDFCAT that will
concatenate two or more PDF files into one if you'd like to try that.
www.bvstools.com/spltool.html.


Bradley V. Stone
www.bvstools.com
GreenTools for PayPal <https://www.bvstools.com/g4pp.html>: Easily send
PayPal invoices from your IBM i applications using RPG ILE! Process
refunds, get account balances and more!

On Thu, Dec 13, 2018 at 7: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


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