My PNG file is 600dpi, which is changed to 72 after storing as PDF.
How can I keep the original 600dpi unchanged when storing PDF?
doc = fitz.open ()
image = fitz.Pixmap (filename)
image.setResolution (600, 600)
page = doc.new_ page(0, image.width , image.height )
page.insert_ image((0, 0, image.width , image.height ), pixmap=image)
newFileName = filename.replace ('.png', '.pdf')
doc.save (newFileName)
doc.close ()