Quote:
Originally Posted by Mike_73
Having a comparison would be awesome. I would appreciate your input.
Still, it sounds tedious!?!?
|
I'm glad to be useful.
Yes, it is tedious.
Lets begun with a pdf, Sample.pdf, in a Linux environment and finally I'd managed to do the whole thing without scantailor
Obtain individual pages with pdftk:
pdftk Sample.pdf burst
This outputs in the same directory pg_0001.pdf pg_0002.pdf and so on, in this case ends with the third page
Adjust individually the contrast and perform some filtering:
for a in $(seq -w 1 3); do convert -contrast -enhance pg_000$a.pdf eq_pg_000$a.pdf;done
(replace 3 with the last page, caution is needed with the number of zeroes, if more than 9 pages, and less than 100, then use pg_00$a.pdf instead as input and eq_pg_00$a.pdf as output and so on, the -w in seq means ad zeroes to the left)
after this we have eq_pg_0001.pdf eq_pg_0002.pdf eq_pg_0003.pdf in the working directory.
Now we want to build a new pdf with the processed pages:
pdftk eq*.pdf cat output eqSample.pdf
and that's all. Convert is a cross platform tool
http://www.imagemagick.org/script/index.php. I don't know how to make scripts in MSDOS. I could try good old Digital DCL in VMS :-))
Hope this helps, regards.