[PR #2281] [MERGED] fix: use skia-canvas with pdfjs to avoid N-API errors #2180

Closed
opened 2026-02-26 20:32:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2281
Author: @Mythie
Created: 12/4/2025
Status: Merged
Merged: 12/4/2025
Merged by: @Mythie

Base: mainHead: patch/napi-rs


📝 Commits (3)

  • 9039968 chore: patch @napi-rs/canvas
  • 499e399 chore: patch
  • 9a1a2b7 fix: unpatch napi/canvas use custom skia factory

📊 Changes

1 file changed (+42 additions, -4 deletions)

View changed files

📝 packages/lib/server-only/ai/pdf-to-images.ts (+42 -4)

📄 Description

Use custom CanvasFactory for pdfjs so we can continue to use skia-canvas.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2281 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 12/4/2025 **Status:** ✅ Merged **Merged:** 12/4/2025 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `patch/napi-rs` --- ### 📝 Commits (3) - [`9039968`](https://github.com/documenso/documenso/commit/9039968cd2772c6e643675e6e53a3d2d8826d737) chore: patch @napi-rs/canvas - [`499e399`](https://github.com/documenso/documenso/commit/499e399245b6e5914894c54cd600da9d9a92b834) chore: patch - [`9a1a2b7`](https://github.com/documenso/documenso/commit/9a1a2b7f13bc51d99a60e95d76f2bd80fb0c7077) fix: unpatch napi/canvas use custom skia factory ### 📊 Changes **1 file changed** (+42 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/lib/server-only/ai/pdf-to-images.ts` (+42 -4) </details> ### 📄 Description Use custom CanvasFactory for pdfjs so we can continue to use skia-canvas. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:32:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#2180
No description provided.