Pdf to Word conversion not working correctly on .Net Core


When we try converting a document from Pdf to Word, the result is different depending on which framework the librairy runs.
When converting on .Net Framework 4.8, everything seems fine, but it is not the case when doing the same thing on .Net 6. In fact, every version of .Net Core does the same thing, not specifically .Net 6. It only seems to work on .Net Framework (we tried only the version 4.8).

Here is the original document on the left side and the converted document on the right side, using .Net 6. It has only one page for test purposes :

When converting this document on .Net Framework, the resulting Docx document is correct.

On .Net Core, the background image is not there, but the text looks fine.
We are using C#, with the latest version of Gembox.Document (35.0.1331). The code doing the conversion is the same as presented on this page : Convert PDF to Word (DOCX) from C# / VB.NET applications

It is a real problem for us. Our application is entirely on .Net 6 and we cannot easily add a dependency to .Net Framework just to be able to convert a document from Pdf to Word.

Your help would be greatly appreciated.


Hi Mathieu,

Can you please send us a small Visual Studio project (together with your PDF file) that reproduces this issue so that we can investigate it?

You can send it with an email or with a support ticket, see our Contact page.


1 Like

The issue was resolved with this bugfix:

Or this NuGet package:
Install-Package GemBox.Document -Version 35.0.1349-hotfix