Free Support Forum - aspose.com

Convert PDF to Tiff using Aspose.PDF for .NET - reduces the output dimensions of large pdf

Hi,

Attachment: ShrinkTiff.zip (7.0 MB)

I am converting a large page pdf (42in x 30 in) document to tiff using TiffDevice. I am setting the resolution to 300. Aspose outputs a tiff at half the size.
I am expecting 12600 w x 9000 h pixels at 300x300 dpi. Instead I am getting 6300 w x 4500 h at 300 x 300 dpi, which is exactly half the size.
I am including the sample code and pdf to generate this.

I also tried to correct this by going through the pages, getting the pages size via Rect.Width and Rect.Height, then producing tiff images for each page. I left my commented code in the attachment.
The issue here is sometimes I get the wrong information back as detailed in this ticket:

Output from my sample code:
Expected Output:
Pixel Width: 12600
Pixel Height: 9000

Actual Output:
Pixel Width: 6300
Pixel Height: 4500

Thank you,
Charles

@ccuster68

Thanks for contacting support.

We have logged an investigation ticket as PDFNET-47761 in our issue tracking system for this scenario. We will further look into details of it and keep you posted with the status of ticket resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.