VintaSoft Office .NET Plug-in Discussions

Questions, comments and suggestions concerning VintaSoft Office .NET Plug-in.

Board index < VintaSoft Imaging < VintaSoft Office .NET Plug-in Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Error attempting to convert DOCX to PDF



Error attempting to convert DOCX to PDF

Post 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

Post 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


Page 1 from 1: 1