Can I use IM to optimize scanned PDF?
Posted: 2017-03-17T07:46:02-07:00
Hi. I,m new Linux user (less than 1 year). I recently discover the power of IM that I previously not aware about it.
Currently - after spend time in investigation - I use this script, that I build, to optimize group of already black & white (monochrome) images (deskew, descreen, with or without sharpen text) before merge them into single PDF:
#! /bin/bash
convert *."$1" -deskew 80% -morphology Close Diamond:1 -sharpen 0x1.0 -alpha off -monochrome -compress Group4 "$2".pdf
I apply it on both .tiff & .pcx with super-excellent result & give me small sized PDF output. At a time I need "-sharpen" to improve result & at other time it cause problem by reverse effect of descreen of "-morphology" so I delete it.
Problem is that: I need to apply "-deskew", "-morphology", with or without "-sharpen" on scanned PDF files that I downloading them from Internet & not being scanned by me, so as to optimize them, but the output PDF file being severely blurred ! I tried to overcome this by use "-density 600" but not working at all !
$ convert input.pdf -density 600 -deskew 80% -morphology Close Diamond:1 -alpha off -monochrome -compress Group4 "$2".pdf
I tried to increase value of "-density" but no benefit !! I increased it's value for very high level (600000). No any effect ! Only delay in time till output PDF obtained & still severly blurred !
Please, any one can inform me: is IM suitable to optimize scanned PDF by this way or not ? If yes, so what I have to modify in above command ?
See the following file example:
https://drive.google.com/file/d/0B1nB8I ... A4Y3M/view
I will delete this file after 24 hr.
Please concentrate on pages 2 & more & ignore 1st page because it is colored & blurring effects not appear on it as clearly as on remainder monochrome pages.
Currently - after spend time in investigation - I use this script, that I build, to optimize group of already black & white (monochrome) images (deskew, descreen, with or without sharpen text) before merge them into single PDF:
#! /bin/bash
convert *."$1" -deskew 80% -morphology Close Diamond:1 -sharpen 0x1.0 -alpha off -monochrome -compress Group4 "$2".pdf
I apply it on both .tiff & .pcx with super-excellent result & give me small sized PDF output. At a time I need "-sharpen" to improve result & at other time it cause problem by reverse effect of descreen of "-morphology" so I delete it.
Problem is that: I need to apply "-deskew", "-morphology", with or without "-sharpen" on scanned PDF files that I downloading them from Internet & not being scanned by me, so as to optimize them, but the output PDF file being severely blurred ! I tried to overcome this by use "-density 600" but not working at all !
$ convert input.pdf -density 600 -deskew 80% -morphology Close Diamond:1 -alpha off -monochrome -compress Group4 "$2".pdf
I tried to increase value of "-density" but no benefit !! I increased it's value for very high level (600000). No any effect ! Only delay in time till output PDF obtained & still severly blurred !
Please, any one can inform me: is IM suitable to optimize scanned PDF by this way or not ? If yes, so what I have to modify in above command ?
See the following file example:
https://drive.google.com/file/d/0B1nB8I ... A4Y3M/view
I will delete this file after 24 hr.
Please concentrate on pages 2 & more & ignore 1st page because it is colored & blurring effects not appear on it as clearly as on remainder monochrome pages.