pdfmake
pdfmake copied to clipboard
User Password Breaks Document Links
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
}
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.