Docker implementation of Carbone.io.
827
Docker implementation of Carbone.io.
https://github.com/Ideolys/carbone
Test Locally:
docker build -t docker-carbone . && docker run -it -p 3000:3000 docker-carbone
Container launches an Express web server that listens for several API:
/generate with the following body/query param:
{
template: "/path/to/template',
filename: "filename.pdf",
json: {
<report data passed>
},
options: {
< carbone processing options, such as "convertTo: pdf" >
}
}
/template that will return you the list of template available/template requiring Multipart Form Data containing template as file.The API support image replacement with some caveats. First of all, use the following body
{
template: "/path/to/template',
filename: "filename.pdf",
imagesReplace: [{
source: "https://klinikpintar.id/images/banner-image-hs.png",
destination: "word/media/image3.png"
}],
json: {
<report data passed>
},
options: {
< carbone processing options, such as "convertTo: pdf" >
}
}
Important points:
Caveats:
Content type
Image
Digest
Size
826.9 MB
Last updated
over 5 years ago
docker pull medigoid/docker-carbone