Skip to content

Commit 2cf8577

Browse files
authored
Fix rotation (ShizukuIchi#14)
fix pdfs with origin rotation other than 0
1 parent 1177900 commit 2cf8577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PDFPage.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
async function render() {
1616
const _page = await page;
1717
const context = canvas.getContext("2d");
18-
const viewport = _page.getViewport({ scale: 1 });
18+
const viewport = _page.getViewport({ scale: 1, rotation: 0 });
1919
width = viewport.width;
2020
height = viewport.height;
2121
await _page.render({

0 commit comments

Comments
 (0)