Skip to content

Edit PDFs on your own device: text, signatures, form filling, highlights, white-out, merge, split, reorder and rotate pages. In the browser or as a Windows app. English and Turkish.

Test: wait until the first page is drawn at full size

Talkdedsec03152c845849
diff --git a/scripts/smoke.mjs b/scripts/smoke.mjs
index 8a1dd62..6004c29 100644
--- a/scripts/smoke.mjs
+++ b/scripts/smoke.mjs
@@ -47,6 +47,7 @@ try {
await rendered(page);
check(await page.locator('.sheet').count() === 2, 'sample opens with 2 pages');
check(await page.locator('.thumb').count() === 2, 'page list shows 2 thumbnails');
+ await page.waitForFunction(() => document.querySelector('.sheet canvas.paper')?.width > 400, null, { timeout: 15000 });
const lit = await page.evaluate(() => {
const c = document.querySelector('.sheet canvas.paper');
const g = c.getContext('2d');