chore(pdf-server): switch pdf-lib to maintained @cantoo/pdf-lib fork (#651)

The original pdf-lib package has been unmaintained since Nov 2021.
@cantoo/pdf-lib is an actively maintained, API-compatible fork with
ongoing releases and accumulated bugfixes.

Also updates test assertions from the deprecated PDFNumber.value() to
PDFNumber.asNumber() per the fork's API guidance.
This commit is contained in:
Olivier Chafik 2026-05-08 13:01:54 +01:00 • committed by GitHub
commit 3cf5b588a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,7 +8,12 @@
*/
import http from "node:http";
import type { AddressInfo } from "node:net";
import { PDFDocument, PDFName, PDFString, StandardFonts } from "pdf-lib";
import {
PDFDocument,
PDFName,
PDFString,
StandardFonts,
} from "@cantoo/pdf-lib";
export interface RangeServerStats {
/** Total bytes written across all responses (sum of slice lengths). */