Excel spreadsheet in Word document not rendering when converting to pdf

Hello, I have some docx files that contains an embedded excel spreadsheet, when I try to convert the document to pdf the generated pdf is not rendering the table, I have attached  screenshots  of the generated and the original, is there a way to fix this?

generated pdf

pdf.png

original document

word.png


1 Reply

SB Sneha Biju Syncfusion Team December 7, 2023 07:25 AM UTC

Hi George,

From the given details, we found that the Excel is embedded into the Word document as an OLE object. In an OLE object, the preview image will be in a metafile format. We suspect that you are converting Word to PDF using .NET Core application. In .NET Core or .NET targeting applications, metafile (.wmf, *.emf) and TIFF images have some limitations in DocIORenderer. Internally, DocIORenderer uses the SkiaSharp graphics library to layout the text and images in PDF/Image conversion. And SkiaSharp library doesn’t support the metafile (“.emf”, “*.wmf”) and TIFF images, so it doesn’t preserve the images in the mentioned applications.

You can also refer to the
UG documentation to know about this.
https://help.syncfusion.com/file-formats/docio/faq#why-images-are-preserved-as-redx-images-in-word-to-pdfimage-conversion

If you are using the .NET Framework, we suggest using the respective NuGet packages as we support metafile images (in DocToPDFConverter) during Word to PDF conversion in the .NET Framework.

You can refer to the below documentation to know more about the required NuGet packages.
https://help.syncfusion.com/file-formats/docio/nuget-packages-required#converting-word-document-to-pdf

Regards,
Sneha.


Loader.
Up arrow icon