claird / PyPDF4

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

Escape addJS js code by using createStringObject #71

Closed NotWearingPants closed 4 years ago

NotWearingPants commented 4 years ago

PdfFileWriter.addJS used NameObject('(%s)' % code) instead of using createStringObject, which means the code wasn't escaped.

Fixes #69