Hi,
I have scanned an image at 300dpi from a newspaper and now want to display it in pdf, but to scale it as it looks in the paper.
Some other pdf components have a function such as “ScaleToInches” etc.
I cannot find any such function with Aspose.
Is there a formula i can use to resize the image myself so that it will look the same or similar in scale as it was in the paper??
For example, the attached image was scanned at 300dpi, but if put in the pdf it will not reflect the true size on paper.
Many thanks.
Hello Gary,
Thanks for considering Aspose.
Please try using the ImageScale property of Image class to accomplish your requirement. I’ve also attached a resultant PDF file that I’ve generated while setting ImageScale value to 2.0F.
I would also recommend you to have a look over the following article How to Convert an Image to PDF which contains the related information.
In case it does not satisfy your requirement or you have any further query, please feel free to share.