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

 

   

Notes
 

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.

 

   

Example
 

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("ABCpdf10.Doc")
Set theImg = Server.CreateObject("ABCpdf10.Image")
theImg.SetFile "c:\mypics\multipage.tif"
For i = 1 To theImg.FrameCount
  theImg.Frame = i
  theDoc.Page = theDoc.AddPage()
  theDoc.AddImageObject theImg, False
Next
theDoc.Save "c:\mypdfs\imageframe.pdf"


imageframe.pdf [Page 1]


imageframe.pdf [Page 2]