pdfrw checkbox AS values gets unwanted parentheses
问题 So I'm trying to mark checkboxes in a PDF file with pdfrw. That means changing the checkboxes "AS" value from the default "/Off" to "/Yes". pdfrw is currently forcing parentheses around my "/Yes" when it writes to file, so it doesn't work. How do I keep it from adding these parentheses? My code: template_pdf = pdfrw.PdfReader(input_pdf_path) annotations = template_pdf.pages[0][/Annots] for annotation in annotations: annotation.update(pdfrw.PdfDict(AS="/Yes")) pdfrw.PdfWriter().write(output