Shell command to convert a .orb to a .pdf file (OSX):
1. Install pdflib, xpdf, swftools, renameutils, pdftk using homebrew, macports or other package manager
2. download swftools seperately and compile gfx2gfx (see
this page)
3. (optional) comment out lines 275-287 in ./lib/pdf.c before compiling if you don't want to resample images
4. compile the library if there are errors
5. create swf2pdf.sh file with your editor of choice (BBEdit, vi, etc)
Code:
#!/bin/sh
if [ ! -f "$1" ]; then
echo "File does not exist: $1" >&2
exit 1
fi
filename=$1
file_zip=${filename%.orb}.zip
file_pdf=${filename%.orb}.pdf
folder_unzipped=${filename%.orb}
mv "$1" "$file_zip"
unzip "$file_zip"
cd "$folder_unzipped"
rename .gau .swf *.gau
ls *.swf | sort -n | while read filename; do gfx2gfx "$filename" "${filename%.swf}.pdf"; done
pdftk $(ls *.pdf | sort -n) output "../$file_pdf"
cd ..; rm -rf "$folder_unzipped"; mv "$file_zip" $1
5. chmod +x swf2pdf.sh
6. ./swf2pdf your_orb_file.orb
Problem: text is not retained as such in resulting pdf but is converted to shapes (
link) -> increased size & OCR necessary
P.S. Special thanks to my brother in law for being a linux genius