Hi there. I've made a new project for testing and it ocurred the same. configuring or not the BlinkPath.
Using Macbook Pro M2.
C# .NetCore MVC
Syncfusion.Pdf.PdfException: "Blink files are missing at /BlinkBinaries/"
at Syncfusion.HtmlConverter.BlinkConverter.GetBlinkPath()\n at Syncfusion.HtmlConverter.BlinkConverter.Convert(String url)\n at Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(String url)\n at SYNCFUSION_HTML_TO_PDF.Controllers.HomeController.Export() in /Users/user/Projects/SYNCFUSION-HTML-TO-PDF/SYNCFUSION-HTML-TO-PDF/Controllers/HomeController.cs:48
Sample:
public IActionResult Export()
{
//Initialize HTML converter
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.Blink);
// Blink converter settings
BlinkConverterSettings blinkSettings = new BlinkConverterSettings();
//Assign the Blink binaries path
blinkSettings.BlinkPath = @"/BlinkBinaries/";
//Add post parameters
blinkSettings.HttpPostFields.Add("firstName", "Andrew");
blinkSettings.HttpPostFields.Add("lastName", "Fuller");
//Assign the Blink settings
htmlConverter.ConverterSettings = blinkSettings;
//Convert HTML to PDF
PdfDocument document = htmlConverter.Convert("http://asp.syncfusion.com/demos/http_post_get/default.aspx");
//Create memory stream.
MemoryStream stream = new MemoryStream();
//Save and close the document.
document.Save(stream);
document.Close();
return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Application.Pdf, "HTML-to-PDF.pdf");
}
Can i solve it?