Page 1 of 1

Error attempting to convert DOCX to PDF

Posted: Sat Mar 20, 2021 1:52 am
by IntegraHarlan
Hi,
I am tying to convert a docx file to a pdf.
I am using the sample code here: https://www.vintasoft.com/docs/vsimagin ... o_Pdf.html
When adding the file to the collection, I get an exception with the message: Wrong or unsupported image format.

imageCollection.Add(filePath)

I have verified that the file path is correct and that I have a valid DOCX file. the file was created with Office 365 Word.

We are using the VintaSoft Imaging .NET SDK with the office plug in for Winforms C#.
Any ideas why I am getting that error?

Thanks

Re: Error attempting to convert DOCX to PDF

Posted: Mon Mar 22, 2021 10:20 am
by Alex
Hi Harlan,

"Wrong or unsupported image format" error means that SDK was not able to able to create decoder for DOCX file. Please make sure that Vintasoft.Imaging.Office.OpenXml.dll assembly is located in "Bin" folder of your application.

Best regards, Alexander