Extra Page is Created when Document with Section Breaks (Odd Page) is Save to PDF using .NET

Hi,

We have encountered with wrong conversion of Word document into any PDF standard. When the original Word file has section break (Section Breaks (Odd Page)) then the resulted PDF file has one more page.

Steps to reproduce :

  • Create a Word document with Section Breaks (Odd Page)
  • Try to convert this document to any PDF standard

Actual result

The original Word file has only 2 pages, but the converted PDF file is a 3-page document

Expected result

Resulted PDF file is similar to Word document and contains the same page number

Content :

  • input.docx - the original file
  • result. pdf – the resulted PDF file
  • Program.cs – the example of the code for conversion
    content.zip (13.8 KB)

Please, note, we are using:
Aspose.Word v. 21.5.0.0

Could you please advise us with the current behavior?

Best regards,

Alexander

@uaprogrammer

Please note that Aspose.Words mimics the behavior of MS Word. If you convert your document to PDF using MS Word, you will get the same output.