6

I can't open a downloaded PDF file with Document Viewer. I get:

Unable to open document “file:///home/myuser/myfile.pdf”. File type Perl script (application/x-perl) is not supported

The same file opens fine with Print Preview (GNOME Document Previewer) as well as on my son's Windows 7 box with Acrobat.

What's missing?

4
  • And how do you try to open it? It looks like file association is wrong. Did you try to right-click it and choose "Document Viewer"?
    – Pilot6
    May 21, 2015 at 12:27
  • Yes I did that. I should have said that other PDF's open fine, so it is not the file associations. Thanks
    – Chris
    May 22, 2015 at 13:50
  • 1
    can you share the pdf, or its location?
    – j0h
    Aug 5, 2015 at 12:12
  • 4
    What does file /home/myuser/myfile.pdf say the file is? Are you sure it's a PDF?
    – waltinator
    Aug 17, 2015 at 18:15

1 Answer 1

1

Based on the information you provided, the mentioned file is a perl application, despite being saved as pdf file.

Just to make sure what is the true type of your file, use the file command like this:

file /home/myuser/myfile.pdf

and make sure it is the result be something like this:

/home/myuser/myfile.pdf: PDF document, version x

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .