refactor(link-layer): migrate to EmbedPDF v2.6.2 annotation state for link rendering and improve link handling (#5760)

This commit is contained in:
Balázs Szücs
2026-02-23 13:34:05 +00:00
committed by GitHub
parent 30c258ce0b
commit 340224b40b
4 changed files with 304 additions and 315 deletions
@@ -765,13 +765,10 @@ export function LocalEmbedPDF({ file, url, fileName, enableAnnotations = false,
/>
)}
{/* LinkLayer uses pdf-lib for link extraction, rendered last for click priority */}
{/* LinkLayer uses EmbedPDF annotation state for link rendering */}
<LinkLayer
documentId={documentId}
pageIndex={pageIndex}
_pageWidth={width}
_pageHeight={height}
pdfUrl={pdfUrl}
/>
</div>
</PagePointerProvider>