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
Error attempting to convert DOCX to PDF
Moderator: Alex
-
- Posts: 85
- Joined: Fri Jan 24, 2020 3:37 am
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Error attempting to convert DOCX to PDF
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
"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