Delphi32.com - Home!
| Home/News | Downloads | Forums | D32 Magazine | Resources | Info and Facts |  
 
 How to embed Adobe Acrobat into your application.


How can I embed Adobe Acrobat into my application so users can read PDF files?   

    This document describes the process on how to use Adobe Acrobat to display files inside of your application.

    1. First, you will have to ensure that you have the latest version of Acrobat on your machine. You can download it from Adobe.
    2. Next you will need to import the type library for Acrobat, and be sure to click the Install button to install it into the IDE:

      Import Picture

    3. You can now drop a TPdf component onto your form and use it however you like.

    -- Tips --

    To set the file that you want open, use the src property, such as:procedure TForm .Button Click(Sender: TObject); begin // This example assumes that you have a TOpenDialog // and TPdf dropped onto your form OpenDialog .Filter := 'PDF Files (*.pdf)|*.pdf'; if OpenDialog .Execute then Pdf .src := OpenDialog .FileName; end;


    If you don't want the Acrobat toolbar to be shown, you can call

    Pdf .setShowToolbar(false);
    . You can then have custom buttons that allow the user to navigate through the PDF document by calling
    gotoFirstPage, gotoLastPage, setZoom(percent: Single)
    , etc. To find out a list of all the functions you can call, open the file that you imported (it is probably called PdfLib_TLB.pas), and look at all the functions in the class
    TPdf = class(TOleControl)
    . To easily browse to this file, you can place the cursor over the PdfLib_TLB name in the uses clause and press Ctrl-Enter.

 

  << Previous Faq     Complete List     Next Faq >>  



 
 Hits/month  2,500,000+ 
 Downloads
 (Since May 2000)
 7,393,709 
 Total Files  6,023 
 Forum msgs  7,670 
 Articles/FAQs  70+/900+ 
Kylix
Tips n Tricks
FAQs
Knowledge Base
Bug Listings
Articles
Books
Newsgroups
Links
Submissions
Testimonials
Advertising
Contact Us
About Us
Search Amazon:
Top Selling Software at Amazon

| Home/News | Downloads | Forums | Resources | Info and Facts | Testimonials |
  Site Search:
 


Comments/Problems: Webmaster@delphi32.com
Copyright © 1998-2006, Delphi32.com. All rights reserved.
Terms of Use