FeatureFuel
2

Puppeteer Support? PDF Generation

Source: directus/directus#24673 · opened by @NilsBaumgartner1994
Summary So it comes that we are having hard times generating nice pdfs. What discussed was the brilliant idea to render using the liquid templates a HTML document. And then you need only to transform the html to a pdf. So and here comes the big problem. Which library to use? • [wkhtmltopdf]( needs a binary installed. No nice jest testing or easy testing in CI/CD • [puppeteer]( - Seems to work for some people? But when i add that into my directus-extension (^24.3.0) then i get a ton of warnings on building the extension and when running it i get a bunch of errors. A kind of workaround would be to install puppeteer-core and chrom/chromium in Dockerfile, then errors are gone, but it requires to manually install a browser. • [html-pdf]( Deprecated • html_to_pdf - Uses puppeteer • playwright - Requires a chromium browser to be installed Basic Example When using puppeteer i get the following warnings during "Building Directus extension&quo…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests