52
activePDF Toolkit Professional Edition
aptkl4a 30405
Copyright 2005, activePDF, Inc. All Rights Reserved.
Page 127 of 553
PrintImage
Description
Prints an image onto a new or existing PDF page. For a complete list of supported image types, refer
to Appendix E: Supported Image Types.
NOTE:
For JPEGs or TIFFs, use the PrintJPEG or PrintTIFF method.
Return type
Long
Return Value
Description
-998
Product not registered/ Evaluation expired.
-997
Required product version not registered.
99
Invalid path of filename specified.
97
Invalid image type specified.
1
Success.
Syntax
object.
PrintImage
ImageFileName, LLX, LLY, Width, Height, PersistRatio, PageNr
The PrintImage method has these required parts:
Part
Value Type
Description
Object
An expression of the Toolkit object.
ImageFileName
String
The full path to the image.
If the ImageByteStream property is set to a valid image
from a record set, or other source, you can set the FileName
parameter to "MEMORY".
LLX
Float
The horizontal position for the lower-left corner of the
image. Uses the PDF Coordinate System .
LLY
Float
The vertical position for the lower-left corner of the image.
Uses the PDF Coordinate System.
Width
Float
The width of the image specified in PDF Units.
0=Uses the current width of the image specified with the