kev009 / boo2pdf

IBM BookManager to PDF converter
http://www.kev009.com/wp/projects/boo2pdf/
11 stars 4 forks source link

boo2pdf

WARNING: This program is a kludge :)

There's an web service version available at http://ps-2.kev009.com/boo2pdf/ that's easier if you just need to convert some documents.

Questions?

Contact Kevin Bowling, info at http://www.kev009.com/

Running boo2pdf

The bulk of the app is in the Java code, using IBM's SoftCopy Reader(SCR) libraries to do the heavy lifting. boo2pdf.java is a small replacement main class that makes it easy to script against SCR. It outputs really ugly HTML and .gif and .jpg images in SCR's preset cache directory (~/.IBM/)

Example Run Script

Note: This script requires Xvfb, xvfb-run, htmldoc

Take a look at convert.sh for an example run script. You will want to customize this to your system and take into account the notes below.

This script takes two parameters: <name>.boo <name>. <name> is the root file name. It will output an intermediate <name>.html and then <name>.pdf once htmldoc is run.

Notes

This repo is Linux only. By using the Windows SCR and editing boo2pdf.java to load the correct .dll files (in place of the .so files) it is possible to get the same effect on Windows. You might want to use Cygwin, PowerShell, Perl, or similar for your run script.

There are a lot of things to be aware of:

Build Instructions

cd src
javac -cp ../sys/hlccommon.jar boo2pdf.java
mv boo2pdf.class ../bin/

Patches or help with a C/C++ port welcome.

We'd need docs or reversing of the file formats.