Type Default Value Read Only Description
Long 1 No The currently selected frame.




Some file formats can contain more than one image. The FrameCount property reflects the number of images.

You can change the currently selected image using the Frame property. As you change the frame, the Width, Height, HRes and VRes properties will change to reflect the dimensions and resolution of the currently selected image. When you add an Image using the Doc.AddImageObject method, the currently selected frame is added.




Here, we open a TIFF file using the Image object. We then scan through each of the images within the file and insert them into a new page of our PDF document.

Set theDoc = Server.CreateObject("ABCpdf13.Doc")
Set theImg = Server.CreateObject("ABCpdf13.Image")
theImg.SetFile "c:\mypics\multipage.tif"
For i = 1 To theImg.FrameCount
  theImg.Frame = i
  theDoc.Page = theDoc.AddPage()
  theDoc.AddImageObject theImg, False
theDoc.Save "c:\mypdfs\imageframe.pdf"

imageframe.pdf [Page 1]

imageframe.pdf [Page 2]