Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Opening a single frame with annotations

Last post 15 May 2008, 9:48 PM by Glenn. 1 replies.
Sort Posts: Previous Next
  •  14 May 2008, 2:37 AM 14021

    Opening a single frame with annotations

    I created a three-page TIFF image with annotations (using the DotAnnotate Demo).

    When I try to load only the second page (frameIndex=1) with the AnnotateViewer Open-Method an Exception is thrown. I tried it with MultipageAnnotateMode = True or False.

    What am I missing here?

     MyAnnotateViewer.Open( filename, 1, True )

    =>

    System.ArgumentOutOfRangeException

    Invalid index for this collection.
    Parametername: index

    Tatsächlicher Wert war 1.   at Atalasoft.Annotate.UI.LayerCollection.Insert(Int32 index, LayerAnnotation layer)

       at Atalasoft.Annotate.UI.Importers.XmpAnnotationImporter.LLImport(Int32 page)
       at Atalasoft.Annotate.UI.Importers.AnnotationImporter.Import(Int32 page)
       at Atalasoft.Annotate.UI.AnnotateViewer.ImportAnnotations(AnnotationImporter importer, Int32 frameIndex)
       at Atalasoft.Annotate.UI.AnnotateViewer.Open(Stream stream, Int32 frameIndex, Boolean loadAnnotations)
       at Atalasoft.Annotate.UI.AnnotateViewer.Open(String fileName, Int32 frameIndex, Boolean loadAnnotations)
     

     

    Filed under:
  •  15 May 2008, 9:48 PM 14061 in reply to 14021

    Re: Opening a single frame with annotations

    I've been able to duplicate this.  My guess is that the XmpAnnotationImporter is assuming that all pages and a layer for each page is setup, causing it to error when it tries to access layer index 1.

    For now you will have to load all pages with MultipageAnnotateMode set to true.


    Glenn Chittenden Jr.
    Atalasoft Development Team
View as RSS news feed in XML