Contents [ ]
  • NAME
  • VERSION
  • SYNOPSIS
  • DESCRIPTION
  • METHODS
    • new
    • newVersion
    • GoBackwardStack
    • GoForwardStack
    • GotoFirstPage
    • GotoLastPage
    • GotoNextPage
    • GotoPreviousPage
    • LoadFile
    • Print
    • PrintAll
    • PrintAllFit
    • PrintPages
    • PrintPagesFit
    • PrintWithDialog
    • SetCurrentHighlight
    • SetCurrentPage
    • SetLayoutMode
    • SetNamedDest
    • SetPageMode
    • SetShowScrollbars
    • SetShowToolbar
    • SetView
    • SetViewRect
    • SetViewScroll
    • SetZoom
    • SetZoomScroll
  • PROPERTIES
    • src
  • EVENTS
  • ACTIVEX INTERFACE
    • Strategies
    • Properties
    • Occasions
  • SEE ALSO
  • AUTHORS & ACKNOWLEDGEMENTS
  • COPYRIGHT & LICENSE
  • CURRENT MAINTAINER

NAME

Wx::ActiveX::Acrobat – Interface for Acrobat Reader ActiveX Management.

VERSION

Model 0.10

SYNOPSIS

use Wx::ActiveX::Acrobat qw( :every little thing );
 
..........
 
my $acrobat = Wx::ActiveX::Acrobat->new( $guardian );
 
OR
 
my $acrobat = Wx::ActiveX::Acrobat->newVersion( 1, $guardian );
 
EVT_ACTIVEX_ACROBAT_ONERROR( $handler, $acrobat, &on_event_onerror );
 
........
 
# freeze whereas we setup visuals
$acrobat->Freeze;
$acrobat->LoadFile("./test.pdf");
$acrobat->SetShowToolBar(0);
$acrobat->SetPageMode(bookmarks);
$acrobat->Thaw;

DESCRIPTION

ActiveX management for Acrobat Reader. The management inherits from Wx::ActiveX, and all strategies/occasions from there can be found right here too. Obtainable strategies enable setting of toolbars, print ranges, views and print dialogs from code.

METHODS

new

my $activex = Wx::ActiveX::Acrobat->new(
                    $guardian,
                    $windowid,
                    $place,
                    $measurement,
                    $type,
                    $identify);

Returns a brand new occasion of Wx::ActiveX::Acrobat. Solely $guardian is obligatory. $guardian have to be derived from Wx::Window (e.g. Wx::Body, Wx::Panel and so forth). This constructor creates an occasion utilizing the newest model accessible of AcroPDF.PDF.

newVersion

my $activex = Wx::ActiveX::Acrobat->newVersion(
                    $model
                    $guardian,
                    $windowid,
                    $place,
                    $measurement,
                    $type,
                    $identify);

Returns a brand new occasion of Wx::ActiveX::Acrobat. $model and $guardian are obligatory. $guardian have to be derived from Wx::Window (e.g. Wx::Body, Wx::Panel and so forth). This constructor creates an occasion utilizing the particular sort library laid out in $model of AcroPDF.PDF.

e.g. $model = 4;

will produce an occasion primarily based on the sort library for

See also  Smadav Free Download

AcroPDF.PDF.4

GoBackwardStack

$activex->GoBackwardStack();

Goes to the earlier view on the view stack, if the earlier view exists. This can be in a special doc.

GoForwardStack

$activex->GoForwardStack();

Goes to the subsequent view on the view stack, if the subsequent view exists. This can be in a special doc.

GotoFirstPage

$activex->GotoFirstPage();

Goes to the primary web page within the doc, sustaining the present location inside the web page and zoom degree.

GotoLastPage

$activex->GotoLastPage();

Goes to the final web page within the doc, sustaining the present location inside the web page and zoom degree.

GotoNextPage

$activex->GotoNextPage();

Goes to the subsequent web page within the doc, if it exists. Maintains the present location inside the web page and zoom degree.

GotoPreviousPage

$activex->GotoPreviousPage();

Goes to the earlier web page within the doc, if it exists. Maintains the present location inside the web page and zoom degree.

LoadFile

$activex->LoadFile( $url );

Opens and shows the desired doc inside the ActiveX management.

