Project description
TranslatedThe service should provide a small predictable HTTP API: send a template identifier or inline template together with a JSON data object and get back either a binary PDF or a link to a saved file. Templates are HTML and CSS, so we expect proper handling of page size and margins, repeating headers and footers, page numbering, clean page breaks and embedded custom fonts so the result matches our brand exactly. Server-side rendering must be deterministic: identical input always produces byte-comparable output. For us, correct handling of tables that break across pages, unicode and high-resolution logos matters. Performance matters too—the endpoint should quickly render a typical multi-page invoice and handle a reasonable spike of concurrent requests without falling over.
Propose a sound engine choice and justify it, package the service in a container for independent deployment and include an approach for template management, versioning and basic API authentication. Give clear documentation and a working example so our backend team integrates everything in one day. When you respond, share your experience with headless rendering and font embedding.
— Clean HTTP API: template + JSON in, PDF out
— Pixel-perfect layout with headers, footers, page numbering and breaks
— Custom font embedding and full unicode support
— Deterministic reproducible server-side rendering
— Containerization, independent deployment and API authentication
— Documentation and working integration example