CapeSoft.Com
Clarion Accessories
FileExplorer
Documentation
FePDF
CapeSoft Logo

CapeSoft File Explorer FePDF
Documentation

Download Latest Version
Installed Version Latest Version

File Explorer Classes - FePDF

The FePDF Object is used to display Adobe Acrobat PDF files. According to the ACrobat Developer FAQ, the Adobe Acrobat Reader ActiveX control was only developed to be used inside Internet Explorer, up until version 7. File Explorer supports Acrobat Reader version 5 and above, but we recommend that you install version 7 or later.

FePDF - Methods

Quick Reference
Init
Kill
Load
Navigate
PrintMe
PrintPages
Reload
Update

Init

Init (long ParentControl, <string LoadPath>, long Handle1=0, long Handle2=0, byte SkipCallbacks=false ) ,byte,proc

Description
Example
Example
ThisViewer.Init (?feControl)

Kill

Kill ( )

Description
Example
Example
ThisViewer.Kill()

Load

Load ( string CurrentPath, <long CurrentControl>, <byte Version> ) ,byte,proc
Example
Example
TempByte = ThisViewer.Load ('c:\test.pdf')
ThisViewer.Load ('c:\test.pdf', ?feControl5, 4)

Navigate

Navigate ( byte Location, <short PageNumber>, <string Optionals> )

Description
Example
Example
ThisViewer.Navigate (1)  ! goto first page
ThisViewer.Navigate (5, 22)  ! goto page number 22

PrintMe

PrintMe ( byte ShowDialog )

Description
Example
Example
ThisViewer.PrintMe (1)

PrintPages

PrintPages ( long FromPage, long ToPage, byte ShrinkToFit )

Description
Example
Example
ThisViewer.PrintPages (3, 5, 1) ! print pages 3 to 5, and shrink pages to fit the current printer settings

Reload

Reload ( <long CurrentControl> )

Description
Example
Example
ThisViewer.Reload()

Update

Update ( string Property, string PropValue )

Description
Example
Example
ThisViewer.Update ('PDFScrollBars', '1')  ! show scrollbars
ThisViewer.Update ('PDFZoom', '50')  ! 50%

FePDF - Properties (alphabetical)

PdfScrollbars (Byte)Set to "true" (1) to display scrollbars on the PDF control, or "false" (0) to hide them. Can either be set before calling the Load method (see example 1 below), or at any time after the document has loaded, using the Update method (see example 2 below). Example 1: (before call to "load" method)
ThisViewer1.PdfScrollbars = false
ThisViewer1.Load ('c:\MyFile.pdf')

Example 2: (any time after a document has loaded)
ThisViewer.Update ( 'PdfScrollbars', '1' )

Note: This property only works if you are using Adobe Acrobat 4, which can be set from the Viewer Control's properties. ( See the notes on the "Init" method ).
PdfToolbar (Byte)Similar to the PdfScrollbars property, (see above), this property can be set using the same techniques. A value of True (1) shows the native Adobe toolbar, a value of False (0) hides it. Note: This property only works if you are using Adobe Acrobat 4, which can be set from the Viewer Control's properties. ( See the notes on the "Init" method ).
PdfVersion (String)If you want to specify which version of Adobe Acrobat File Explorer should use, you can do it in one of two places: either in the Version parameter of the Load method, or by setting the PdfVersion property before calling the Load method. Valid values are either "Acrobat 4" or "Acrobat 5" ( or just "4" or "5" ). If you are using the templates, this can be set from the Viewer Control properties.
PdfZoom (Long)Sets the "zoom" for the PDF control. Holds a value from 1 (1%) to 100 (100%). See the notes on the PdfScrollbars property (above) to see how you set this property (works the same way). Example:
ThisViewer.Update ( 'PdfZoom', '75' ) ! sets the zoom to 75%

Note: This property only works if you are using Adobe Acrobat 4, which can be set from the Viewer Control's properties. ( See the notes on the "Init" method ).

FePDF - Templates

At this time there is quite an overlap in terms of multiple File Explorer classes being implemented by the same templates. In the future we may revisit this, but for now all templates are covered in the main (FileExplorer.htm) help document, please click here.

FePDF - Useful References

At this time this section is found in the main (FileExplorer.htm) help document, please click here.