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

Function create_script

gen_pdf.py:9–13  ·  view source on GitHub ↗
(js)

Source from the content-addressed store, hash-verified

7from pdfrw.objects.pdfarray import PdfArray
8
9def create_script(js):
10 action = PdfDict()
11 action.S = PdfName.JavaScript
12 action.JS = "try {"+js+"} catch (e) {app.alert(e.stack || e)}"
13 return action
14
15def create_page(width, height):
16 page = PdfDict()

Callers 3

create_key_buttonsFunction · 0.85
create_keys_rowFunction · 0.85
gen_pdf.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected