The <input> tag is essentially a text box in html, and the value that the tag contains is displayed in that text box. More information about <input> tag can be found here.

Howver, when the tag had the number attribute (<input type="number">) in previous releases, an empty rectangle would be rendered in the resulting PDF. 


However, in the latest release of iText and pdfHTML 3.0.1, this behavior has been fixed and the number is correctly displayed:

Example code

package misc.articleExamples.input; import com.itextpdf.html2pdf.HtmlConverter; import; import; import; public class NegativeInputHtml { public static void main(String[] args) { String html = "\n" + "\n" + "\n" + "\n" + "
\n" + "
\n" + "\n" + ""; try { HtmlConverter.ConvertToPdf(html, new FileStream("src/main/java/misc/articleExamples/out.pdf", FileMode.Create); } catch (IOException e) { Console.WriteLine(e.Message); } } } }