- Home
- Forum
- ASP.NET MVC - EJ 2
- Converting DOCX to PDF adds unnecessary line above footnotes
Converting DOCX to PDF adds unnecessary line above footnotes
Hello,
we are using syncfusion nuget packages to convert docx to pdf.
versions:
id="Syncfusion.EJ2.PdfViewer.AspNet.Mvc5" version="23.2.4" targetFramework="net48" />
id="Syncfusion.DocIO.AspNet.Mvc5" version="23.2.4" targetFramework="net48" />
id="Syncfusion.DocToPdfConverter.AspNet.Mvc5" version="23.2.4" targetFramework="net48" />
id="Syncfusion.EJ2.WordEditor.AspNet.Mvc5" version="23.2.4" targetFramework="net48" />
id="Syncfusion.Licensing" version="23.2.4" targetFramework="net48" />
id="Syncfusion.OfficeChartToImageConverter.AspNet.Mvc5" version="23.2.4" targetFramework="net48" />
id="Syncfusion.Pdf.AspNet.Mvc5" version="23.2.4" targetFramework="net48" /> Problem:
We have docx document which intentionally doesn't have line above footnotes.
After converting it to PDF using syncfusion libs the line is added and result PDF file have this line above footnotes which we don't want to have.
Code:
public class PdfConverter : IPdfConverter
{
public Tuple<byte[], int> Convert(byte[] fileBytesDocx)
{
using MemoryStream msDocx = new MemoryStream(fileBytesDocx);
using MemoryStream msPdf = new MemoryStream();
WordDocument wordDocument = new WordDocument(msDocx, FormatType.Automatic);
wordDocument.ChartToImageConverter = new ChartToImageConverter();
DocToPDFConverter converter = new DocToPDFConverter();
PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument);
int pages = pdfDocument.Pages.Count;
pdfDocument.Save(msPdf);
pdfDocument.Close(true);
wordDocument.Close();
msPdf.Position = 0;
return new Tuple<byte[], int>(msPdf.ToArray(), pages);
}
}
Im adding files and code to reproduce the problem.
Attachment: Files_52f59c2e.zip
Hi Cezary,
We have reproduced the reported problem “Line above footnote is added while
converting a Word document to PDF” in our end. We will validate this issue
and update you with more details on 27th November 2023.
Regards,
Sneha.
Cezary, we
have confirmed that the reported issue with “End note separator color
is not preserved properly while converting the 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 12th December 2023.
The status of this bug can be tracked through the below link:
https://www.syncfusion.com/feedback/48804/end-note-separator-color-is-not-preserved-properly-while-converting-the-word
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.
Cezary, as promised earlier, we have
included the fix for the reported issue with “End note separator color is not
preserved properly while converting the Word document to PDF” in our latest weekly NuGet release (v23.2.7).
Please use the below link to download our latest weekly
NuGet:
https://www.nuget.org/packages/Syncfusion.DocToPdfConverter.AspNet.Mvc5/23.2.7
The status of this bug task can be tracked through the
below link:
https://www.syncfusion.com/feedback/48804/end-note-separator-color-is-not-preserved-properly-while-converting-the-word
Note: We
will include this fix in our 2023 Volume 4 Main release, which will be
available in the mid of December 2023.
- 3 Replies
- 2 Participants
-
CS Cezary Szacherski
- Nov 22, 2023 09:28 AM UTC
- Dec 12, 2023 09:44 AM UTC