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

Free Support Forum - aspose.com

Converting a DOCX to PDF | Save to temporary DOCX in Memory & Reload DOCX and Convert again to PDF using C# .NET

I have a Word document that if loaded and saved as PDF gives a result, but if I use a temporary DOCX file, gives a different result.

These are the sequences:
Test 1

  • load DOCX
  • call UpdateTableLayout()
  • save as PDF

Test 2

  • load DOCX
  • call UpdateTableLayout()
  • save as DOCX
  • reload DOCX
  • save as PDF

The output PDF files from Test 1 and Test 2 are different.
Note the it seems to happen only if I call UpdateTableLayout() after the original document load.
Note also that opening the temporary DOCX file in Word, it seems visually identical to original one, but comparing the contents of the ZIP file manually they are not equal.

Tested with Aspose.Words 20.3 and Word 2013.

See attached files for the example:
DOCX to PDF with temp DOCX.zip (73.4 KB)

This issue could be related to this other one that I reported 2 days ago:


You are right, the PDF outputs produced in both scenarios are different. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-20111. Your thread has been linked to this issue and you will be notified as soon as it will be resolved. Sorry for the inconvenience.