.docx to PDF: are these images and shapes not yet supported?

1 Answer 38 Views
PdfProcessing WordsProcessing
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Jay asked on 13 Dec 2023, 04:47 PM

I'm trying to convert a word document to PDF and the images and shapes it contains, along with their text, do not make it into the PDF. Are these not yet supported? 

The attached zip contains the original document and the result of the conversion.

The conversion code is pretty straightforward, basically just

DocxFormatProvider docxProvider = new DocxFormatProvider();
var pdfProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
RadFlowDocument document = null;

using (Stream input = File.OpenRead("WordDocWithGraphics.docx"))
{
    document = docxProvider.Import(input);
}

using (Stream output = File.OpenWrite(("WordDocWithGraphics.pdf"))
{
    pdfProvider.Export(document, output);
}

1 Answer, 1 is accepted

Sort by
0
Accepted
Yoan
Telerik team
answered on 18 Dec 2023, 09:52 AM

Hi Jay,

Thank you for the provided resources, due to them I was able to reproduce the results you are describing on my end as well. After some investigation, I managed to identify the cause and it appears it is missing support by the WordsProcessing library. We already have feature request tasks logged in our Feedback Portal regarding the missing functionality causing this:

Please accept my apologies for the caused inconvenience. The best I can offer you in this situation is to cast your vote for the tasks in order to impact their priority and to subscribe to them so you can track their progress.

Regards,
Yoan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PdfProcessing WordsProcessing
Asked by
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Yoan
Telerik team
Share this question
or