Skip to content

RESTful API? #8

@jonathon-love

Description

@jonathon-love

hi,

in it's current form, docker-html-to-pdf seems a very useful command line utility. but in it's current form, it doesn't look to be easily useable from other docker containers (correct me if i'm wrong!). i was thinking it wouldn't actually require too much effort to make this useful within docker applications.

for example, adding a simple restful API:

curl -o http://html-to-pdf/convert?from=fred.html

could call

pink33n/html-to-pdf fred.html --url file:///tmp/fred.html --output randomString.pdf

and the restful API could return the pdf file name. files would be read and written from a volume shared with other containers.

gotenberg allows this sort of thing, of course, but gotenberg has some many features, it has quite a large attack surface. where as there's something attractive about your far more minimal solution.

thoughts?

with thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions