The following ASP example demonstrates the LoadImageInfo method, which retreives information from an image file specified with the ImagetoPDF method. This method also uses the following Server Properties:
ImageInfoBitsPerPixel
ImageInfoFileType
ImageInfoHeight
ImageInfoTotalPages
ImageInfoWidth
ImageInfoXResolution
ImageInfoYResolution
These files are required:
image.JPG - The image to convert to PDF.
LoadImageInfo.asp - Code detail provided below.
NOTE: This example is available for other programming environments. Please select from the Code Samples list above to display the download link for this example in the language appropriate to your environment.
Click here to download this example for ASP (includes required files):
Example:
<%
' Variables
' Name of image file
strImageFileName = Server.MapPath("image.jpg")
' Instantiate activePDF Server Object
Set objSVR = CreateObject("APServer.Object")
' LoadImageInfo
lngRtn = objSVR.LoadImageInfo (strImageFileName)
If lngRtn <> 1 Then
The information in this article is for the use of activePDF Customers and Evaluation Users Only. No part of this document may be transmitted or reproduced without the express written consent of activePDF.