Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of PrinceXML #163

Open
wjgilmore opened this issue Feb 4, 2013 · 6 comments
Open

Use of PrinceXML #163

wjgilmore opened this issue Feb 4, 2013 · 6 comments

Comments

@wjgilmore
Copy link

I learned about the Magic Book Project via http://natureofcode.com/ and it looks very interesting. However I'm a bit perplexed by the README's statement "...making books available to the widest audience possible at the cheapest prices." (which implies commercial aspirations), followed by the later note "For the time being, the asciidoc gem uses Prince XML for PDF rendering". I've visited the Prince XML website and it appears Prince XML can't simply be downloaded and used for commercial purposes, as it would be a violation of the Prince XML license. Or am I misunderstanding something? Presuming I'm not, shouldn't this be clarified in the README?

@runemadsen
Copy link
Owner

Hi @wjgilmore. Thanks for your comment. The problem is that there's really no good open source HTML->PDF renderer available on the market today. We've tried them all, and they are all lacking in features. So until the PDF rendering support is better in the open source tools, we're using PrinceXML. It's really easy to switch this mechanism, but there's really nothing to switch to.

@shiffman
Copy link
Collaborator

shiffman commented Feb 5, 2013

Indeed, the other point I should mention is that it was our original intent with the project that it would eventually become a web app in which case we would seek funding to purchase a server license for PrinceXML so that users of the system could generate PDFs without having to purchase their own license. Hopefully we'll have the time and resources to get to that point someday!

@wjgilmore
Copy link
Author

Hi guys,

Even lacking an acceptable open source PDF rendering solution, it remains a violation of PrinceXML's license to use their software without purchasing a commercial license (unless the project is non-commercial, at which point you can use their software but will result in a watermarked document). I am apparently misunderstanding something.

FWIW I'm currently using Asciidoc's a2x (http://www.methods.co.nz/asciidoc/a2x.1.html) for PDF rendering, and it's working out quite well so far. Over the years I've written/published books using Word/InDesign and Docbook/oXygen, and am finding the Asciidoc/a2x approach to be particularly appealing. Have you taken a look at a2x, and if so, were there any particular features which you found problematic?

@runemadsen
Copy link
Owner

Hi again,

This library just shells out to PrinceXML. We're not shipping PrinceXML with the gem, so this library is not really violating anything. Whether you have a commercial license or a trial of PrinceXML is up to each individual running this gem.

The problem with a2x is that it's really hard to do anything remotely custom with the HTML output. If you take a look at our .erb templates, we're doing a lot things that would never be possible in the pure asciidoc toolchain. That was what made us write the gem in the first place. This library makes it possible to write your own .erb HTML templates, and have a totally custom output.

Does that make sense? Thanks.

@snj33v
Copy link

snj33v commented Dec 14, 2013

what about pandoc? is that a good alternative?

@jilljenn
Copy link

This is what I wanted to ask. What about pandoc? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants