danfickle / danfickle/openhtmltopdf

[Acrobat Reader]: checked attribute not working for <input type="radio"> unless its values are integers starting from 0

Open
#547 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

Checkboxes are generated but not checked. Nothing of `checked=""` or `checked="checked"` works. Just `checked` without value fails on parsing.

I tried my own file and an example from https://github.com/danfickle/openhtmltopdf/wiki/Form-Controls.

The trivial example of HTML file can look like this:
```

Radios checked test for PDF conversion

Radio 1
Radio 2

```

And the generated PDF will look like this:
![image](https://user-images.githubusercontent.com/15837869/92145521-a3071e80-ee18-11ea-8955-b974305ff79d.png)

Notably, the `checked` attribute works for the checkbox:
![image](https://user-images.githubusercontent.com/15837869/92145770-02652e80-ee19-11ea-9050-7bac03c8cffe.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.