We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to adjust the image when add it into the document

I have test your example ImageToPdf in words .net, it works to add an image and output the pdf, my question when I use and jpeg from an A4 scanner, I should expect its size should be the same as one pdf page or word page but it was not, can you guide me how to fulfill the a4 jpeg image to a document page(like stretch or Auto full). Thanks. (the image pixels is 2632 x 1912 FYI)


Hi Markwe,

Thanks for your inquiry. Please use PageSetup.PageHeight and PageSetup.PageWidth properties to set the page height and width according to image size. I suggest you please check the second code example in following documentation link. Hope this helps you.
http://www.aspose.com/docs/display/wordsnet/How+to+Convert+an+Image+to+PDF

Could you please attach your input and expected output Word document along with image here for our reference? We will investigate how you want your final Word output be generated like. We will then provide you more information on this along with code.