... and here is contents of my VK::Acrobat module which is needed to this utility.
package VK::Acrobat; use strict; use Win32::OLE qw(EVENTS); use Win32::OLE::Const; use Win32::OLE::Variant; use Cwd qw(cwd abs_path); use File::Basename; use File::Path; sub new { my $class = shift; # || SUPER::??????? как тут правильно? my $self = bless { # defaults verbose => 1, # some predefined (and overridable) constants 'ole-name' => 'AcroExch.App', 'ole-doc-name' => 'AcroExch.AVDoc', 'typelib-name'=>'Adobe Acrobat 5.0 Type Library', # some predefined constants true => Variant(VT_BOOL,1), false => Variant(VT_BOOL,0), # initial values #... # specified values @_, }, $class; my $acro = Win32::OLE->new($self->{'ole-name'}, sub { #print STDERR "quitting Acrobat...\n" if $self->{verbose}; ##$_[0]->Exit; #print STDERR "done.\n" if $self->{verbose}; }) or die "Can't init $self->{'ole-name'}; please re-install Acrobat +"; my $acrodoc = Win32::OLE->new($self->{'ole-doc-name'}, sub { #print STDERR "quitting Acrobat-doc...\n" if $self->{verbose}; #print STDERR "done.\n" if $self->{verbose}; }) or die "Can't init $self->{'ole-name'}; please re-install Acrobat +"; #$self->{OLEconst} = Win32::OLE::Const->Load($acro); $self->{OLEconst}->{true} = $self->{true} unless exists $self->{OLEc +onst}->{true}; $self->{OLEconst}->{false} = $self->{false} unless exists $self->{OL +Econst}->{false}; $self->{OLEconst} = Win32::OLE::Const->Load($self->{'typelib-name'}) +; $self->{warner} = sub { print STDERR "ACROBAT Warner: [[".(join '===',@_)."]]\n"; }; $self->{acro} = $acro; $self->{acrodoc} = $acrodoc; Win32::OLE->Option(Warn=>$self->{warner}); #Win32::OLE->WithEvents($self->{acro}, \&Event); return $self; } sub Event { my ($Obj,$Event,@Args) = @_; print "Event triggered: '$Event'\n"; } =ignore sub AUTOLOAD { print STDERR "AUTOLOAD:[[".(join "+",@_)."]]\n"; &SUPER::AUTOLOAD; } =cut 1;

Courage, the Cowardly Dog.


In reply to Re: pdf files print utility on Win32 by Courage
in thread pdf files print utility on Win32 by Courage

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.