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:
parent
b33b917781
commit
7276b5f282
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user