Belval/pdf2image

Render page result is more drak then origin pdf?

frideal opened this issue · 2 comments

convert_from_path(inputfilepath, 150, outputfolderpath ,fmt="PNG",output_file=outputfilename,size=(None,1080),thread_count=10)

i use convert_from_path to render each page to png files.but i find render result is more drak then origin pdf
look at the camel and bull

render result:
image

origin pdf look in Adobe Acrobat Reader DC(32bit)
image

origin:
image

pdf2image render result:
image

Maybe these images have a colour profile embedded into the PDF that pdftoppm does not preserve?

@mara004 response might be one thing, but you can also clearly see that pdftoppm is smoothing the output whereas Adobe is not.

Unfortunately pdf2image is just a wrapper around pdftoppm so I don't think anything can be done on my side :(