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

Ghostscript is missing #112

Open
lurch opened this issue Oct 16, 2019 · 5 comments
Open

Ghostscript is missing #112

lurch opened this issue Oct 16, 2019 · 5 comments

Comments

@lurch
Copy link

lurch commented Oct 16, 2019

If the container included Ghostscript, it'd allow the built-in optimisation of asciidoctor-pdf to be used - see #111

@mojavelinux
Copy link
Member

Interesting to note that Ghostscript is also AGPL.

@CWempe
Copy link

CWempe commented Jul 1, 2021

I am interested in this, too.
Any news about this?

I tried it by installing ghostscript in the container myself.
Works great.

But I would prefer a pre-build image of cause.

The license seems to be no issue if I underdstand #111 (comment) correctly.

I am happy to create a PR if that helps.

I used this:

apk add --no-cache ghostscript
gem install rghost

Should hexapdf (#111) be included, too?

@ebousse
Copy link

ebousse commented Sep 8, 2022

I used this:

apk add --no-cache ghostscript
gem install rghost

Thanks for the tip! I created the following Dockerfile:

FROM docker.io/asciidoctor/docker-asciidoctor

RUN apk add --no-cache ghostscript
RUN gem install rghost

and the resulting image now allows me to run asciidoctor-pdf with the -a optimize=PDF/A option successfully 👍

@mojavelinux
Copy link
Member

The major obstacle here is the license issue. Both Ghostscript and HexaPDF are AGPL. Where I'm fuzzy is that we're adding them to a Linux distribution, which potentially already has AGPL software. I'm usually pretty good about being able to make license decisions, but this one has me stumped. We can't add software that threatens our own license. If someone can verify that won't happen, then we can move forward with adding them. Otherwise, I think the best approach is to clearly document in the README how to extend the image.

@ksdhans
Copy link

ksdhans commented Jan 16, 2024

From the AGPLv3 license wording:
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.

I'm NOT a lawyer, but I'm pretty sure that this clause explicitly allows the inclusion of AGPL software in a software distribution without making everything in that distro AGPL. It should be fine, so long as ascidoctor is calling Ghostscript or HexaPDF as an external tool instead of directly linking to it.

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