Live data from Hacker News

PDFium: Chrome’s PDF rendering engine is now open-source

code.google.com

11–20 of 106 posts

Re: PDFium: Chrome’s PDF rendering engine is now open-source

#11
post #8
post #2

It's really interesting to see that there are foxit employees on the list of committers. I assume that means that it was initially a fork of the foxit PDF reader?

Foxit isn't open-source, so I don't think it would be legal to release a derivative under the BSD license (IANAL).

It's perfectly legal for Foxit to license their own software to Google to be released under the terms of the BSD license. This would be with Foxit's consent, of course.

Re: PDFium: Chrome’s PDF rendering engine is now open-source

#12
post #8
post #2

It's really interesting to see that there are foxit employees on the list of committers. I assume that means that it was initially a fork of the foxit PDF reader?

Foxit isn't open-source, so I don't think it would be legal to release a derivative under the BSD license (IANAL).

I used the term 'initially' for a reason. My guess would be that the Chrome team used the Foxit SDK to get it out the door quickly, then over time and with Foxit guidance, replaced parts with their home grown source. That's just a guess, though.

Re: PDFium: Chrome’s PDF rendering engine is now open-source

#14
post #4

This is good news because it renders PDFs a lot faster and better than pdf.js that Firefox uses. Also, I would have to install this binary blob to get Chromium to render PDFs. It seems Chromium could easily adopt this, but I'm not sure about Firefox.

Well, it wouldn't make sense for Firefox to adopt this:

1. It is tied to v8 (PDFs can run JS, this PDF viewer uses v8 do so - see CJS_Context::RunScript etc), so it would mean bundling 2 JS engines, with all the security downsides of that.

2. This is written in C++. You can sandbox C++ in various ways, but that would still increase the surface area of the browser, compared to pdf.js which only uses things normal web content would use.

3. pdf.js is not just meant to render pdfs, it's also a useful project to push forward the web platform. Areas where pdf.js was slow turned out to be things that were worth optimizing anyhow. This doesn't benefit people viewing pdfs directly, of course, but it's still an interesting aspect of the project.

Re: PDFium: Chrome’s PDF rendering engine is now open-source

#16
post #14
post #4

This is good news because it renders PDFs a lot faster and better than pdf.js that Firefox uses. Also, I would have to install this binary blob to get Chromium to render PDFs. It seems Chromium could easily adopt this, but I'm not sure about Firefox.

Well, it wouldn't make sense for Firefox to adopt this: 1. It is tied to v8 (PDFs can run JS, this PDF viewer uses v8 do so - see CJS_Context::RunScript etc), so it would mean bundling 2 JS engines, with all the security downsides of that. 2. This is written in C++. You can sandbox C++ in various ways, but that would still increase the surface area of the browser, compared to pdf.js which only uses things normal web…

Well, Chrome could make this viewer not increase the surface area of the browser just by changing it to a NaCl plugin. After all, it already exposes the ability to run native code inside NaCl to the web. ;p

I like the concept of pdf.js, but it's still significantly slower, and thus provides a worse experience to the user, than native viewers.

Re: PDFium: Chrome’s PDF rendering engine is now open-source

#17
post #2

It's really interesting to see that there are foxit employees on the list of committers. I assume that means that it was initially a fork of the foxit PDF reader?

https://pdfium.googlesource.com/pdfium/+/master/fpdfsdk/incl...

"Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com"

Re: PDFium: Chrome’s PDF rendering engine is now open-source

#18
Why did they close down something like Google Reader and Not Google Code Hosting? Do anyone actually use it?

I wish they could either make Google Code decent or simply kill it and use GitHub instead.

Is this a new implementation? Of did Foxit release it as Open Source?

Re: PDFium: Chrome’s PDF rendering engine is now open-source

#19
post #14
post #4

This is good news because it renders PDFs a lot faster and better than pdf.js that Firefox uses. Also, I would have to install this binary blob to get Chromium to render PDFs. It seems Chromium could easily adopt this, but I'm not sure about Firefox.

Well, it wouldn't make sense for Firefox to adopt this: 1. It is tied to v8 (PDFs can run JS, this PDF viewer uses v8 do so - see CJS_Context::RunScript etc), so it would mean bundling 2 JS engines, with all the security downsides of that. 2. This is written in C++. You can sandbox C++ in various ways, but that would still increase the surface area of the browser, compared to pdf.js which only uses things normal web…

Then I would rather I have the choose of using PDF with this and Javascript disabled.

May be Opera should adopt this.

Re: PDFium: Chrome’s PDF rendering engine is now open-source

#20
post #18

Why did they close down something like Google Reader and Not Google Code Hosting? Do anyone actually use it? I wish they could either make Google Code decent or simply kill it and use GitHub instead. Is this a new implementation? Of did Foxit release it as Open Source?

Even codeplex is better than google code. I really hope they either make the switch or improve it.
Post reply on HN