PDF: fix links

This commit is contained in:
John Factotum
2024-09-28 14:29:47 +08:00
parent 1e952102bd
commit 693341f008
2 changed files with 14 additions and 12 deletions
+1
View File
@@ -51,6 +51,7 @@ const render = async (page, doc, zoom) => {
await new pdfjsLib.AnnotationLayer({ page, viewport, div }).render({
annotations: await page.getAnnotations(),
linkService: {
goToDestination: () => {},
getDestinationHash: dest => JSON.stringify(dest),
addLinkAttributes: (link, url) => link.href = url,
},