Image 2 PDF

The Aloaha Image2PDF API allows the user to convert any standard image such as BMP, GIF, TIF, JPG, PNG to PDF. Multipage TIF documents are supported as well.

You need to make sure that Aloaha is properly licensed. Otherwise the code samples will not work. To get an evaluation key please contact info@aloaha.com

Please find the sample below:

dim pdf
dim imagepath
dim pdfpath
dim compression
dim sh

set pdf = createobject(“aloahapdf.edit”)

compression = 100 ‘no compression
imagepath = “c:\aloaha.bmp”

pdfpath = cstr(pdf.img2pdf(cstr(imagepath), clng(compression)))

if len(pdfpath)>0 then

   Set sh = CreateObject(“WScript.Shell”)
   sh.run cstr(pdfpath)
   set sh = nothing

else
   msgbox “Image could not be converted to PDF”
end if

set pdf = nothing

Please note that the PDF Suite Server Light contains a img2pdf hotfolder!