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

RESTful API? #8

Open
jonathon-love opened this issue Jan 18, 2021 · 0 comments
Open

RESTful API? #8

jonathon-love opened this issue Jan 18, 2021 · 0 comments

Comments

@jonathon-love
Copy link

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

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

1 participant