Load PDF file in AnnotationViewer

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

Moderator: Alex

Post Reply
minalchaniara
Posts: 9
Joined: Mon Sep 25, 2023 6:20 pm

Load PDF file in AnnotationViewer

Post 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());
    }
}
Alex
Site Admin
Posts: 2319
Joined: Thu Jul 10, 2008 2:21 pm

Re: Load PDF file in AnnotationViewer

Post 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
minalchaniara
Posts: 9
Joined: Mon Sep 25, 2023 6:20 pm

Re: Load PDF file in AnnotationViewer

Post by minalchaniara »

Thank you for reply.
I have already referenced Vintasoft.Imaging.Pdf in my .Net code.
minalchaniara
Posts: 9
Joined: Mon Sep 25, 2023 6:20 pm

Re: Load PDF file in AnnotationViewer

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

Re: Load PDF file in AnnotationViewer

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