hi all
how a Response a pdf file to a client machine
here my code and what have to add...
esponse.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment;filename=CardEx.pdf");
string file = Server.MapPath("~/Admin/doc/invoice/Invoice.pdf");
PdfReader reader = new PdfReader(file);
PdfStamper outStamper = new PdfStamper(reader,Response.OutputStream);
outStamper.AcroFields.SetField("T1", "lasantha");
// Response.Write();
outStamper.Close();
Response.End();
-----
Lasantha SE(.net)
My Coding Issues
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Download-PDF-to-a-client-machine-tp3340800p3340800.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText® is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php