Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening a local PDF file in Chrome

Ok I see these 2 questions:

How to open PDF file in Google Chrome in new tab?

Can Google Chrome open local links?

But I'm not sure they answer my question. I'm trying not to install any PDF reader (Adobe sucks) and know that Chrome will open PDFs I open from the internet. So my question, is why won't it work if the PDF is local to my machine? Is there a workaround/plugin/other browser I can use to accomplish this?

The argument of security is totally bogus; how would a PDF I'm opening on the internet be any more secure/safe than a PDF I have on my local machine?

like image 714
Steven Avatar asked Oct 27 '10 17:10

Steven


People also ask

Why my PDF is not opening in Chrome?

Open Chrome Settings. Click on ''Site settings''. Click on the ”Advanced” button at the bottom. Click on the toggle switch of the heading ”Download PDF files instead of automatically opening them”.

How do I get Chrome to open PDFs instead of Adobe Reader?

Open Acrobat Reader and select Edit > Preferences. Click Internet in the left panel of the Preferences menu and then select Internet Settings. Select the Programs tab. Click Manage Add-Ons and choose Acrobat Reader in the list of add-ons.

Can Google Chrome open PDF files?

The Google Chrome browser comes with built-in PDF viewer functionality that enables you to open and access PDFs easily. You can amplify your ability to work with PDFs by using the Adobe Acrobat extension for Google Chrome.

How do I open PDF files locally?

Find the PDF you want to open in your Files and double click to open. Select Adobe Acrobat (or whichever reader you downloaded) from the list of available options. If no list appears or the page opens in another application, you can right-click the file and select Open With to choose your PDF reader. Click Open.


2 Answers

I'm running Chrome 8.0.552.18 on my computer now, under Windows 7, and I just clicked and dragged a PDF onto it, and it loaded it up no problem...

And no, it doesn't look like it's using Acrobat or Foxit, or another PDF reader... it looks like Chrome 8 does have its own PDF renderer.

like image 142
mpen Avatar answered Oct 06 '22 18:10

mpen


I'm assuming you are on Windows. So, if your PDF is c:\some\path\some.pdf, simply use this URI in Chrome's address and search field:

 file:///C:/some/path/some.pdf

On Linux I'd expect this for /some/path/some.pdf to change to

 file:///some/path/some.pdf

(but have no chance to test this).

like image 36
Kurt Pfeifle Avatar answered Oct 06 '22 20:10

Kurt Pfeifle