Skip to content

A dockerized webservice that uses webkit to convert HTML to PDF or image

License

Notifications You must be signed in to change notification settings

ErlendSB/docker-wkhtmltopdf-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wkhtmltopdf as a web service

A dockerized webservice written in Go that uses wkhtmltopdf to convert HTML into documents (images or pdf files).

Usage

Do a HTTP POST to ip address (port 9090) with the following json:

{
    "Url" : "http://sau.no",
    "Html" : "<html><head></head><body><p style='color:red;'>example</p></body></html>",
    "Output" :"png",
    "Options" : {"height" : "800", "width":"600"}
}

The Html field will be used if supplied. Omit it if you want to use the Url instead.

License

This code is released under the MIT License.

About

A dockerized webservice that uses webkit to convert HTML to PDF or image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published