Skip to content

[FEATURE] Simplify PDF Generation – Avoid Puppeteer Overhead #630

@qubydev

Description

@qubydev

Problem Statement

Currently, Puppeteer is used to convert HTML to PDF, but this approach is excessive for our needs. It is also difficult to set up in cloud environments.

Users input data through a form, and we extract this data as JSON. Since we only need structured data from the form, converting HTML to PDF is unnecessary.

Proposed Solution

Instead of rendering HTML and converting it to PDF, we can directly generate PDFs using a JavaScript-based PDF library. The form data can be processed as JSON and used to build the PDF without requiring an intermediate HTML representation.

Suggested Alternatives

  • Use jsPDF or a similar JavaScript library to generate PDFs directly from form data.
  • This would simplify the implementation, reduce dependencies, and improve cloud compatibility.

Additional Information

If that sounds useful I am happy to help you out with the implementation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions