Automattic / Automattic/node-canvas

The PDF file created by createPDFStream becomes larger in size, and createWriteStream is very slow

Open
#2,615 2 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

### Version of node-canvas

4.0.0-rc3

### Version of node

v20.19.0

### What operating system does the problem occur on?

Linux

### Steps to reproduce

Create a large number of text-to-PDF conversions to achieve the desired result.

### Additional information/comments

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported behavior through createPDFStream and createWriteStream on node-canvas 4.0.0-rc3 with Node v20.19.0 on Linux, using many text-to-PDF conversions. Compare PDF size and write speed, then identify the regression and add coverage for the corrected behavior; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.