Hi, I have a web page and user Input some Info in this page through text box
then I want to print this info on a PDF document in ASP .Net after click the submit Button.
How Is this possible?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rahul PrasadPosted Jul 24, 2016, 9:35 PM
alice yangPosted Jul 24, 2016, 9:34 PM
VenkatPosted Jul 23, 2016, 1:35 AM
Ashiwani SharmaPosted Jul 22, 2016, 5:21 AM
kalu singh raoPosted Jul 22, 2016, 5:07 AM
{
Document document = new Document();
string path = Server.MapPath("~/PDFs");
PdfWriter.GetInstance(document, new FileStream(path + "/TestDoc2.pdf", FileMode.Create));
document.Open();
document.Add(new Phrase(this.txtTextBox1.Text.Trim()));
document.Close();
}