(js)
| 7 | from pdfrw.objects.pdfarray import PdfArray |
| 8 | |
| 9 | def 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 | |
| 15 | def create_page(width, height): |
| 16 | page = PdfDict() |
no outgoing calls
no test coverage detected