############################################################################# ## Name: Acrobat.pm ## Purpose: Wx::ActiveX::Acrobat (Acrobat Reader) ## Author: Simon Flack ## Modified by: ## Created: 23/07/2003 ## RCS-ID: ## Copyright: (c) 2003 Simon Flack ## Licence: This program is free software; you can redistribute it and/or ## modify it under the same terms as Perl itself ############################################################################# package Wx::ActiveX::Acrobat ; use Wx::ActiveX ; use strict; use vars qw(@ISA $VERSION $AUTOLOAD $ACROBAT_VERSION) ; @ISA = 'Wx::ActiveX'; $VERSION = '0.01'; my $PROGID = "PDF.PdfCtrl.5" ; sub new { my $class = shift; my $parent = shift; my $activex = Wx::ActiveX->new($parent , $PROGID , @_) ; $activex = Wx::ActiveX::hash_ref($activex, $class) ; return $activex ; } 1; __END__ =head1 NAME Wx::ActiveX::Acrobat - ActiveX interface for Acrobat Reader. =head1 SYNOPSIS use Wx::ActiveX::Acrobat ; my $acrobat = Wx::ActiveX::Acrobat->new( $parent , -1 , wxDefaultPosition , wxDefaultSize ); $acrobat->LoadFile("./test.pdf"); =head1 DESCRIPTION ActiveX control for Acrobat Reader. The control comes from Wx::ActiveX, and all methods/events from there exit here too. =head1 new ( PARENT , ID , POS , SIZE ) This will create and return the Acrobat object. =head1 METHODS See L. =head1 EVENTS All the events use EVT_ACTIVEX. =head1 ActivexInfos AboutBox() goBackwardStack() goForwardStack() gotoFirstPage() gotoLastPage() gotoNextPage() gotoPreviousPage() LoadFile(fileName) Print() printAll() printAllFit(shrinkToFit) printPages(from , to) printPagesFit(from , to , shrinkToFit) printWithDialog() setCurrentPage(n) setLayoutMode(layoutMode) setNamedDest(namedDest) setPageMode(pageMode) setShowScrollbars(On) setShowToolbar(On) setView(viewMode) setViewRect(left , top , width , height) setViewScroll(viewMode , offset) setZoom(percent) setZoomScroll(percent , left , top) =head1 SEE ALSO L, L =head1 AUTHOR Simon Flack Thanks to wxWindows peoples and Mattia Barbon for wxPerl! :P Thanks to Justin Bradford and Lindsay Mathieson , that wrote the C classes for wxActiveX and wxIEHtmlWin. =head1 COPYRIGHT This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut # Local variables: # # mode: cperl # # End: #