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

Function create_text

gen_pdf.py:51–57  ·  view source on GitHub ↗
(x, y, size, txt)

Source from the content-addressed store, hash-verified

49 return annotation
50
51def 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
59def create_button(name, x, y, width, height, value):
60 button = create_field(name, x, y, width, height, f_type=PdfName.Btn)

Callers 1

gen_pdf.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected