CuteEditor for .NET

Dynamic PDF Creation

Dynamic PDF Creation

You can use Cute Editor to create industry standard PDF files on the fly.

In order to convert HTML to PDF files, you would use SavePDF  Method:

SavePDF Method
The SavePDF method enables you to save the entire contents of the control to a PDF file. If the file name that is passed to the path parameter already exists at the specified directory, the file will be overwritten without notice.

1. Saves the contents of the Cute Editor to a PDF file

// Saves the contents of the Cute Editor to a PDF file

Editor1.SavePDF("document.PDF")

2. Convert HTML to PDF directly

//Convert HTML to PDF directly

string t= t= "<html><body>" + yourstring+ "</body></html>";
CuteEditor.Convertor.PDF.HTML2PDF html2pdf = new CuteEditor.Convertor.PDF.HTML2PDF(t);
html2pdf.Render();
html2pdf.Save(yourpath);