pdf general
xpdf
build instruction (for xpdf 3.02):
- apply xpdf-3.02pl[12].patch
-
apply this patch
to get rid of all these fucking protections (for more info see
Gallery of Adobe Remedies by
Dave Touretzky)
-
in XPDFViewer.h, define DISABLE_OUTLINE (to get rid of fucking
"bookmarks" and "thumbnails" once and for all)
-
export CFLAGS="$CFLAGS -I/usr/local/freetype/include/freetype2
-I/usr/X11R6/LessTif/Motif2.0/include"
-
export CXXFLAGS="$CXXFLAGS -I/usr/local/freetype/include/freetype2
-I/usr/X11R6/LessTif/Motif2.0/include"
-
export CPPFLAGS="-I/usr/local/freetype/include/freetype2 -I/usr/X11R6/LessTif/Motif2.0/include"
- export LDFLAGS=-L/usr/local/freetype/lib
-
./configure --prefix=/usr/local/xpdf-3.02pl2
--with-Xm-library=/usr/X11R6/LessTif/Motif2.0/lib
- make; make install
-
uncomment and specify correct path to ghostscript fonts in xpdfrc
to make pdftotext print to stdout, supply - as a filename;
for example: pdftotext input.pdf -
djvu
- djvulibre
-
djvu viewer for windows from Lizardtech.
-
to convert image file(s) to djvu:
1st method:
image -> ppm; ppm -> djvu with cpaldjvu;
assemble separate djvu files into one with djvm
2nd method:
use any2djvu (does not support png);
[note: for pdf and ps input, any2djvu merely runs remotely djvudigital
which is a part of djvulibre]
-
to convert from djvu to pdf: use ddjvu -format=tiff to convert djvu to tiff
and then use tiffcp and tiff2pdf
created Jun 3 2006
last updated Fri May 9 20:21:58 GMT 2008