Hi Clive,
Thanks for your inquiry and sorry for the delayed response. Perhaps, in your case addition of the following code would be helpful to you:
doc.Sections[0].PageSetup.PageHeight
= Aspose.Words.ConvertUtil.PixelToPoint(Aspose.Words.ConvertUtil.PixelToNewDpi(2320,
imgOptions.Resolution, 96));
doc.Sections[0].PageSetup.PageWidth
= Aspose.Words.ConvertUtil.PixelToPoint(Aspose.Words.ConvertUtil.PixelToNewDpi(1728,
imgOptions.Resolution, 96));
foreach (Table tab in
doc.FirstSection.Body.Tables)
{
tab.AutoFit(AutoFitBehavior.AutoFitToContents);
}
Aspose.Words.Saving.SaveOutputParameters p = doc.Save(outputfullpath,
imgOptions);
Please let me know if I can be of any further assistance
Best Regards,
Awais Hafeez
Support Developer
Aspose Sialkot Team
Aspose - Your File Format Experts
Keep in touch! We're on
Twitter and
Facebook