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

前端 未结 4 1962
野性不改
野性不改 2021-02-04 11:11

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:

ht

相关标签:
4条回答
  • 2021-02-04 11:23

    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)
    0 讨论(0)
  • 2021-02-04 11:25

    I just cite a snippet of the Chromium wiki (last updated on Nov 20, 2012):

    The Chrome PDF plugin uses 3rd-party non-free code; no Free Software PDF plugin exists that supports all the PDF features we'd like (such as filling in forms). :(

    0 讨论(0)
  • 2021-02-04 11:38

    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>
    
    0 讨论(0)
  • 2021-02-04 11:38

    It is closed-source, just as native Flash plugin.

    0 讨论(0)
提交回复
热议问题