Search found 5 matches

by stozi
2015-10-11T15:21:52-07:00
Forum: Users
Topic: convert multi-page colour pdfs to high contrast black & white
Replies: 9
Views: 6955

Re: convert multi-page colour pdfs to high contrast black & white

Ok, fmw42, that's all way above my head. Anyway, the important thing is I got what I wanted with

Code: Select all

$ pdfimages -all input.pdf name

$ find . -maxdepth 1 -iname '*jpg' -exec convert -threshold 50% {} ouputdirectory/{} \;

$ mogrify -format pdf -- *.jpg

$ pdfunite *.pdf output.pdf
Thank you all.
by stozi
2015-10-11T11:34:56-07:00
Forum: Users
Topic: convert multi-page colour pdfs to high contrast black & white
Replies: 9
Views: 6955

Re: convert multi-page colour pdfs to high contrast black & white

that gave me a complicated fail, $ mogrify -path ./ -format pdf -threshold 50% *.pdf libpng error: Write Error mogrify: PDFDelegateFailed `[ghostscript library 9.18] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha ...
by stozi
2015-10-11T09:51:07-07:00
Forum: Users
Topic: convert multi-page colour pdfs to high contrast black & white
Replies: 9
Views: 6955

Re: convert multi-page colour pdfs to high contrast black & white

one by one? I have a few pdfs with over 600 pages. any way to do them as a batch?

Code: Select all

$ convert in.pdf -threshold 50% out.pdf
does the job on a single image.
by stozi
2015-10-11T07:44:34-07:00
Forum: Users
Topic: convert multi-page colour pdfs to high contrast black & white
Replies: 9
Views: 6955

Re: convert multi-page colour pdfs to high contrast black & white

ok. I'm on Arch Linux with imagemagick 6.9.2.0-1. All the pdfs are quite similar to this one, mostly made with the same book-scanner http://vk.com/doc269758631_424827626 I got $ convert -density 288 input.pdf -density 300 -threshold 50% output.pdf convert: unable to extent pixel cache `No such file ...
by stozi
2015-10-10T23:10:03-07:00
Forum: Users
Topic: convert multi-page colour pdfs to high contrast black & white
Replies: 9
Views: 6955

convert multi-page colour pdfs to high contrast black & white

Hi I want to convert multi-page colour scan-based pdfs to high contrast black & white. I've tried $ convert input.pdf -level 50%,50% output.pdf and $ convert input.pdf -density 300 -level 50%,50% output.pdf but in both the text in the scans becomes unclear and pixelly. How do I retain the original ...