Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script-fu convert pdf to png WITHOUT antialiasing
#3
I was looking at this last night and also came up with ImageMagick (IM)

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.

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?
Reply


Messages In This Thread
RE: script-fu convert pdf to png WITHOUT antialiasing - by rich2005 - 12-09-2017, 10:05 AM

Forum Jump: