Sign inSign up

cegeka/wkhtmltopdf-service

By cegeka

•Updated over 8 years ago

wkhtmltopdf service, modifications on top of https://github.com/Grouptree/docker-wkhtmltopdf-service

Image
0

1.6K

cegeka/wkhtmltopdf-service repository overview

⁠wkhtmltopdf-service

There are 2 volumes which can be used to load a configuration:

  • docker-fonts-initdb.d: can be used to add custom fonts to the image.
  • docker-resources-initdb.d: can be used to add resources, such as a table of contents XSL.

⁠Example

pdf:
    image: cegeka/wkhtmltopdf-service
    volumes:
      - ./init/wkhtmltopdf-service/fonts:/docker-fonts-initdb.d
      - ./init/wkhtmltopdf-service/xsl:/docker-resources-initdb.d

⁠Usage

Example of a POST request:

{
  "url": "http://www.cegeka.com",
  "options": {
    "margin-bottom": "1cm",
    "orientation": "Landscape",
    "grayscale": true
  },
  "cookies": {
    "foo": "bar",
    "baz": "foo"
  }
}

Options can be set using the wkhtmltopdf properties. More information can be found here⁠.

Tag summary

Content type

Image

Digest

Size

223.6 MB

Last updated

over 8 years ago

docker pull cegeka/wkhtmltopdf-service