Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where's the source code to the native PDF viewer in Google Chrome?

Can't seem to find it in trunk. Is this actually part of the open-source Chromium project? Or is the source to this not actually released? Only mention I could find:

http://www.listware.net/201007/chromium-discuss/93274-chromium-discuss-chrome-pdf-viewer-source.html

like image 536
Yang Avatar asked Sep 11 '10 20:09

Yang


People also ask

How do I change the default program for opening PDF files in Chrome?

Type or paste chrome://settings/content into address bar. A pop-up labeled "Content Settings..." will open. Scroll down to the bottom to "PDF Documents" Select or deselect the check box labelled "Open PDF files in the default PDF viewer application"

Where are Chrome PDFs stored?

1 Answer. Show activity on this post. They are stored at this path %USERPROFILE%\AppData\Local\ in Windows.

Does Chrome have a native PDF viewer?

Chrome has a built-in PDF Viewer tool that can edit PDF files.

What is Chrome built-in PDF viewer?

The Google Chrome browser comes with built-in PDF reader functionality for easy viewing. The Adobe Acrobat extension for Google Chrome gives you additional features, including file conversion. The Acrobat extension helps save space by accessing documents from anywhere via your browser.


2 Answers

Fetch it with Git:

  • $ git clone https://pdfium.googlesource.com/pdfium

View and contribute:

  • https://pdfium.googlesource.com/pdfium/+/master (Source browser)
  • https://pdfium.googlesource.com/pdfium/+/master/LICENSE (BSD 3-clause)
  • https://code.google.com/p/pdfium/ (Bug-tracker)
like image 126
Paul Sladen Avatar answered Oct 25 '22 12:10

Paul Sladen


Chromium just automatically embeds a page with PDF, the custom plugin is bundled up with Chrome. Adobe and Google has some mutual agreement:

You can right click and inspect the PDF Native Viewer to see yourself, you will see something like the following:

<html>
<body marginwidth="0" marginheight="0" bgcolor="rgb(38,38,38)">
<embed width="100%" height="100%" name="plugin" src="http://path/to/file.pdf" type="application/pdf">
</body>
</html>
like image 26
Mohamed Mansour Avatar answered Oct 25 '22 12:10

Mohamed Mansour