- Home
- Forum
- ASP.NET Core - EJ 2
- Branched from ~ 196299 ~ Table not preserved properly while converting a Word document to PDF
Branched from ~ 196299 ~ Table not preserved properly while converting a Word document to PDF
Hi,
I have updated to last version v29.1.41 but i see the problem is not solved, still the tables are not showed correct over pdf file. I attached both files: docx and pdf.
Attachment: GeneratedDocs_7b399c93.zip
Hi Ciprian,
We have confirmed that the reported issue with "Table with
multiple nested table not preserved properly while converting DOCX 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 last
week of May 2025.
The status of this bug can be tracked through the below link:
Table
with multiple nested table not preserved properly while converting DOCX 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.
Ciprian,
We regret not including the fix for the issue "Table with multiple
nested table not preserved properly while converting DOCX to PDF" as
promised in the weekly release published on 27th May 2025. This fix will be
included in the next weekly release which will be available on 3rd
June 2025 without further delay.
However, custom NuGet was prepared with our fix. Kindly refer to the
attachment. We apologize for any inconvenience this may have caused and
appreciate your understanding.
Attachment: syncfusion.docio.net.core.29.2.7_83147dae.zip
Ciprian,
As promised earlier, we have included the fix for the reported issue with “Table
with multiple nested table not preserved properly while converting DOCX to PDF”
in our latest weekly NuGet release (v29.2.8).
Root cause of the issue:
The nested table is not preserved properly in the PDF because the combination
of point-based and percentage-based table and cell widths, along with cell
widths smaller than the maximum word width, causes layout issues during
conversion
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:
Table
with multiple nested table not preserved properly while converting DOCX to PDF
in ASP.NET Core | Feedback Portal
Note: We will include this fix in our 2025 Volume 2 main release, which
will be available in the mid of June 2025.
Hi,
now table is ok but i have problems with font type and size, over word template i set for the bookmark: font type = Tahoma and font size = 9.
Over html file i also set:
<html><head><style>body { font-family: Tahoma; font-size: 9pt; }</style></head><body>
But when i try to insert html inside word bookmark, if i save file as docx, font remain TImesNewRoman of 12 and if i save also as pdf the font become bigger respect to docx.
So there are 2 problems:
1) Font is changed and doesn't remain font setted inside bookmark or html file
2) When pdf is generated the font become more bigger than word generated file.
I attached entire project source code. You can see those 2 generated files: ResultDoc.docx and Result.pdf inside Data folder
Attachment: InsertHTMLatBookmarkLocation_c54f023a.zip
Hi Ciprian,
In this case, styles were applied through CSS in the HTML content. Currently
DocIO does not have support to “Preserving internal CSS selectors in HTML to
Word conversion”. We have already logged this as a feature request in our
database. We don’t have any immediate plans to implement this feature.
The status of the feature report can be tracked through the below link:
Support
for preserving internal CSS selectors in HTML to Word conversion in WinForms |
Feedback Portal
As a workaround, we recommend using inline styles within the HTML content. This
ensures proper preservation of font and other formatting styles during the
conversion process.
Regards,
Kathiresan.
Hi,
ok, i transformed css to inline styles so point 1 is solved. But about 2 the problem remain, Why there are differences between word file and pdf file?
This is how layout looks in pdf version, and is wrong, text is not fitting correct like word version. I attached code and you can see in Data folder both files: word and pdf.
Attachment: InsertHTMLatBookmarkLocation_660ebb38.zip
Hi Ciprian,
We have reproduced the reported issue “Table not preserved properly while
converting a word document to PDF” in our end. We will validate this issue
and update you with more details within 2 days.
Regards,
Keerthana.
Ciprian,
We have confirmed that the reported issue “Nested table cell width not
preserved properly 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 mid of October
2025.
The status of this bug can be tracked through the below link:
Nested
table cell width not preserved properly 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,
Keerthana.
Ciprian,
As promised earlier, we have included the fix for the reported issue with “Nested
Table cell width not preserved properly while converting a Word document to PDF”
in our latest weekly NuGet release (v31.2.3).
Root cause of the issue:
In the input document, nested tables have none preferred width cells. Instead
of maximum word width, used preferredwidth of the column. So, the table was not
preserved properly.
Please use the below link to download our latest weekly NuGet:
Syncfusion.DocIO.Net.Core
The status of this bug can be tracked through the below link:
Nested
table cell width not preserved properly while converting a Word document to PDF
in ASP.NET Core | Feedback Portal
Regards,
Kathiresan.
- 9 Replies
- 4 Participants
-
CI Ciprian-Catalin
- May 8, 2025 08:12 AM UTC
- Oct 23, 2025 02:45 PM UTC