Shrink images from pdf file?

Hi.


How can I rezise an image from pdf file?
I’m converting email files to pdf, but some of these e-mails have images in the body and when aspose convert email to pdf he doesn’t shrink these images based in the pdf margins.
Any idea how to fix this issue?

Cheers,

Hi Marcelo,

You can use PageSetup class exposed by Aspose.Words to change paper size or margins. Please check PageSetup and Section formatting heading for more details and share your input email and expected output document for further analysis.

Best Regards,

Hi Muhammad.


Thanks for the answer.
But PageSetup is just for word documents, is that right?
In my case I’m coverting an eml file to pdf, and in the body of this e-mail there is a image and when we convert to pdf, this image is too big for the page.

Hi Marcelo,

To convert email to PDF, you first convert email to MHTML using Aspose.Email and then use Aspose.Words to convert MHTML to PDF.

PageSetup can be used after loading MHTML file in Aspose.Words.Document object and then you can convert updated document to PDF.

Best Regards,