1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-03 23:48:07 +03:00

Dest key added to the debug annotations

This commit is contained in:
yanntrividic 2024-08-30 15:04:38 +02:00 committed by Guillaume Ayoub
parent b33b917781
commit 7276b5f282

View File

@ -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)