Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Html to PDF problem rendering controls

$
0
0
Trying to render checkboxes to my PDF from an HTML file.  Result is that the checkboxes are editable, which we don't want.  Following this suggestion, I was able to disable the checkboxes in the output, but the result shows no border around the input control--when the checkbox is checked, we get a check only, and when the checkbox is not checked, we get whitespace.

So I attempted a workaround, replacing the input control with a span that included Bootstrap's glyphicons for unchecked and checked icons.  That failed I believe due to the same issue reported as PDFNEWNET-38331, so consider this a second call for fixing that one. I ended up inserting some img tags, which works, but is not ideal.  While trying to figure that out, by the way, I found that relative URLs do not seem to be supported--is that correct?  I instantiated the HtmlLoadOptions with my base application path, but no relative path in the HTML seemed to be found during conversion, so I ended up putting in a full path.

Ideally, I'd want the HTML conversion to honor the disabled attribute of the input tag, and render a read-only control to the PDF--that'd be simplest.  Any other guidance you can offer?  Thanks

Viewing all articles
Browse latest Browse all 3131

Trending Articles