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

Free Support Forum - aspose.com

Extra pages are added after DOCX to PDF conversion using .NET

Hi,
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);

doc.Save(“output.pdf”, options);
}

We use Aspose.Words.16.7.0. Test file attached

@dasupport

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:

Manipulating and Substitution TrueType Fonts

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 明朝
  • MS ゴシック
  • MS Pゴシック
  • MS P明朝
  • HG正楷書体-PRO
  • MS PGothic
Hi Tahir,

Would you please find the set of fonts and test file attached. Issue is still reproducible so update us with the estimate please.

XDAS-124
Hi Matt,

Thanks for sharing the detail. We have tested the scenario using latest version of Aspose.Words for .NET 17.1.0 and noticed that the page number 29 is empty in output pdf.

For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14750. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-14750) have been fixed in this Aspose.Words for .NET 20.7 update and this Aspose.Words for Java 20.7 update.