http://www.perlmonks.org?node_id=1067615


in reply to Anyone know how to add a Hyperlink with PDF::API2

Since PDF::API2::Simple is just a wrapper around PDF::API2, the answer has to be yes.

But originally you wanted to use PDF::API2::Simple. I, too, tried to install it from CPAN, and also got an error. I don't know what your error was, mine was
Can't locate inc/Module/Install.pm in @INC

After I installed Module::Install from CPAN (seems to be a missing dependency), and changing one of the tests (Windows can't unlink open files, bug is older than my youngest son), I was able to install it. Perhaps with this info, you should be able to install it, too.

Update: I'm a bit puzzled. The aforementioned bug is filed against PDF::API2::Simple, which uses ->saveas from PDF::API2 which in turn should close the file. Maybe an upstream bug?
  • Comment on Re: Anyone know how to add a Hyperlink with PDF::API2

Replies are listed 'Best First'.
Re^2: Anyone know how to add a Hyperlink with PDF::API2
by MidLifeXis (Monsignor) on Dec 18, 2013 at 14:06 UTC

    The Module::Install module should have been included in the P::A::S distribution in the inc directory, but it is not. File this as a bug against P::A::S (Update: unless already submitted - see below).

    --MidLifeXis

      There is already a bug "missing inc directory", which contains the aforementioned error message.

      next update: I just noticed there is an "unauthorized release" 1.1.5 by chromatic.
      I am behind a firewall and therefore using a "Minicpan" which is obviously outdated.
      Will try to check with actual CPAN and get back with the result later.

      cpan CHROMATIC/PDF-API2-Simple-1.1.5.tar.gz on a fresh strawberry didn't have the Module::Install missing (I added that info to rt://28125).
      rt://58106 still needs attention, but might be a problem in PDF::API2
Re^2: Anyone know how to add a Hyperlink with PDF::API2
by flexvault (Monsignor) on Dec 18, 2013 at 19:44 UTC

    Dear soonix,

      Perhaps with this info, you should be able to install it, too.
    Thanks! You hit it right on ++ !

    Regards...Ed

    "Well done is better than well said." - Benjamin Franklin