VintaSoft PDF .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft PDF .NET Plug-in Discussions
When loading a PDF file that has a JPEG2000 image, i see a red box that contains the following text: Bad or unsupported image format.You have the problem because SDK has not found JPEG2000 decoder for decoding PDF image-resource, which is compressed with JPEG2000 compression.
JPEG2000 codec (Vintasoft.Imaging.Jpeg2000Codec.dll) is not found.
I do have the Vintasoft.Imaging.Jpeg2000Codec.dll referenced in my project. and the file is being copied to my bin folder.SDK dynamically loads JPEG2000 decoder from Vintasoft.Imaging.Jpeg2000Codec.dll if Vintasoft.Imaging.Jpeg2000Codec.dll file is found in the application executing (Bin) folder. I think the Vintasoft.Imaging.Jpeg2000Codec.dll file is not copied to the Bin folder. Please check this.
If I add the following line of code: using (Jpeg2000Decoder decoder = new Jpeg2000Decoder()) { } (As in the DemosTools class of the PdfEditorDemo solution) I do not see the image or the message.In this case you are creating static reference to the Vintasoft.Imaging.Jpeg2000Codec.dll file and MSBUILD copies Vintasoft.Imaging.Jpeg2000Codec.dll file into Bin folder.
Any ideas why the image is not showing?SDK does not render PDF image-resource with JPEG2000 compression because SDK cannot find JPEG2000 codec, i.e. SDK has not found Vintasoft.Imaging.Jpeg2000Codec.dll. Please make sure that Vintasoft.Imaging.Jpeg2000Codec.dll file is located in directory with your application.