|
Rank: Advanced Member Groups: Member
Joined: 1/22/2014 Posts: 38
|
When we put input checkboxes into our HTML and use HTML to PDF we end up with gradient checkbox controls that are awful on output. Attempts to CSS stlye the checkboxes to simple squares with black borders and a checkmark when selected have not worked.
Any ideas how to correctly do this without introducing images or custom fonts?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Can you provide a small test HTML file so that we can see the problem here?
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 1/22/2014 Posts: 38
|
Here's the PDF output: https://imgur.com/a/ZpZCyQo#5VXbhP1It was created using input checkbox selected tags.
|
|
Rank: Advanced Member Groups: Member
Joined: 1/22/2014 Posts: 38
|
Here is the HTML
<table><tr><td><input type="checkbox" value="A" /></td><td>A</td></tr><tr><td><input type="checkbox" value="B" /></td><td>B</td></tr><tr><td><input type="checkbox" value="C" checked /></td><td>C</td></tr><tr><td><input type="checkbox" value="D" /></td><td>D</td></tr></table>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Internally EO.Pdf uses a built-in Chromium based browser engine to render the HTML. The current version of EO.Pdf is based on Chromium V81 and this is how Chromium V81 render a checkbox. We are working on a new version that will be based on Chromium V86. Chromium V86 will render checkbox like the current Chrome does. However you should be able to use CSS to customize checkbox though. As a test, you can use our EOPdfDemo sample application to conver the following Url: https://www.w3schools.com/howto/howto_css_custom_checkbox.aspYou should see checkbox being customized properly in the result PDF file. Thanks!
|
|