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
The PDF document provided in Issue #74 can currently be read by our library. However, we have encountered a new problem with the document. Specifically, the document uses checkboxes with radio button behavior, which is causing an error since our library does not implement this mechanism for checkboxes.
constdata=fs.readFileSync("Washington.Vehicle_Vessel.Bill.of.Sale.Form.1.pdf");constdoc=awaitPDFDocument.load(data);constcheckBox=doc.getComponentById(119,0,CheckBox);consttextBox=doc.getComponentById(114,0,TextEditor);constisHybrid=doc.hasHybridReference();assert.equal(isHybrid,true);constclone=awaitdoc.clone({useXRefTable: true,disableAscii85Encoding: true,disableCompressedStreams: true,});constcloneCheckBox=clone.getComponentByName(checkBox.name,CheckBox);// TypeError: Cannot get PDF Component from the Document. Component doesn't require to the requested type.cloneCheckBox.checked=true;constcloneTextBox=clone.getComponentByName(textBox.name,TextEditor);cloneTextBox.text="123456789";writeFile(awaitclone.save());
To address the described issue, it would be necessary to implement a CheckBoxGroup component similar to the RadioButtonGroup or create a common class for them. The only difference between these components lies in their rendering and the presence of a flag indicating that the RadioButton is a circular button.
The text was updated successfully, but these errors were encountered:
The PDF document provided in Issue #74 can currently be read by our library. However, we have encountered a new problem with the document. Specifically, the document uses checkboxes with radio button behavior, which is causing an error since our library does not implement this mechanism for checkboxes.
To address the described issue, it would be necessary to implement a CheckBoxGroup component similar to the RadioButtonGroup or create a common class for them. The only difference between these components lies in their rendering and the presence of a flag indicating that the RadioButton is a circular button.
The text was updated successfully, but these errors were encountered: