![]() However, it requires rebuilding Ghostscript from source code to include a special driver needed by djvudigital (it's part of the DjvuLibre distribution, but because of conflicting open-source licenses, it cannot be distributed legally as a binary). djvuĬonverting PostScript files (PDF, PS, EPS) ĭjvuLibre includes djvudigital, a tool that uses Ghostscript to directly convert PDF and other PostScript files to DjVu format. Unpaper -overwrite $(UNPAPER_OPTS_COMMON ) $(UNPAPER_OPTS_ST2 ) $ Compress to. UNPAPER_OPTS_ST2 = -no-noisefilter -no-blackfilter -no-grayfilter -no-blurfilter -no-deskew -S 3600,5250 -border-align top -border-margin 150 IMGS = $(wildcard *.png ) DJVUS = $(sort $ ) DJVU = _out.djvuĬonvert $ stage 2: place in the center of the page, set page size UNPAPER_OPTS_COMMON = -mask-scan-threshold 0.01 -dpi 600 -mask-scan-size 100 UNPAPER_OPTS_ST1 = -deskew-scan-size 5000 -dv 0.5 You need to repeat these steps with a script for each page of the book. Adding the DjVu file to the final document.Creation of a DjVu file from a PBM fileĬjb2 -clean rig_veda-000.pbm rig_veda-000.djvu.Unpaper is also capable of extracting two separate page images where facing pages of a book have been scanned into a single image. Depending on the quality of the original scans, you may find it useful to process them with the unpaper utility, which deletes black borders around the pages and aligns the scanned text squarely on the page. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |