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


imageframe.pdf [Page 1]


imageframe.pdf [Page 2]

 

 

   

 

Browser Based Help. Published by chm2web software.