|
First we create an ABCpdf Doc object. Next we add an image to it.
Finally we save at a specified location. Because the rect defaults
to the size of the entire page the image will be scaled to fill
the entire page.
Note that this example works for JPEG images only. For other types
of images you should see the Image
object.
Set theDoc = Server.CreateObject("ABCpdf3.Doc")
theDoc.AddImage "c:\mypics\pic.jpg"
theDoc.Save "c:\mypdfs\image.pdf"
|