:: Home :: Products :: Technical Support :: About Us :: Contact Us
PDF Printer Driver, Convert to PDF, Print to PDF
Example 2: Split a PDF file into single pages and encrypt output (Delphi)  

   uses ComObj;
      .....

   procedure TForm1.Button1Click(Sender: TObject);
   var
     NVsplit : Variant;
     retVal : Integer;
   begin
     NVsplit := CreateOleObject('PDFsplit.Neevia');

     NVsplit.PDFEncrypt := true;
     NVsplit.PDFEncryptionType := 'rc4';
     NVsplit.PDFOwnerPassword := 'owner';

     // p - document printing is denied
     // e - disable extraction of text and graphics
     NVsplit.PDFPermissions := 'pe';

     retVal := NVsplit.SplitPDF('c:\1.pdf', 'c:\out\');
     if retVal <> 0 then
       Application.MessageBox(PChar('Error code=' + IntToStr(retVal)),'',0)
     else
       Application.MessageBox('Done','',0);
   end;

Developing a solution that enables endusers to compress their PDF files is indeed an easy task with Neevia PDFcompress. Thank you!

Andrew Holden

If you have any comments or suggestions about our web site, please feel free to email them to

Copyright © 2017 neeviaPDF.com Home | Products | Support | About Us | Contact Us