Page 1 of 1

Load PDF file in AnnotationViewer

Posted: Mon Feb 19, 2024 5:28 pm
by minalchaniara
Hello,

I am trying to load tiff file and PDF file using below code snippet. Tiff file successfully loaded but PDF is not load and getting error like Wrong or Unsuported image format. Would you please guide on the same.

Code: Select all

private void OpenFileAsynchronously()
{
    try
    {
        UseWaitCursor = true;

        annotationViewer1.Images.Add(_sourceFilename, _isFileReadOnlyMode);
        annotationViewer1.DisplayMode = ImageViewerDisplayMode.SinglePage;
        annotationViewer1.SizeMode = ImageSizeMode.Normal;
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message.ToString());
    }
}

Re: Load PDF file in AnnotationViewer

Posted: Tue Feb 20, 2024 9:59 am
by Alex
Hello,

If you want to load PDF document, your .NET application must have reference to Vintasoft.Imaging.Pdf nuget-package.

Best regards, Alexander

Re: Load PDF file in AnnotationViewer

Posted: Tue Feb 20, 2024 6:15 pm
by minalchaniara
Thank you for reply.
I have already referenced Vintasoft.Imaging.Pdf in my .Net code.

Re: Load PDF file in AnnotationViewer

Posted: Wed Feb 21, 2024 2:51 pm
by minalchaniara
I have checked Vintasoft.Imaging.pdf is not available in our license version. We have license for Imaging .NET SDK (for Windows) and Plug ins for Annotation .NET Plug-in.

Do we require to separate purchase for PDF(PDF .NET Plug-in).

Thank you.
Minal

Re: Load PDF file in AnnotationViewer

Posted: Thu Feb 22, 2024 8:42 am
by Alex
Yes, you need have License for VintaSoft PDF .NET Plug-in if you want to use VintaSoft PDF .NET Plug-in (Vintasoft.Imaging.Pdf.dll file) in your .NET application. More info please read in the license agreement: https://www.vintasoft.com/vsimaging-dot ... ense.html

Best regards, Alexander