claird / PyPDF4

A utility to read and write PDFs with Python
obsolete-https://pythonhosted.org/PyPDF2/
Other
330 stars 61 forks source link

`addJS` doesn't escape the JS code #69

Closed NotWearingPants closed 4 years ago

NotWearingPants commented 4 years ago

The JS code is not escaped, so something like:

pdf_writer.addJS(r'app.alert("\x41");')

will alert x41 instead of A.