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

Free Support Forum - aspose.com

Problems with Aspose save to PDF

We have found an issue regarding some pdfs get errors in the page layout after we stamped them for release.

Upon investigation we have narrowed it down to that when Aspose creates a PDF based on the document it is adding an extra page break after the header line in a table.
Or to be more precise, Aspose is adding an extra page break before the first line where a “Heading 3” has been used to add a numbering to the table.

But since that is the first line with data in that table it is just writing the header line on the first page. the second page gets the Header line and the rest of the lines from the table.

The setting which is enforcing this behaviour is the font paragraph setting “Keep with next”.

If you deselect that setting the table will appear on the previous page in Word and Aspose will treat it as normal.
But with that setting on the table is placed on a new Page in Word! But Aspose puts an extra empty page (Just containing the header line) before the actual table.

It is only Aspose that is adding the extra page.

We are currently using Aspose 21.2.0

The error has also been verified on Aspose version 21.4.0

Has anyone come across this issue before?


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

  • Your input Word document.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

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

Heading Error example.zip (678.6 KB)
Attached is an example Word file with the “fault” available to test.
Also 3 pdfs.

  1. created by Aspose 21.2.0
  2. Created with Save as pdf from word
  3. created with MS Print to pdf.


We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-22151. 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-22151) have been fixed in this Aspose.Words for .NET 21.9 update.