Free Support Forum - aspose.com

When word convert jpg highly and width is too big

The following:
Aspose.Words.Document m_doc = Aspose.Words.Document(@path);
Aspose.Words.SaveFormat p = Aspose.Words.SaveFormat.Jpeg;
Aspose.Words.Saving.ImageSaveOptions PIO = new Aspose.Words.Saving.ImageSaveOptions§;
PIO.SaveFormat = Aspose.Words.SaveFormat.Jpeg;
PIO.PageIndex = nStars;
PIO.PageCount = nEnds;
PIO.JpegQuality = 100;
PIO.Resolution = 300;
Aspose.Words.Saving.SaveOutputParameters get_result = m_doc.Save(SavaName + nStars + “.jpg”, PIO);
PIO.Clone();

The generated image highly = 2480,width = 3508
How to set highly and width ?
thanks.!

@Liangsb

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output image file that shows the undesired behavior.
  • Please attach the expected output shows the desired behavior.

Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.