diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.ts index 5400de0ea..164bc000d 100644 --- a/app/src/asset/anno.ts +++ b/app/src/asset/anno.ts @@ -553,12 +553,12 @@ const showHighlight = (selected: IPdfAnno, pdf: any, hl?: boolean) => { if (!textLayerElement.lastElementChild) { return; } - const viewport = page.viewport; + + const viewport = page.viewport.clone({rotation: 0}); // rotation https://github.com/siyuan-note/siyuan/issues/9831 if (textLayerElement.lastElementChild.classList.contains("endOfContent")) { textLayerElement.insertAdjacentHTML("beforeend", "
"); } textLayerElement = textLayerElement.lastElementChild; - let html = `