Neevia Technology Sites:   www.neevia.com  |  docuPub.com  |  www.neeviaPDF.com
:: Home :: Products :: Technical Support :: About Us :: Contact Us
Technical support > Neevia Document Converter Pro code samples
Example 16: Extract a page from an existing PDF file from Delphi  Print Example 

Procedure TForm1.ExtractPageClick(Sender: TObject);
var
  DC : Variant;
  RVal : Integer;
  pageToExtract : Integer;
begin

   pageToExtract := 2;
   try
     DC := CreateOleObject('Neevia.docConverter');
     RVal := DC.extractPDFpages('c:\test.pdf', 'c:\page.pdf', pageToExtract, pageToExtract);
     If (RVal <> 0) Then
       ShowMessage('Error extracting PDF page!!! Code: '+IntToStr(RVal))
     Else
       ShowMessage('Done !!!');
   finally
     DC:= Unassigned;
   end;

end;



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