MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / create_button

Function create_button

gen_pdf.py:59–66  ·  view source on GitHub ↗
(name, x, y, width, height, value)

Source from the content-addressed store, hash-verified

57 """
58
59def create_button(name, x, y, width, height, value):
60 button = create_field(name, x, y, width, height, f_type=PdfName.Btn)
61 button.AA = PdfDict()
62 button.Ff = 65536
63 button.MK = PdfDict()
64 button.MK.BG = PdfArray([0.90])
65 button.MK.CA = value
66 return button
67
68def create_key_buttons(keys_info):
69 buttons = []

Callers 2

create_key_buttonsFunction · 0.85
create_keys_rowFunction · 0.85

Calls 1

create_fieldFunction · 0.85

Tested by

no test coverage detected