The following code outputs extremely faint png files for the pdf files I am using:
from __future__ import print_function
from wand.image import Image
with Image(filename='source.pdf') as img:
with img.convert('png') as converted:
converted.save(filename='pyout/page.png')
I tried experimenting with export_pixels() method but still did not get my PNG output as desired. For now, I will be converting to JPEG since the wand module seems to work well for those.
The following code outputs extremely faint png files for the pdf files I am using:
I tried experimenting with export_pixels() method but still did not get my PNG output as desired. For now, I will be converting to JPEG since the wand module seems to work well for those.