Convert part of PDF at high quality
Posted: 2013-06-21T07:45:20-07:00
Hello, Imagemagic,
I have a large batch of poor-quality scanned forms in PDF format. I want a specific field from this form, which is consistently located, in high-resolution .png for OCR. My current -convert is:
convert -quality 100 -density 800 -resize x4400 -crop 3200x1200+0+2300 $target $target.png
This, so far as I can tell, converts the entire pdf to a high-quality .png and then cuts out my desired segment. Is there a way to pull out a specific part of a pdf for rendering, rather than resampling the entire image at density 800?
The issue of a pdf's "resolution" is confusing and definitely part of my problem.
Thanks in advance!
I have a large batch of poor-quality scanned forms in PDF format. I want a specific field from this form, which is consistently located, in high-resolution .png for OCR. My current -convert is:
convert -quality 100 -density 800 -resize x4400 -crop 3200x1200+0+2300 $target $target.png
This, so far as I can tell, converts the entire pdf to a high-quality .png and then cuts out my desired segment. Is there a way to pull out a specific part of a pdf for rendering, rather than resampling the entire image at density 800?
The issue of a pdf's "resolution" is confusing and definitely part of my problem.
Thanks in advance!