XImage theImg = new XImage();
Doc doc = new Doc();
theImg.SetFile(Server.MapPath("../mypics/multipage.tif"));
for (int i = 1; i <= theImg.FrameCount; i++) {
theImg.Frame = i;
doc.Page = doc.AddPage();
doc.AddImageObject(theImg, false);
}
theImg.Clear();
doc.Save(Server.MapPath("imageframe.pdf"));
doc.Clear();
XImage theImg = new XImage();
Doc doc = new Doc();
theImg.SetFile(Server.MapPath("../mypics/multipage.tif"));
for (int i = 1; i <= theImg.FrameCount; i++) {
theImg.Frame = i;
doc.Page = doc.AddPage();
doc.AddImageObject(theImg, false);
}
theImg.Clear();
doc.Save(Server.MapPath("imageframe.pdf"));
doc.Clear();