pdfmake icon indicating copy to clipboard operation
pdfmake copied to clipboard

User Password Breaks Document Links

Open MarkoH17 opened this issue 3 years ago • 1 comments

Description Adding a userPassword to the document definition breaks document links (external links via link, internal links via linkToDestination). It appears that page links via linkToPage still work properly.

I've included a sample document definition to test on http://pdfmake.org/playground.html.

var dd = {
	content: [
		{ text: 'Link to http://google.com (broken)', link: 'http://google.com' },
		{ text: 'Link to page two (working)', linkToPage: 2 },
		{ text: 'Link to header on on next page (broken)', linkToDestination: "header2" },
		{text: "Header!", pageBreak: 'before', id: "header2"}
	],
	userPassword: '123', //Links break when a userPassword is specified
}

MarkoH17 avatar Sep 22 '21 15:09 MarkoH17

Is there an update on this issue?

@liborm85 - not sure if you can point me in a specific direction, but I'd be happy to take a look at putting a PR together for this.

MarkoH17 avatar Nov 30 '21 14:11 MarkoH17