Print

$activex->Print();

Prints the doc exhibiting the usual Acrobat dialog field.

PrintAll

$activex->PrintAll();

Prints your entire doc with out displaying a person dialog field.

PrintAllFit

$activex->PrintAllFit();

Prints your entire doc with out displaying a person dialog field, and the pages are shrunk, if needed, to suit into the imageable space of a web page within the printer.

PrintPages

$activex->PrintPages( $from, $to );

Prints the desired pages with out displaying a person dialog field.

PrintPagesFit

$activex->PrintPagesFit( $from, $to );

Prints the desired pages with out displaying a person dialog field.

PrintWithDialog

$activex->PrintWithDialog();

Prints the doc based on the choices chosen in a person dialog field. That is hooked up to a separate Acrobat window that can persist. In order for you a dialog you in all probability need the Print methodology moderately than this.

See also  CyberLink PowerDirector 11 Director Suite Review

SetCurrentHighlight

$activex->SetCurrentHighlight( $left, $prime, $width, $peak );

Highlights the textual content choice inside the specified bounding rectangle on the present web page.

SetCurrentPage

$activex->SetCurrentPage( $pageno );

Goes to the desired web page within the doc.

SetLayoutMode

$activex->SetLayoutMode( $mode );

Units the structure mode for a web page view based on the desired string.

mode:

'DontCare'      use the present person desire
'SinglePage'    use single web page mode (pre Acrobat 3.0 type)
'OneColumn'     use one-column steady mode
'TwoColumnLeft' use two-column steady mode with the primary
                  web page on the left
'TwoColumnRight'use two-column steady mode with the primary
                  web page on the best

SetNamedDest

$activex->SetNamedDest( $vacation spot );

Modifications the web page view to the named vacation spot within the specified string.

SetPageMode

$activex->SetPageMode( $mode );

Units the web page mode based on the desired string.

mode:

'none'      — shows the doc, however doesn't show bookmarks or
              thumbnails (default)
'bookmarks' — shows the doc and bookmarks
'thumbs'    — shows the doc and thumbnails

SetShowScrollbars

$activex->SetShowScrollbars( $bool );

Determines whether or not scrollbars will seem within the doc view.

SetShowToolbar

$activex->SetShowToolbar( $bool );

Determines whether or not a toolbar will seem within the viewer.

SetView

$activex->SetView( $view );

Units the view of a web page based on the desired string.

view:

'Match'   — Suits your entire web page inside the window each vertically
          and horizontally.
'FitH'  — Suits your entire width of the web page inside the window.
'FitV'  — Suits your entire peak of the web page inside the window.
'FitB'  — Suits the bounding field inside the window each vertically
          and horizontally.
'FitBH' — Suits the width of the bounding field inside the window.
'FitB'  — Suits the peak of the bounding field inside the window

SetViewRect

$activex->SetViewRect( $left, $prime, $width, $peak );

Units the view rectangle based on the desired coordinates.

See also  Shipwreck found in Lake Michigan may be a notorious 'cursed' ship

SetViewScroll

$activex->SetViewScroll( $view, $offset );

Units the view of a web page based on the desired string.

view:

'Match'   — Suits your entire web page inside the window each vertically
          and horizontally.
'FitH'  — Suits your entire width of the web page inside the window.
'FitV'  — Suits your entire peak of the web page inside the window.
'FitB'  — Suits the bounding field inside the window each vertically
          and horizontally.
'FitBH' — Suits the width of the bounding field inside the window.
'FitBV' — Suits the peak of the bounding field inside the window

offset:

The horizontal or vertical coordinate positioned both at
the left or prime edge.

SetZoom

$activex->SetZoom( $p.c );

Units the magnification based on the desired worth.

p.c

The specified zoom issue, expressed as a share. For instance,
1.0 represents a magnification of 100%.

SetZoomScroll

$activex->SetZoomScroll(  );

Units the magnification based on the desired worth, and scrolls the web page view each horizontally and vertically based on the desired quantities.

p.c

The specified zoom issue, expressed as a share. For instance,
1.0 represents a magnification of 100%.

left

Leave a Reply

Your email address will not be published.

The horizontal coordinate positioned on the left edge.