Skip to content

Commit

Permalink
Dest key added to the debug annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
yanntrividic authored and liZe committed Sep 28, 2024
1 parent b33b917 commit 7276b5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions weasyprint/pdf/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def debug(pdf, metadata, document, page_streams, attachments, compress):
'T': pydyf.String(id), # id added as metadata
})

# The next line makes all of this relevent to use
# with PDFjs
annotation['Dest'] = pydyf.String(id)

pdf.add_object(annotation)
page['Annots'].append(annotation.reference)

Expand Down

0 comments on commit 7276b5f

Please sign in to comment.