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

Save/Burn web annotation on same file

Last post 11 Apr 2007, 5:04 PM by David Cilley. 3 replies.
Sort Posts: Previous Next
  •  09 Apr 2007, 2:38 PM 11814

    Save/Burn web annotation on same file

    I am totally new to DotImage and getting 5.0 for our project. Before that I am working on evalution version to check if I can acheive, what my project needs. Basically I am trying to perform following on an ASPX page:
    1. Open a mutlipage tiff image from sharepoint (this can be done thru openurl method).
    2. Make annotations on this tiff file (can be done thru various annotation functions provided)
    3. Now burn these annotations or save them on the same tiff file which was opened thru sharepoint and save the file back to sharepoint.
    I guess point 1 & 2 can be done so I have all the questions related to point 3. I think that there is no burn method for webannotationviewer, then how can we save all annotations on same file? It always stores them seperately, isnt there a way to let it save on same file?
    If you can provide me the sample code for webannotationviewer to save the annotations on the original file in sharepoint or server, then it would be of great help and highly appreciated.
    I have seen David Cilley's sample project for buring the annotations but he suggests that it shouldnt be used for high traffic, so I cant use that.

    I need the confirmation of this feature ASAP so that I can go ahead with the purchase. Thanks Much in advance.

  •  09 Apr 2007, 4:50 PM 11815 in reply to 11814

    Re: Save/Burn web annotation on same file

    That is correct, there currently is no burn method for the WebAnnotationViewer specifically.  Usually burning the annotations onto the image is bad if you ever want to be able to move those annotations again.  Is that specifically what you want?

    You can save the annotations by embedding them into a tiff.  The following kb article goes over the process, and you can use code similar to this with the WebAnnotationViewer.

    http://www.atalasoft.com/kb/article.aspx?id=10111

    To get the annotation data back from the image, you can use the XmpParser class.

     


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
  •  09 Apr 2007, 5:14 PM 11816 in reply to 11815

    Re: Save/Burn web annotation on same file

    Hi David,

    Thanks so much for your response. I was hoping to get your expert comments on this issue.

    Yes, we specifically want not to change the annotation text/position once its saved by one user, so that whenit goes to next user, he/she wont be able to make any changes to earlier annotations. Hence we would like to use the "burning" capability for webannotateviewer.

    That article in KB seems to be for annotateviewer not webannotateviewer. When I try to use the code mentioned in that KB article it gives error at following point:

    byte[] data = this.WebAnnotationViewer1.Annotations.Save(mem, new Atalasoft.Annotate.Formatters.XmpFormatter());

    Error:
    "Cannot implicitly convert type 'void' to 'byte[]'"

    Please advice.

    Thanks Much again.

  •  11 Apr 2007, 5:04 PM 11830 in reply to 11816

    Re: Save/Burn web annotation on same file

    Here is a kb article that explains how you can burn annotations in the WebAnnotationViewer:

    http://www.atalasoft.com/kb/article.aspx?id=10164&cNode=5M3M7A


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
    Filed under: ,
View as RSS news feed in XML