Aspose.pdf.dll for .Net and Aspose.word.dll for .Net : merge file to single pdf having intermittent issues

Hi Aspose Support Team,

We have been using a console application developed with .NET Framework 3.5, utilizing Aspose.PDF.dll (8.0.0) for >net and Aspose.Words.dll (13.2.0) for .Net to merge template PDFs and Word files into a single PDF for a set of employees.

This system has been operating in production without issues since 2020.

However, over the past three months, we have encountered the following intermittent issues in the output PDFs:

  • Blank pages appearing in the final merged PDFs
  • Misaligned text within the merged documents
  • Occasional corruption of the output PDFs

Notably, when we re-run the application with the same template PDFs and Word files, the issues often resolve, resulting in successful PDF creation.

For instance, when processing documents for 30 employees, one or two PDFs may exhibit the issues, but upon re-running, they are generated correctly.

Additionally, since each output PDF contains more than 60 pages, manually verifying each one is impractical, making this a critical production issue.

What steps can we take to permanently fix this issue ?

Could you please let us know why we are encountering this issue and the possible fix for the same ?

And why it is working when we run for second time ?

Thanks,

Jiji

@jijikkt Could you please attach your input and output documents here for testing? We will check the issue and provide you more information.

input_output_files.zip (4.5 MB)

Hi Alexy,
I have attached the input/output documents for your reference.
Confidential information are masked or removed.

Thanks,
Jiji

@jijikkt Thank you for addition information. But could you please also provide a simple code that will allow us to reproduce the problem on our side?

In additional, you are using really old versions of Aspose.Words and Aspose.PDF. I would suggest you to update to the latest versions of Aspose.Words and Aspose.PDF. You should note that we do not provide any fixes or improvements for old versions.

Attached code.
code.docx (15.1 KB)

@jijikkt Thank you for additional information. As I can see you fill MS Word documents with data, convert them to PDF and then merge the resulting PDF documents to one PDF document using Aspose.PDF. Could you please check whether PDF produced by Aspose.Words has blank pages? If so, please try saving the output document produced by Aspose.Words to DOCX and PDF and attach these documents here for testing?

In addition, please try using the latest versions of Aspose.Words and Aspose.PDF.