You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a minimal, complete example that shows the issue:
from PyPDF2 import PdfFileWriter
writer=PdfFileWriter()
writer.addBlankPage(width=200, height=200)
writer.add_js("this.print({bUI:true,bSilent:false,bShrinkToFit:true});")
with open("output.pdf", "wb") as output_stream:
writer.write(output_stream)
$ ./genpdf.py
Incorrect first char in NameObject:((this.print({bUI:true,bSilent:false,bShrinkToFit:true});))
Traceback
The text was updated successfully, but these errors were encountered:
Replace this: What happened? What were you trying to achieve?
Environment
Which environment were you using when you encountered the problem?
$ python -m platform Linux-5.19.0-kali2-amd64-x86_64-with-Kali-kali-rolling-kali-rolling $ python -c "import PyPDF2;print(PyPDF2.__version__)" 2.11.1
Code + PDF
This is a minimal, complete example that shows the issue:
Traceback
The text was updated successfully, but these errors were encountered: