following code produce extra blank pages after pages p64 and p70 resulting in 78 pages while the original document is 76 pages.
using (var fs = File.Open(“input.docx”, FileMode.Open, FileAccess.Read, FileShare.Read))
Aspose.Words.Saving.PdfSaveOptions options = new Aspose.Words.Saving.PdfSaveOptions();
options.SaveFormat = SaveFormat.Pdf;
options.DmlRenderingMode = Aspose.Words.Saving.DmlRenderingMode.DrawingML;
var doc = new Aspose.Words.Document(fs);
We use Aspose.Words.16.7.0. Test file attached
Thanks for your inquiry. Please note that Aspose.Words requires TrueType fonts when rendering documents to fixed-page formats (JPEG, PNG, PDF or XPS). You need to install fonts on the machine where you’re converting documents to Pdf. Please refer to the following article:
If you still face problem, please share following fonts here for testing. We will investigate the issue on our side and provide you more information.
- ＭＳ 明朝
- ＭＳ ゴシック
- ＭＳ Ｐゴシック
- ＭＳ Ｐ明朝
- MS PGothic