JpegDevice.Process ignores resolution

I have a pdf. It is sized 32.58" x 73.91" (inches).


Trying to export as jpeg, I create a JpegDevice with:
JpegDevice jpegDevice = new JpegDevice(new Resolution(300), 100);
Then run the process command on the page:
jpegDevice.Process(pdfDocument.Pages[x], imageStream);

And no matter what resolution (I assume the intention is dots per inch) I choose (300, 150, 100, etc), the image always comes out with resolution 2443 x 5543 pixels, which is 75 dots per inch. The image pixel size should be (inches X dpi). The resolution parameter of the JpegDevice is not being used to properly size the image. If I choose 300 dpi resolution, the resulting image should be 9774 x 22173.

Please advise. I am using pdf 9.5

Thank you,

Jason

Hi Jason,


Thanks for contacting support.

Can you please share your input PDF document, so that we can test the scenario at our end. We are sorry for your inconvenience.

Here is the document.

Hi Jason,


Thanks for sharing the resource file.

I have tested the scenario and I am able to
notice the same problem. For the sake of correction, I have logged this problem
as PDFNEWNET-39990 in our issue tracking system. We will
further look into the details of this problem and will keep you updated on the
status of correction. Please be patient and spare us little time. We are sorry
for this inconvenience.

The issues you have found earlier (filed as PDFNET-39990) have been fixed in Aspose.PDF for .NET 22.5.