An Express server as a PDF factory for CaptoMD medical records, calling 2 separate services:
npm installrun-local.envnpm run start-localWill download a PDF:
[POST] http://localhost:8080/ with body payload (application/json):
{
"header": "<header id='running-header-big'>…</header><header id='running-header-small'>…</header><footer>…</footer>",
"content": "<md-emr-print-body>…</md-emr-print-body>",
"title": "",
"lang": "fr|en",
"footer": "Line One<br>DIC : 3-4-4"
}
"header" and "content" fields are mandatory.
Note: "footer" can be a string or an array of strings (max: 2)
Content type
Image
Digest
sha256:51b38cb91…
Size
91.6 MB
Last updated
over 3 years ago
docker pull captomd/pdfizer:snyk-fix-edfc4c6aeb43296d94385f84b666cba2