stephanrauh / ngx-extended-pdf-viewer

A full-blown PDF viewer for Angular 16, 17, and beyond
https://pdfviewer.net
Apache License 2.0
450 stars 168 forks source link

Checkboxes with non-boolean export values can't be set by default from Angular #2295

Closed stephanrauh closed 2 months ago

stephanrauh commented 2 months ago

The form demo (https://pdfviewer.net/extended-pdf-viewer/forms) has three checkboxes set in the Angular code, put the PDF file only renders two of them checked:

image image

The reason is that this Angular demo uses boolean values to represent the checkbox state, but in the PDF file they have the values "Yes" and "No". The middle two checkboxes show correctly because they are already checked in the PDF document itself.

stephanrauh commented 2 months ago

The bugfix is going to land with version 20.