PDF Split and Merge
PDF Split and Merge is an easy-to-use tool with graphical and command line interfaces to spit, merge, mix, and rotate your PDF documents. Version 2.2.4 is the last version which will run in OpenJDK 6. The next version 3.x needs Java 8 according the programmers blog.

A list of features:
  • Merge PDF documents together
  • Split PDF documents specifying the page number
  • Split PDF documents specifying the level of bookmarks
  • Rotate PDF documents
  • Mix two PDF documents taking pages alternately
  • Visually compose your PDF dragging pages from other PDF

System requirements
  • Minimum JRE: 1.6.0 Build 22 GA
  • Program uses 371Mb RAM

pdfsam on an eComStation machine with Open JDK

Installing pdfsam
Download pdfsam-2.2.4-out.zip. Create a folder (directory) "pdfsam". Unzip the file "pdfsam-2.2.4-out.zip" to the new folder "pdfsam".

The pdfsam.cmd file
Pdfsam version 2.2.4 works with Open JDK in OS/2-eCS. I have made a pdfsam.cmd file with the following contents;
@echo off
set path=[drive: java]\JAVA160ga5\bin
set BEGINLIBPATH=[drive: java]\JAVA160ga5\bin
[drive: pdfsam]
cd [drive: pdfsam]\pdfsam
java -Xmx384m -Duser.home=[drive: pdfsam]\pdfsam -jar pdfsam-2.2.4.jar 2>pdfsam-bugs.txt
I use 2 separate folders (directories), one for Java and one for Pdfsam with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: pdfsam] = drive with Pdfsam

should be replaced with real drive letters. Edit and save the file "pdfsam.cmd" from the distribution. This file is copied to the "pdfsam" folder (directory). Furthermore, different paths?, adjust according to your needs.
Create a new program object. Specify the path and file name: "[drive: pdfsam]\pdfsam\pdfsam.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "pdfsam-2.2.4". You find enclosed in the file a suitable OS/2 icon.

Parameters / options explained
  • The addition "2>pdfsam-bugs.txt" ensures that errors are saved in the file "pdfsam-bugs.txt". The 2 in "2>" is not a typo!
  • The specification "-Xmx384m" comes from own try and error. The "-Xmx384m" indicates the maximum limit. Without you will get LIBC panics.

In the file you can find the above command file (all driveletters are set to C:) and an OS/2 Pdfsam icon: pdfsam-ecs.zip.

revision July 2, 2015