diff --git a/src/pdf/render/linkAnnotation.ts b/src/pdf/render/linkAnnotation.ts index 78860a0a..19afeb5f 100644 --- a/src/pdf/render/linkAnnotation.ts +++ b/src/pdf/render/linkAnnotation.ts @@ -1,4 +1,4 @@ -import { PDFName, PDFArray, PDFBool, PDFString, type PDFPage } from 'pdf-lib' +import { PDFName, PDFArray, PDFString, type PDFPage } from 'pdf-lib' export interface LinkRect { x: number @@ -23,9 +23,7 @@ export function addLinkAnnotation(page: PDFPage, rect: LinkRect): void { Rect: [rect.x, rect.y, rect.x + rect.width, rect.y + rect.height], Border: [0, 0, 0], A: actionDict, - F: 0, }) - annotDict.set(PDFName.of('NewWindow'), PDFBool.True) const annots = page.node.lookup(PDFName.of('Annots'), PDFArray) if (annots) {