Neevia Technology Sites:   www.neevia.com  |  docuPub.com  |  www.neeviaPDF.com
:: Home :: Products :: Technical Support :: About Us :: Contact Us
Technical support > Neevia docCreator code samples
Example 9: Convert a TIFF file into PDF from Delphi  Print Example 


procedure createPDF();
var
  DC : Variant;
  RVal : Integer;
  docToConvert : String;
begin
  docToConvert := 'd:\test.tif';

  try
    DC := CreateOleObject('Neevia.docCreator');
    RVal := DC.ConvertImage(docToConvert, docToConvert + '.pdf');

    If (RVal <> 0) Then
      ShowMessage('Error while converting image!!! Code: '+IntToStr(RVal))
    else
      ShowMessage('Done converting !!!');
  finally
    DC := Unassigned;
  end;
end;



Copyright © 1999-2016 Neevia Technology. All Rights Reserved. Home | Products | Technical Support | About Us | Contact Us