From 82862c79b69666faef47554afcf221381f789a40 Mon Sep 17 00:00:00 2001 From: Manse Date: Fri, 8 Aug 2025 18:02:44 -0300 Subject: [PATCH] docs: fix readme code example rgb wasan't imported from pdf-lib and the 'pdf-lib-draw-table' import was missing the '-beta' from the package's name --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index f97b874..7f0d4a0 100644 --- a/readme.md +++ b/readme.md @@ -34,8 +34,8 @@ string - As in the example below. This is drawn as wrapped text, no word splitti **OR AN ARRAY OF ANY COMBO OF THE ABOVE** If you provide an array we automatically put each item on its own line, as such if you need to manually new line text, this is a way of doing that. ``` -import { PDFDocument } from 'pdf-lib'; -import { drawTable } from 'pdf-lib-draw-table'; +import { PDFDocument, rgb } from 'pdf-lib'; +import { drawTable } from 'pdf-lib-draw-table-beta'; import fs from 'fs'; (async () => {