What is jPDF Tweak?
A Swiss Army Knife GUI application for PDF documents: combine, split, rotate, reorder (n-up, booklet), watermark, edit bookmarks/fileinfo/pagetransition, compress, encrypt, decrypt, sign, repair, edit attachments and more. You can use it to make printable booklets from your PDFs, to add PDF bookmarks, effects (page transitions), to combine multiple PDF files, to watermark them, to rotate pages that do not fit, to attach files to your PDF, to encrypt and sign your PDFs, to change metadata (like author or keywords), and much more.

System requirements
  • Version 1.6.0 (tested with version 1.6.0ga5)


jPDF Tweak on an eComStation machine with Open JDK


Installing jPDF Tweak
Download jpdftweak-1.1.zip(4.0Mb). Make a directory/map with the name "jpdftweak" or something you like. Open de zip file and copy everything to the new created directory/map. That's it!

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

  • [drive: java] = drive with Java
  • [drive: jpdftweak] = drive with jPDF Tweak

should be replaced with real drive letters. Save the file and name it "jpt.cmd" or use the file from the distribution. This file is copied to the "jpdftweak" directory/map. Furthermore, different paths?, adjust according to your needs.
Create a new program object. Specify the path and file name: "[drive: jpdftweak]\jpdftweak\jpt.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 "jPDF Tweak". I have added an OS/2 icon in the distribution.


jPDF Tweak on an eComStation machine with Open JDK


Parameters / options explained
  • The statement "-Duser.home=[drive: jpdftweak]\jpdftweak" will ensure that jPDF Tweak will save all necessary files in own directory instead of saving them in the home directory. As far as I can see the program does not create its own files and with opening a file I am in the Odin folder. So this setting can also be omitted.
  • The addition "2>jpdftweak-bugs.txt" ensures that errors are saved in the file "jpdftweak-bugs.txt". The 2 in "2>" is not a typo! The file stays not empty if you don't do the right things like forgetting to specify a target file.

Remarks with running jPDF Tweak
There is no help in the program and the user interface is not what you normally expect in a program. Read the manual first!, you can find it in the subdirectory "manual". It is a HTML file with pictures, in the browser you can print it to a pdf-file if you like. Before you hit the knob "Run" be sure you didn't forget a parameter. The program can only handle pdf-files, so you can't convert text and pictures to a pdf file. In the two pictures you can see that I have deleted one pdf file and did a re-run. Now I have one pdf-file which was first four seperate files. If the files are big or you are going to build a big pdf-file from many smaller ones, then you could get problems with memory. If this is the case you can add "-Xmx256M" between "java" and "-Duser.home-..." in above command file.

Download
In the file you can find the above command file (all drive letters are on set to C:) and an OS/2 jPDF Tweak icon: jpdftweak-os2.zip. Mind that you also need to download jpdftweak-1.1.zip.

revision July 26, 2020