Skip to content

Commit 0e9426f

Browse files
committed
Hide annotations with PDF/UA as required by specification
1 parent 0f2e377 commit 0e9426f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

weasyprint/pdf/pdfua.py

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def pdfua(pdf, metadata, document, page_streams):
114114
content_mapping['Nums'].append(i)
115115
content_mapping['Nums'].append(link)
116116
annotation['StructParent'] = i
117+
annotation['F'] = 2 ** (2 - 1)
117118

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

0 commit comments

Comments
 (0)