diff --git a/src/lib/components/common/PDFViewer.svelte b/src/lib/components/common/PDFViewer.svelte index 3c20a46bdf..4aa41274eb 100644 --- a/src/lib/components/common/PDFViewer.svelte +++ b/src/lib/components/common/PDFViewer.svelte @@ -687,4 +687,9 @@ :global(.textLayer.selecting .endOfContent) { top: 0; } + + /* pdfjs leaves its text-measuring canvas in at 300x150 for PDFs without text */ + :global(.hiddenCanvasElement) { + display: none; + }