parallax/jsPDF

Cant set CheckBox state at the second time

Open

#3,321 建立於 2021年11月19日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (28,280 star) (4,596 fork)batch import
Bugdifficulty:mediumhelp wanted

描述

Steps to reproduce:

  1. open sandbox http://raw.githack.com/MrRio/jsPDF/master/
  2. insert code:

var doc = new jsPDF(); doc.text('CheckBox:', 10, 125); var checkBox = new jsPDF.AcroForm.CheckBox(); checkBox.fieldName = "CheckBox1"; checkBox.Rect = [50, 118, 10, 10]; checkBox.appearanceState = 'Off' //checked On/Off doc.addField(checkBox);

The checkbox does not turn on second time. Issue In Acrobat Reader reproduced too for saved document

貢獻者指南