Skip to content

Commit

Permalink
place annotations on top of the PDF and below the text layers
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Aug 20, 2024
1 parent f0b1b19 commit 4fe89b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion streamlit_pdf_viewer/frontend/src/PdfViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default {
outline: `${props.args.annotation_outline_size * scale}px solid`,
outlineColor: annoObj.color,
cursor: 'pointer',
'z-index': 10
'z-index': 1
};
if (index) {
loadedAnnotations.value.push(`annotation-${index}`);
Expand Down Expand Up @@ -139,6 +139,7 @@ export default {
const textContent = await page.getTextContent();
const textLayerDiv = document.createElement("div");
textLayerDiv.className = "textLayer"
textLayerDiv.style = "z-index: 2"
// textLayerDiv.style.position = "absolute";
// textLayerDiv.style.height = `${viewport.height}px`;
// textLayerDiv.style.width = `${viewport.width}px`;
Expand Down

0 comments on commit 4fe89b9

Please sign in to comment.