(x, y, size, txt)
| 49 | return annotation |
| 50 | |
| 51 | def create_text(x, y, size, txt): |
| 52 | return f""" |
| 53 | BT |
| 54 | /F1 {size} Tf |
| 55 | {x} {y} Td ({txt}) Tj |
| 56 | ET |
| 57 | """ |
| 58 | |
| 59 | def create_button(name, x, y, width, height, value): |
| 60 | button = create_field(name, x, y, width, height, f_type=PdfName.Btn) |