UNPAPER(1) unpaper UNPAPER(1) (NAME) unpaper - (SYNOPSIS) unpaper [] ( | ) (OVERVIEW) unpaper . PDF . unpaper (OCR) . unpaper ( ) . . <<>> ("deskewing") . . unpaper . . .pbm .pgm .ppm .pnm scanimage scanadf . PDF pgm2tiff tiffcp tiff2pdf . (INPUT AND OUTPUT FILES) %04d . --input-pages --output-pages . --sheet --end-sheet . unpaper PNM .pbm .pgm .ppm .pnm scanimage scanadf ..SH " (OPTIONS)" -l { single | double | none } ; --layout { single | double | none } : single . double ( ). none mask-scan-points . single double --mask-scan-points . single . -start sheet ; --start-sheet start-sheet . (: 1) -end sheet ; --end-sheet sheet . -1 (: -1) -# sheet-range ; --sheet sheet-range start-sheet end-sheet . -x sheet-range ; --exclude sheet-range start-sheet end-sheet . --pre-rotate { -90 | 90 } (90) (-90) . --post-rotate { -90 | 90 } (90) (-90) . -M { v | h | v,h } ; --pre-mirror { v | h | v,h } . v ( ) h ( ) v,h ( ) . --post-mirror { v | h | v,h } . v ( ) h ( ) v,h ( ) . --pre-shift h, v . h ( ) v ( ) . --post-shift h, v . h ( ) v ( ) . --pre-wipe left, top, right, bottom . . . --post-wipe left, top, right, bottom . . . --pre-border left, top, right, bottom . . --post-border left, top, right, bottom . . --pre-mask x1, y1, x2, y2 . . . . (deskewing) --pre-mask . -s { width, height | size-name } ; --size { width, height | size-name } . . . size-name : a5 a4 a3 letter legal. (landscape) a4-landscape letter-landscape . --post-size { width, height | size-name } . --stretch { width, height | size-name } . . --post-stretch { width, height | size-name } . . -z factor ; --zoom factor . --post-zoom factor . -bn { v | h | v, h } ; --blackfilter-scan-direction { v | h | v, h } . v ( ) h ( ) v,h ( ) . . blackfilter-scan-threshold . black-threshold . blackfilter-scan-step . blackfilter-scan-size ( ) ( ) . -bs { size | h-size, v-size } ; --blackfilter-scan-size { size | h-size, v-size } ( ) . . (: 20,20) -bd { depth | h-depth, v-depth } ; --blackfilter-scan-depth { depth | h-depth, v-depth } ( ) . . (: 500,500) -bp { step | h-step, v-step } ; --blackfilter-scan-step { step | h-step, v-step } . . (: 5,5) -bt threshold ; --blackfilter-scan-threshold threshold . (: 0.95). -bx left, top, right, bottom ; --blackfilter-scan-exclude left, top, right, bottom blackfilter . blackfilter . . -bi intensity ; --blackfilter-intensity intensity . . (noise) . (: 20) -ni intensity ; -noisefilter-intensity intensity . intensity . (: 4) -ls { size | h-size, v-size } ; --blurfilter-size { size | h-size, v-size } blurfilter "". (: 100,100) -lp { step | h-step, v-step } ; --blurfilter-step { step | h-step, v-step } "" . (: 50,50) -li ratio ; --blurfilter-intensity ratio . ratio . (: 0.01) -gs { size | h-size, v-size } ; --grayfilter-size { size | h-size, v-size } grayfilter " ". (: 50,50) -gp { step | h-step, v-step } ; --grayfilter-step { step | h-step, v-step } grayfilter . (: 20,20) -gt ratio ; --grayfilter-threshold ratio grayfilter . (: 0.5) -p x, y; --mask-scan-point x, y . --mask-scan-point . -m x1, y1, x2, y2; --mask x1, y1, x2, y2 --mask-scan-point ( --no-mask-scan ). . -mn { v \| h \| v,h }; --mask-scan-direction { v \| h \| v,h } --mask-scan-point. v ( ) h ( ) v,h ( ) . (: h v ) -ms { size \| h-size, v-size }; --mask-scan-size { size \| h-size, v-size } . . (: 50,50) -md { depth \| h-depth, v-depth }; --mask-scan-depth { depth \| h-depth, v-depth } . (: -1,-1 ) -mp { step \| h-step, v-step }; --mask-scan-step { step \| h-step, v-step } . (: 5,5) -mt { threshold \| h-threshold, v-threshold }; --mask-scan-threshold { threshold \| h-threshold, v-threshold } . (: 0.1) -mm w, h; --mask-scan-minimum w, h . mask-scan-maximum . (: 100,100) -mM w, h; --mask-scan-maximum w, h . . (: --layout) -mc color; --mask-color color . . ( RGB : R*65536 + G*256 + B.) -dn { left \| top \| right \| bottom },...; --deskew-scan-direction { left \| top \| right \| bottom },... . . --deskew-scan-deviation . left top right bottom . . (: left,right) -ds pixels; --deskew-scan-size pixels . (: 1500) -dd ratio; --deskew-scan-depth ratio . (: 0.5) -dr degrees; --deskew-scan-range degrees -degrees +degrees . (: 5.0) -dp degrees; --deskew-scan-step degrees . . (: 0.1) -dv deviation; --deskew-scan-deviation deviation . . (: 1.0) -W left, top, right, bottom; --wipe left, top, right, bottom . . --wipe . (deskewing) . -mw { size \| left, right }; --middle-wipe { size \| left, right } --layout double . blackfilter ( ) . -B left, top, right, bottom; --border left, top, right, bottom . . . -Bn { v \| h \| v,h }; --border-scan-direction { v \| h \| v,h } . v ( ) h ( ) v,h ( ) . (: v) -Bs { size \| h-size, v-size }; --border-scan-size { size \| h-size, v-size } . . (: 5,5) -Bp { step \| h-step, v-step }; --border-scan-step { step \| h-step, v-step } . (: 5,5) -Bt threshold; --border-scan-threshold threshold . (: 5) -Ba { left \| top \| right \| bottom }; --border-align { left \| top \| right \| bottom } . --border-margin . (: none) -Bm vertical, horizontal; --border-margin vertical, horizontal . cm in . -w threshold; --white-threshold threshold . (: 0.9) -b threshold; --black-threshold threshold () . gray-filter blackfilter . . (: 0.33) -ip { 1 \| 2 }; --input-pages { 1 \| 2 } 2 . --pre-rotation . -op { 1 \| 2 }; --output-pages { 1 \| 2 } 2 . --post-rotation . -S { width, height \| size-name }; --sheet-size { width, height \| size-name } . ( input-pages=1 ) ( input-pages=2 ) . . . . a4-landscape letter ( --size). (: ) --sheet-background { black \| white } . . --no-blackfilter sheet-range . . --no-noisefilter sheet-range (noisefilter) . . --no-blurfilter sheet-range (blurfilter) . . --no-grayfilter sheet-range (grayfilter) . . --no-mask-scan sheet-range . --mask . . --no-mask-center sheet-range . --layout . . --no-deskew sheet-range (deskewing) . . --no-wipe sheet-range . --wipe . --no-border sheet-range . --border . --no-border-scan sheet-range . . --no-border-align sheet-range ( --border-align). . -n sheet-range; --no-processing sheet-range / . --no-xxx . . --interpolate { nearest \| linear \| cubic } (interpolation) . cubic nearest . (: cubic) --no-multi-pages % ( ). --dpi dpi 21cm,27.9cm. . (: 300) -t { pbm \| pgm \| ppm }; --type { pbm \| pgm> \| ppm } ( ). . pbm (Portable Bit Map) . pgm (Portable Grayscale Map) . ppm (Portable Pixel Map) RGB . -T ; --test-only . --verbose . -si nr; --start-input nr '%d' . . (: (startsheet-1)*inputpages+1) -so nr; --start-output nr '%d' . . (: (startsheet-1)*outputpages+1) --insert-blank nr [,nr...] . . . --replace-blank nr [,nr...] --insert-blank . --overwrite . . -q ; --quiet . -v ; --verbose . -vv . -V ; --version . unpaper (COPYRIGHT) 2020 unpaper August 4, 2026 UNPAPER(1)