| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Methods > RenderPdf Method SharpPlot.RenderPdf MethodReturn completed chart rendered through through PDF engine. Examplestring mypdf = sp.RenderPdf(); Return ValueThe result of this call is a string representation of an Adobe PDF. This may be written to file as text or returned via HTTP as type “application/pdf” to have it displayed by a web-browser. // Create a PDF and write the chart to it ... StreamWriter sw = new StreamWriter("Chart1.pdf",false,System.Text.Encoding.ASCII); string chart = sp.RenderPdf(PdfMode.ShowOutlines); sw.Write(chart); sw.Close(); Overloads
See also ...SharpPlot Members | SavePdf Method | PdfMode Enumeration |