Click here to Skip to main content
15,904,653 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi everyone, i have a pdf file having some fields.I want to insert the data into those fields from the web page....will u plz help me?????

will u anyone tell me the code .....
Posted
Updated 24-Feb-15 1:33am
v2
Comments
manak chand 24-Feb-15 8:08am    
Why do you want to do same.. you can print to PDF the report or Screen text..
NagaNimesh 11474558 24-Feb-15 11:33am    
tanq for the rly but i cant understood wt u r saying ,
"Fill in PDF Form Fields Using the Open Source iTextSharp DLL from asp.net web page"
will u plz tell me...
NagaNimesh 11474558 25-Feb-15 1:41am    
can anyone tell me the code for "Fill in PDF Form Fields Using the Open Source iTextSharp DLL from asp.net web page", programatically???????????

1 solution

tanq mr.manak chand for ur suggestion i have successfully executes here is my code
protected void btn_Click(object sender, EventArgs e)
{
string path = "sourse path";
PdfReader rdr = new PdfReader("source path");
PdfStamper stamper = new PdfStamper(rdr, new System.IO.FileStream("destination path" , System.IO.FileMode.Create));
stamper.AcroFields.SetField("softwarename", txtSoftware.Text);
stamper.AcroFields.SetField("softwaretype", txtSoftwaretype.Text);
stamper.AcroFields.SetField("license", textLicense.Text);
stamper.AcroFields.SetField("category", cbCategory.Text);
//foreach (string item in lbPlatform.SelectedItems) platforms += item + ", ";
stamper.AcroFields.SetField("platforms", platforms.Text);
stamper.Close();
rdr.Close();
display.Text="pdf generated successfully";
System.Diagnostics.Process.Start(path);
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900