Hi Devparsafardd,
Greetings from Syncfusion support,
We have validated your reported query. You can get the RichTextEditor conten using the ejs-for in the server and save the Html value returned as PDF. We have also prepared a sample that tried to meet your requirements of retriving the HTML content from the editor.
Index.cshtml
|
@model WebApplication4.Controllers.HomeController
<form method="post">
<div class="form-group">
<div class="RTE_wrap">
<ejs-richtexteditor ejs-for="@Model.RteValue" id="defaultRTE">
</ejs-richtexteditor>
</div>
</div>
<br />
<button type="submit" class="e-btn">DownLoad as PDF</button>
</form>
|
HomeController.cs
|
[HttpPost]
public IActionResult Index(string RteValue)
{
//RTE HTML value returned
var valueRTE = RteValue;
return View();
}
|
Please let us know if the solution helps,
Regards,
Indrajith