RichEditDocumentServer srv = new RichEditDocumentServer();
srv .LoadDocument("fdhsdfd dshdsfgds");
using(Stream str= File.Create(@"D:test.pdf"))
{
srv .ExportToPdf(str);
}
Process.Start(@"D:test.pdf");

Khan Abrar AhmedRank #778 · 3K reputationPosted Jul 16, 2014, 10:19 AM EDT
http://www.c-sharpcorner.com/UploadFile/b629e0/creating-pdf-from-html-through-jspdf/#ReadAndPostComment