IronPdf / Iron-Pdf-Documentation

ReadTheDocs Build Files for IronPDF C#/.Net PDF Library http://ironpdf.com
8 stars 2 forks source link

Inputs not rendered correctly #16

Closed jussimattila closed 3 years ago

jussimattila commented 3 years ago

Hi,

I updated today to the latest version of IronPdf 2021.9.3678, and switched from HtmlToPdf to ChromePdfRendered. HTML looks like this in Chrome: image

Output PDF looks like this, text is missing and only a box is visible: image

The problematic element is an input with some styling: <input type='text' class='report-info' value='Bruce Wayne' />

.report-info {
  font-family:Fira Sans,Helvetica,Arial,sans-serif;
  font-size:14px;
  text-align:left;
  text-overflow:ellipsis;
  border:0;
  background:transparent;
  padding:0;
  width:100%
}
jussimattila commented 3 years ago

Found it: option CreatePdfFormsFromHtml - Turns all HTML forms elements into editable PDF forms. Setting it to false allowed the input contents to be rendered!