Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How do you open a PDF file from a perl script in Windows?

by davido (Archbishop)
on Feb 11, 2013 at 22:56 UTC ( #1018258=note: print w/ replies, xml ) Need Help??


in reply to How do you open a PDF file from a perl script in Windows?

Your calling syntax is not incorrect, and the parts that we're seeing are not in disagreement with how Adobe reader is intended to be called. So since we know it's not a problem with the Perl code you've shown, that leaves four questions that I can think of:

  1. What does $outname contain?
  2. What is the cwd for your script.
  3. What is the absolute path to your PDF file?
  4. Does your script have read permission for that PDF?

You might be specifying a relative path that doesn't lead where you want it to when the script runs. Or your script might not have the correct permissions for the PDF.


Dave


Comment on Re: How do you open a PDF file from a perl script in Windows?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-09-16 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (36 votes), past polls