gheeres / PDFSharp.Extensions

Extensions methods for PDFSharp to simplify common operations, including image extraction.
MIT License
34 stars 27 forks source link

Extracted image has reduced resolution #8

Open adrianp74 opened 6 years ago

adrianp74 commented 6 years ago

In my tests with PDFs that have Tiff images when I extract the Tiff image, the saved tiff has a different resolution. I've attached 300x300.tif, which is my source tif. Then it's converted to the PDF 300x300.pdf. Then I attempted to extract it to 300x300_extracted.tif. I'm having weird issues with the resolution being maintained as well as the color. The background should be write, but the extracted TIF is black.

TestFiles.zip