Reference > Methods > RenderPdf Method

SharpPlot.RenderPdf Method

Return completed chart rendered through through PDF engine.

Example

string mypdf = sp.RenderPdf();

Return Value

The 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


Send comments on this topic
© Dyalog Ltd 2013