- Home
- Forum
- ASP.NET Core - EJ 2
- When converting Word to PDF images are nt properly displayed
When converting Word to PDF images are nt properly displayed
Hello
I have an issue when converting a Word file to PDF and images are placed at the bottom of a page they are not correctly displayed.
Using the latest version(28.2.11)
using following code to convert to pdf
public static byte[] ToPdf(this WordDocument wordDocument)
{
var render = new DocIORenderer();
var pdfDocument = render.ConvertToPDF(wordDocument);
var ms = new MemoryStream();
pdfDocument.Save(ms);
return ms.ToArray();
}
Attachment: data_9b7b1907.zip
Hi Seppe,
We have reproduced the reported problem “When converting Word to PDF images are not properly displayed” in our end. We will validate this issue and update you with more details within two days.
Regards,
Sivakumar. A
Seppe,
We have confirmed that the reported issue with “Images are not positioned
properly due to NUMPAGES field while converting a Word document to PDF” is
a defect and we have logged a defect report. We will include the fix for this
defect in our weekly NuGet release, which is estimated to be available on second week of April 2025.
The status of this bug can be tracked through the below link:
Images
are not positioned properly due to NUMPAGES field while converting a Word
document to PDF in ASP.NET Core | Feedback Portal
Disclaimer: Inclusion of this solution in the weekly release may
change due to other factors including but not limited to QA checks and works
reprioritization.
Regards,
Sindhu Ramesh.
Okay thank you!
Seppe,
As promised earlier, we have included the fix for the reported issue with “Images
are not positioned properly due to NUMPAGES field while converting a Word
document to PDF” in our latest weekly NuGet release (v29.1.37).
Root cause of the issue:
The input Word document contains images and a NUMPAGES field. During the
Word-to-PDF conversion using the DocIO library, the images are mispositioned at
the bottom of the same page, causing the reported issue.
Please use the below link to download our latest weekly NuGet:
Syncfusion.DocIORenderer.Net.Core
The status of this bug can be tracked through the below link:
Images
are not positioned properly due to NUMPAGES field while converting a Word
document to PDF in ASP.NET Core | Feedback Portal
Note: We will include this fix in our 2025 Volume 1 SP release, which
will be available in the mid of May 2025.
- 4 Replies
- 4 Participants
-
SV Seppe Vandaele
- Mar 12, 2025 01:43 PM UTC
- Apr 8, 2025 04:53 PM UTC