Skip to content

Commit 3880f8f

Browse files
committed
fix scaling hihi
1 parent e19c26d commit 3880f8f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

node/export.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export async function pdf(url, pdf_path, options, screenshot_dir, screenshot_opt
2323
await page.setViewport({
2424
width: 1000,
2525
height: 1000,
26+
deviceScaleFactor: screenshot_options.scale,
2627
})
2728

2829
await waitForPlutoBusy(page, false, { timeout: 30 * 1000 })

test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ outdir = tempname(; cleanup=false)
1616

1717
@info "Files" outfile outdir testfile testfile2
1818

19-
result = pluto_to_pdf(testfile, outfile, outdir; open=is_CI, options=(format="A5",))
19+
result = pluto_to_pdf(testfile, outfile, outdir; open=is_CI, options=(format="A5",), screenshot_options=(scale=4,))
2020

2121
@test result == outfile
2222

0 commit comments

Comments
 (0)