Skip to content

Commit

Permalink
Hide annotations with PDF/UA as required by specification
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Dec 23, 2022
1 parent 0f2e377 commit 0e9426f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions weasyprint/pdf/pdfua.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def pdfua(pdf, metadata, document, page_streams):
content_mapping['Nums'].append(i)
content_mapping['Nums'].append(link)
annotation['StructParent'] = i
annotation['F'] = 2 ** (2 - 1)

# Common PDF metadata stream
add_metadata(pdf, metadata, 'ua', version=1, conformance=None)
Expand Down

0 comments on commit 0e9426f

Please sign in to comment.