•  
  •  
  •  
 

Query related to Annotations saving

Last post 04 Feb 2010, 6:15 AM by kyk@zensys.com.br. 2 replies.
Sort Posts: Previous Next
  •  30 Oct 2009, 2:22 AM 19581

    Query related to Annotations saving

    In the WebAnnotationExample sample application you have provided, there is function

    public int GetFrameCount(string filename)

    {

    int frameCount = -1;

    using (FileStream ms = new FileStream(_baseDocsDir + filename, FileMode.Open))

    {

    frameCount = Atalasoft.Imaging.Codec.Tiff.TiffFile.GetPageCount(ms);

    }

    return frameCount;

    }

     How we can do this, if we have JPEG image in place here?

  •  30 Oct 2009, 9:55 AM 19586 in reply to 19581

    Re: Query related to Annotations saving

    Since JPEG's don't support multiple pages, the answer would be 1 if the image existed.
  •  04 Feb 2010, 6:15 AM 20129 in reply to 19586

    Re: Query related to Annotations saving

     

    ...
                    if (Session["Atalasoft_File"].ToString().EndsWith("PDF"))
                    {
                        frameCount = Atalasoft.Imaging.Codec.Pdf.???.GetPageCount(ms);
                    }

    ...

    How we can do this, if we have PDF image in place here?

     

     

View as RSS news feed in XML