I'm trying to import a TIF image as a native document. The entire document gets uploaded, but only the first page is viewable. In looking at the files, it seems that I need to break the original document into pages, and import each one separately. Is there a way to do this automatically? If not, what is the best way to identify the page breaks within the raw TIF data?
Here is the code I'm using:
Dim myImage As Byte() = File.ReadAllBytes(zFilename) Dim myPageInfo As PageInfo = myDocumentInfo.AppendPage Dim myPageStream As Stream = myPageInfo.WritePagePart(PagePart.Image, myImage.Length) myPageStream.Write(myImage, 0, myImage.Length) myPageStream.Dispose() myPageInfo.Save()