12-09-2017, 10:05 AM
(This post was last modified: 12-09-2017, 10:28 AM by rich2005.
Edit Reason: corrections
)
I was looking at this last night and also came up with ImageMagick (IM)
-density to set the size, 300 might be best
+antialias one of those strange IM switches where '+' turns it off.
Then some questions which arise from your post, in particular RAW output which in Gimp is .data
That does not work with IM, the output file.data defaults to pdf (without antialisaing) but a format such as PNM might be ok.
edit: read the post again and you want png, so that last bit is not needed, but what is meant by (raw)?
Looking at Gimp scripting procedures, opening a PDF does not seen to have any provision for turning anti-aliasing off or setting the ppi.
Maybe open the file, apply the threshold filter to remove anti-aliasing, export as png
Also depends on the PDF. Is it pure text or pure text with graphics or something else?
Code:
convert -density 100 -background white -flatten +antialias input.pdf output.png
-density to set the size, 300 might be best
+antialias one of those strange IM switches where '+' turns it off.
That does not work with IM, the output file.data defaults to pdf (without antialisaing) but a format such as PNM might be ok.
edit: read the post again and you want png, so that last bit is not needed, but what is meant by (raw)?
Looking at Gimp scripting procedures, opening a PDF does not seen to have any provision for turning anti-aliasing off or setting the ppi.
Maybe open the file, apply the threshold filter to remove anti-aliasing, export as png
Also depends on the PDF. Is it pure text or pure text with graphics or something else?