T
Tem
Hello
how would i go about generating PDF on the fly with asp.net?
i found some itextsharp examples that can create PDF file, but i would like
to write a cutome handler than generates PDFs on the fly.
This is what i have some far
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "application/pdf";
context.Response.AddHeader("content-disposition", "attachment;
filename=\"document.pdf\"");
Document document = new Document();
PdfWriter.GetInstance(document, not sure how to put here);
document.Open();
document.Add(new Paragraph("hello world"));
document.Close();
}
how would i go about generating PDF on the fly with asp.net?
i found some itextsharp examples that can create PDF file, but i would like
to write a cutome handler than generates PDFs on the fly.
This is what i have some far
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "application/pdf";
context.Response.AddHeader("content-disposition", "attachment;
filename=\"document.pdf\"");
Document document = new Document();
PdfWriter.GetInstance(document, not sure how to put here);
document.Open();
document.Add(new Paragraph("hello world"));
document.Close();
}