开发者

Non-viral open-source PDF library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_开发知识库

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

I'd like to embed a PDF file viewer in a window of my planned-to-be open-source application. I don't want to release my application on GPL though, and most of open-source PDF libraries are on GPL (poppler, ghostscript, muPDF).

Is there a PDF viewer library that would be on a non-viral open-source license?

Thanks,


It seems that there is a new BSD-licensed contender: PDFium.


IANAL. Blah blah blah.

Using GhostScript by shelling out to a command line will not require you to change your licensing in any way. Batch files used to call GhostScript aren't automagically GPL'ed.

With GPL, I'd always understood that it boiled down to "Separate process? Separate license!".

So you just have GS whip up a relatively hi DPI version of the PDF page in question, and let the user pan and zoom around in that. Because GS IS in a separate process, you could fire off additional page requests in the background so the user won't perceive a delay when paging back and forth. GS takes a page range as one of its conversion parameters.

What you couldn't do is generate an image of a small part of an individual PDF page at high DPI/zoom. IIRC, you have to render the whole page.


If your application is open source and free then you should consider the option to host Adobe Reader ActiveX control (which requires to have Adobe Reader to be installed), this behavior would be the same as embedded Adobe Reader in Internet Explorer or Firefox browsers.

Lot of users have Adobe Reader or Foxit Reader installed on their computers already.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