Hello,
here's a "library" and the script (rename pdf.txt to pdf.cls and TestPDFLib.txt to TestPDFLib.rex ) to use it.
The script should run on win, *nix and os2, but seem to fail on the latter for some functionality.
Note that you may have to tweak ooRexx rexxsetenv.cmd to even be able to access GhostScript.
Run with:
rexx TestPDFLib
One can of course write code to do these things in classic rexx, object rexx and plain command line as well,
but the interesting part here is that it should be reusable (not possible with classic rexx).
With some adjustment it should work with Object Rexx as well.
It can be used to merge separate PDF-files, but example of that is not included.