The Aloaha PDF tools contain a lot of undocumented freeware functions which are not limited to PDF. For example they contain many APIs for image manipulation.

One very frequently asked function is BMP2JPG to convert Windows Bitmaps (BMP) directly to JPG files.

Please find the self explaining VBS sample below. It can be used by any language which supports automation compatible COM Object. For example VB6/vb.NET/VBS, Delphi, c++, c# ,etc.

dim pdf
set pdf = createobject(“aloahapdf.image”)
     if pdf.bmp2jpg(cstr(“c:\input.bmp”),cstr(“c:\output.jpg”))= true then
                 msgbox “BMP converted to JPG”
     end if
set pdf = nothing

Another interesting image manipulation API is  the Aloaha TIF Splitter to split multipage TIFF into single Page JPG files.

The self explaining example saves the new JPG files in %temp%

dim pdf
set pdf = createobject(“aloahapdf.image”)
     call pdf.SplitTiff(cstr(“c:\input.tif”))
set pdf = nothing

 

Aloaha can be installed from http://www.aloaha.com/download/aloaha_pdf.zip

 

Much easier it is with the portable Aloaha PDF Reader. Just open the TIFF or other Image with the Aloaha PDF Viewer. Aloaha will convert it to PDF and open it. Then you can just right click on a page and export it as PDF or Image!