This method adds an image from a file into a PDF document's images collection and returns the index of the added image. Supported image formats: BMP, GIF, JPEG, PNG, TIFF.
|LONG AddImageFromFile (
Path to the file containing the image
Index of the new image. If there is more than one image in a file, then the method returns the index of the most recently added image.