Home | Project | Download | Install | Device Support | Command Line | Changelog |
PDFRead is a tool for converting primarily non-DRMed PDF and DJVU documents for reading on eBook devices. It does this by creating an image out of each page, enhancing the image and then collating the images in a device-specific format.
sudo apt-get install pdftk python-imaging pngnq gs-common djvulibre-bin libtiff-tools unpaper optipng
python pdfread.py <options> pdf-file
sudo apt-get install ghostscript ghostscript-fonts libtiff-bin djvulibre optipng
sudo python setup.py install
python pdfread.py <options> pdf-file
pdfread -p reb1100 <pdf-file>
Tip: you may want to enable "reverse paging" in settings, so that you can advance to the next page using the left button (which is normally the bottom one).
Tip: You may also select a 'right' rotation and flip the reader so that the pages buttons are at the bottom.
pdfread -p ebw1150 <pdf-file>
pdfread -p reb1200 <pdf-file>
pdfread -p prs500 <pdf-file>
pdfread -p prc-mobi <pdf-file>
Usage: pdfread [options] input-document Options: -h, --help show this help message and exit -p PROFILE one of: prc-mobi-p, generic, reb1200, prs505-p, reb1200C, iLiad, prs500-p, iLiad-p, ebw1150, reb1200Cp, prc-mobi, reb1200-p, prs505, prs500, reb1100, ebw1150-p, generic-p -o OUTPUT the output filename -t TITLE generated ebook title (default: "Unknown") -a AUTHOR generated ebook author (default: "Unknown") -c CATEGORY generated ebook category (default: "PDFRead_Converted") -f FORMAT_OUT one of: imp2, html, prc, rb, oeb, imp1, lrf -i FORMAT_IN one of: tiff, imglist, imgdir, cbr, cbz, pdf, djvu -m MODE one of: landscape-full, landscape-2col, portrait-full, landscape-third, landscape-half, portrait, portrait-2col, landscape -r DIRECTION one of: none, right, left -u ARGS command line arguments for unpaper -d DIR the temporary directory where images are generated --first-page=PAGE first page to convert --last-page=PAGE last page to convert --optimize optimize generated PNG images --crop-percent=N% whitespace cropping percentage (default: 2.0%) --edge-level=L edge enhancement level from 1-9 (default: 5) --dpi=DPI the DPI at which to perform dilation (default: 300) --colors=N downsample the output image to N colorspace colors --colorspace=TYPE the colorspace to use (gray or rgb) --mono downsample the output image to monochrome --count=N consider that the document has N pages --hres=HRES the maximum usable horizontal resolution --vres=VRES the maximum usable vertical resolution --overlap-h=PIXELS horizontal overlap between pages (default: 20) --overlap-v=PIXELS vertical overlap between pages (default: 20) --no-crop disable the cropping stage --no-dilate disable the dilation stage --no-enhance disable the edge enhancement stage --no-toc disable the generation of Table of Contents --list-profiles show the various profiles and their settings
PROFILE HRES VRES LAYOUT MODE ROTATE COLORS COLORSPACE FORMAT ========== ==== ==== =========== ====== ====== ========== ====== ebw1150 : 319 446 landscape left 16 gray imp2 ebw1150-p : 319 446 landscape left 16 gray imp2 reb1200 : 468 595 landscape left 16 gray imp1 reb1200-p : 468 595 portrait none 16 gray imp1 reb1200C : 468 595 landscape left 256 rgb imp1 reb1200Cp : 468 595 portrait none 256 rgb imp1 reb1100 : 312 472 landscape left 2 gray rb prs500 : 583 753 landscape right 4 gray lrf prs500-p : 583 753 portrait none 4 gray lrf prs505 : 583 753 landscape right 8 gray lrf prs505-p : 583 753 portrait none 8 gray lrf prc-mobi : 520 640 landscape right 4 gray prc prc-mobi-p: 520 640 portrait none 4 gray prc iLiad : 768 935 landscape right 16 gray prc iLiad-p : 768 935 portrait none 16 gray prc generic : 600 800 landscape left 256 rgb oeb generic-p : 600 800 portrait none 256 rgb oeb Note: Profile appended with '-p' means portrait; with 'C' means Color.
• ebw1150 = {hres: 315, vres: 440, mode: landscape, rotate: left, colors: 16, colorspace: gray, format: imp2} • reb1200 = {hres: 468, vres: 590, mode: landscape, rotate: left, colors: 16, colorspace: gray, format: imp1} • reb1200-p = {hres: 468, vres: 590, mode: portrait, rotate: none, colors: 16, colorspace: gray, format: imp1} • reb1200C = {hres: 468, vres: 590, mode: landscape, rotate: left, colors: 256, colorspace: rgb, format: imp1} • reb1200Cp = {hres: 468, vres: 590, mode: portrait, rotate: none, colors: 256, colorspace: rgb, format: imp1} • reb1100 = {hres: 310, vres: 468, mode: landscape, rotate: left, colors: 2, colorspace: gray, format: rb } • prs500 = {hres: 565, vres: 754, mode: landscape, rotate: right, colors: 4, colorspace: gray, format: lrf } • prs500-p = {hres: 565, vres: 754, mode: portrait, rotate: none, colors: 4, colorspace: gray, format: lrf } • generic = {hres: 600, vres: 800, mode: portrait, rotate: none, colors: 256, colorspace: rgb, format: oeb }
PDFRead was created by Ashish Kulkarni with lots of help and suggestions from Falstaff, alex_d, sammykrupa, gdxf and many others from the Mobileread forums. It is currently being maintained by Nick Rapallo. It is licensed under the MIT license.