c# - Export div content to pdf format -


To export it in a PSD format, use it using the following content exchppp

  I am using feedback. Content type = "app / pdf"; Response.AddHeader ("content-type", "attachment; filename = panel.pdf"); Response.Cache.SetCacheability (HttpCacheability.NoCache); Stringwright SW = new stringwriter (); HtmlTextWriter hw = new HtmlTextWriter (sw); Panel1.RenderControl (hw); Stringreader sr = new string reader (sw.ToString ()); // document pdfDoc = new document (pages A4, 10F, 10F, 100F, 0F); Document pdfDoc = new document (new rectangle (1000f, 1000f)); HTMLWorker htmlparser = new HTMLWorker (pdfDoc); PdfWriter.GetInstance (pdfDoc, Response.OutputStream); PdfDoc.Open (); Htmlparser.Parse (SR); PdfDoc.Close (); Response.Write (pdfDoc); Response.End ();  

This shows the following error.

  Could not find a part of the path 'C: \ Program Files \ General Files \ Microsoft Share \ DevServer \ 10.0 \ Images \ logo.png '.'  

If I hide the logo in Dennis then PDF is exported but alignment is unavailable. How to correct it. The pages I need to export are as follows: Enter image details here

< P>

To export the content to any PDF file, you must follow the basic conventions of the PDF file, they are given in the Appendix below PDF Reference G,


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -