Skip to content

Commit fe24e3b

Browse files
committed
feat: Improve case studies pdf render resolution
1 parent c110ee8 commit fe24e3b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/case-studies/aerospace-design-and-manufacturing.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import Layout from '~/layouts/PageLayout.astro';
3737

3838
// Fit to container width
3939
const viewport = page.getViewport({ scale: 1 });
40-
const scale = container.clientWidth / viewport.width;
40+
const scale = 3 * container.clientWidth / viewport.width;
4141
const scaledViewport = page.getViewport({ scale });
4242

4343
// Create a new canvas for this page

src/pages/case-studies/coastal-dynamics.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import Layout from '~/layouts/PageLayout.astro';
3737

3838
// Fit to container width
3939
const viewport = page.getViewport({ scale: 1 });
40-
const scale = container.clientWidth / viewport.width;
40+
const scale = 3 * container.clientWidth / viewport.width;
4141
const scaledViewport = page.getViewport({ scale });
4242

4343
// Create a new canvas for this page

0 commit comments

Comments
 (0)