I am using iTextSharp to convert html to pdf.But i am unable to put a check box in pdf.Please help. Document pdoc = new Document(PageSize.A4, 72, 72, 82, 72. I want to put Checkbox,Textbox and RadioButton. Create a PDF Library to add checkbox. How to retrieve the data for the checkboxes in the pdf using iTextSharp. I am using iTextSharp to convert html to pdf.But i am unable to put a check box in pdf.Please help. Installshield limited edition for visual studio. Document pdoc = new Document(PageSize.A4, 72, 72, 82, 72); MemoryStream ms = new MemoryStream(); PdfWriter writer = PdfWriter.GetInstance(pdoc, ms); pdoc.Open(); iTextSharp.text.html.simpleparser.HTMLWorker hw = new iTextSharp.text.html.simpleparser.HTMLWorker(pdoc); hw.Parse(new StringReader(')); // hw.Parse(new StringReader(myDiv.InnerHtml)); pdoc.Close(); Response.AddHeader('Content-Type', 'application/pdf'); Response.AddHeader('Content-Disposition', 'attachment;filename=Untitled.pdf'); Response.OutputStream.Write(ms.GetBuffer(), 0, ms.GetBuffer().Length); Response.End(); • •. Hi, You could use spire to convert html to PDF and add checkbox to pdf, it has both free and commercial edition, refer to below links: code snippet for your reference: PdfCheckBoxField checkboxField = new PdfCheckBoxField(page, fieldId); float checkboxWidth = fieldHeight - 2 * padding; float checkboxHeight = checkboxWidth; checkboxField.Bounds = new RectangleF(fieldX, fieldY + padding, checkboxWidth, checkboxHeight); checkboxField.BorderWidth = 0.25f; checkboxField.Style = PdfCheckBoxStyle.Cross; checkboxField.Required = required; form.Fields.Add(checkboxField). ![]() Insert Checkbox In PdfI want to create a PDF document. I have created one table with 2 columns. I used to PdfPCell to put my data into the table.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |