Error attempting to convert DOCX to PDF

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
IntegraHarlan
Posts: 84
Joined: Fri Jan 24, 2020 3:37 am

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
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

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
Post Reply