Skip to content

Commit

Permalink
Print form fields
Browse files Browse the repository at this point in the history
Fix #1903.
  • Loading branch information
liZe committed Jul 9, 2023
1 parent 8b2047c commit 75dd745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions weasyprint/pdf/anchors.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def add_inputs(inputs, matrix, pdf, page, resources, stream, font_map,
'Subtype': '/Widget',
'Rect': pydyf.Array(rectangle),
'FT': '/Btn',
'F': 2 ** (3 - 1), # Print flag
'P': page.reference,
'T': pydyf.String(input_name),
'V': '/Yes' if checked else '/Off',
Expand All @@ -176,6 +177,7 @@ def add_inputs(inputs, matrix, pdf, page, resources, stream, font_map,
'Subtype': '/Widget',
'Rect': pydyf.Array(rectangle),
'FT': '/Tx',
'F': 2 ** (3 - 1), # Print flag
'P': page.reference,
'T': pydyf.String(input_name),
'V': pydyf.String(value),
Expand Down

0 comments on commit 75dd745

Please sign in to comment.