Background and images in 300 DPI


I'm currently trying out the ASPose.PDF and came to a problem when using JPEG images of 300 DPI.

The first one is in A5 size but when used as a background image it generates a much larger page (about 3x as large).

Is there a setting somewhere to allow higher than 72 dpi and still keep the dimensions?



Dear nikita,

Thank you for considering Aspose.

You can use BackgroundImageFixedWidth to set the fixed width of the background image. But your background image must has the same width/height proportion with the page’s. Aspose.Pdf will not change the background image’s width/height proportion to fit the page.


Thank you, that works fine.