Rendering PDF in software projects can be done with different ways and one of the easiest ways to do it is to craft HTML page and render it with Playwright or Puppeteer. Creating the HTML is the easiest part but if you’re not using the documented ways of using Playwright and Puppeteer and prefer to use Alpine Linux or something similar, things get more complex with dependencies.
Here’s two ways to use either Playwright or Puppeteer with Alpine Linux on Docker.
Dockerfile for Playwright and Puppeteer with Chromium and pnpm.
Rest of the rendering part is your’s to figure out.
Leave a Reply