File extension after annotation save

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

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

File extension after annotation save

Post by minalchaniara »

Hi,
As we are saving annotation in our application using vintasoft. We want to know which file extension it is saved and where we can find that annotated file.

Thank you,
Minal
Alex
Site Admin
Posts: 2324
Joined: Thu Jul 10, 2008 2:21 pm

Re: File extension after annotation save

Post by Alex »

Hi Minal,

Please read about annotations, which are supported by VintaSoft Annotation .NET Plug-in, here: https://www.vintasoft.com/docs/vsimagin ... _Load.html

Best regards, Alexander
minalchaniara
Posts: 12
Joined: Mon Sep 25, 2023 6:20 pm

Re: File extension after annotation save

Post by minalchaniara »

Hi Alex,

I have tried to save .vsab file using given reference but when I tried to open the same file using Vintasoft I am not able to see my annotation saved in .vsab. Below is my function for save.

Code: Select all

try
{
    if (multipage)
        // get image encoder for multi page image file
        encoder = GetMultipageEncoder(_sourceFilename, true, saveAndSwitchSource);
    // if single image must be saved
    else
        // get image encoder for single page image file
        encoder = GetEncoder(_sourceFilename, true);

    // if encoder is found
    if (encoder != null)
    {
        encoder.SaveAndSwitchSource = saveAndSwitchSource;
        AnnotationViewer.Images.SaveSync(_sourceFilename, encoder);
    }
    else
    {
        MessageBox.Show("Image encoder is not found.");
    }
}
catch (Exception ex)
{
    MessageBox.Show("Error while saving");
}
Alex
Site Admin
Posts: 2324
Joined: Thu Jul 10, 2008 2:21 pm

Re: File extension after annotation save

Post by Alex »

Hello,

VintaSoft Annotation .NET Plug-in can save Vintasoft-annotations in annotation packet in Vintasoft Binary annotation format.

Annotation packet in Vintasoft Binary annotation format can be saved separately to a file with file extension ".vsab".

Also annotation packet in Vintasoft Binary annotation format can be saved in metadata of TIFF page.

In your code you are saving annotations to a TIFF file, i.e. you save annotations as annotation packet in Vintasoft Binary annotation format in TIFF page.

Do you display TIFF file with VintaSoft annotations in Vintasoft annotation viewer or in other viewer?

Best regards, Alexander
minalchaniara
Posts: 12
Joined: Mon Sep 25, 2023 6:20 pm

Re: File extension after annotation save

Post by minalchaniara »

Hi Alex,

Thank you for response.

We want to display TIFF file with VintaSoft annotations in Vintasoft annotation viewer.
Alex
Site Admin
Posts: 2324
Joined: Thu Jul 10, 2008 2:21 pm

Re: File extension after annotation save

Post by Alex »

Hello,

Thank you for information.

Please evaluate VintaSoft Annotation Demo ("[SdkInstallPath]\VintaSoft\Imaging .NET v12.4\Bin\DotNet4\AnyCPU\AnnotationDemo.exe") and see how demo works. Demo allows to open image, add VintaSoft annotations to an image, save image with VintaSoft annotations to a TIFF file, open created TIFF file with annotations.

If you cannot solve your problem, please send us (support@vintasoft.com) small working project, which demonstrates your problem.

Best regards, Alexander
Post Reply