Hi,
I've installed the Syncfusion.HtmlToPdfConverter.WinForms NuGet package in my .Net 8.0 Project.
It looks like blink files are missing, because this is the error I get:
"Syncfusion.Pdf.PdfException: 'Blink files are missing at L:\LK_Nieuw_VS.2022\3_VisualStudio\LingIn\bin\Debug\net8.0-windows\BlinkBinaries'"
Are these files not in the
Syncfusion.HtmlToPdfConverter.WinForms NuGet Package
Should I use another package?
Kind regards,
Raymond
Hi,
Thank you for reaching Syncfusion support.
We have checked your issue on our end. Upon further analysis, we have created .NET 8.0 Winforms sample application to replicate the reported issue in performing HTML to PDF conversion with the provided Syncfusion.HtmlToPdfConverter.Net.Windows NuGet package. Unfortunately, the reported issue was not reproduced and the blink binaries are copied properly in the runtimes folder. The conversion is working fine on our end. Since you are changing from Webkit rendering engine to Blink rendering engine for conversion, we kindly request you to clean and rebuild the project. However, we have attached our UG documentation, Sample and Output document below for your reference.
UG: Convert a HTML to PDF file in Windows-Forms | Syncfusion
Sample: HTML-to-PDF-Winforms-930619152
Output: HTML-to-PDF-1911962108
Additionally, You can set the runtimes folder path explicitly in BlinkPath property in BlinkConverterSettings class. The BlinkBinaries will be available in the NuGet installed location (C:\Users\xxxxx\.nuget\packages\syncfusion.htmltopdfconverter.net.windows\xx.x.xx\runtimes\win-x64\native\). Please refer the below code snippet and UG documentation.
Code snippet:
//Initialize HTML to PDF converter. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); //Set Blink binaries path. blinkConverterSettings.BlinkPath = @"C:\Users\xxxxx\.nuget\packages\syncfusion.htmltopdfconverter.net.windows\xx.x.xx\runtimes\win-x64\native\"; //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert URL to PDF document. PdfDocument document = htmlConverter.Convert("https://www.syncfusion.com"); |
UG: https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#blink-path
Please try the above sample and let us know the result. If you are still facing any issue, we kindly request you to share the modified sample, package version, complete code snippet to replicate the same issue on our end. This information will be more helpful for us to analyze and provide you with a prompt solution.
Regards,
Arumugam M
Hi,
Thanks, that definitely was helpful.
I do have an additional question:
I am currently migrating my .NET 4.8 solution to .NET 8.0.
The .NET 4.8 solution uses the following license key for Syncfusion:
NzE1NzhAMzEzNjJlMzQyZTMwZWZRU3NncmU5UHF1bXRRTEhkOFZhckw5elRuR05PaitremdCWDA5WVg2bz0=
And the function Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(key) is being processed.
However, my .NET 8.0 solution prints the following message within a PDF document:
"Created with a trial version of the Syncfusion PDF library or registered the wrong key in your application. Click here to obtain a valid key."
What should I do to solve this?
Kind regards,
Raymond Falck
Hi Raymond,
|
I received the license key some time ago from my predecessor. The license key is: "NzE1NzhAMzEzNjJlMzQyZTMwZWZRU3NncmU5UHF1bXRRTEhkOFZhckw5elRuR05PaitremdCWDA5WVg2bz0=" It works perfectly fine under .NET 4.8 (but under .NET 8.0 it prints the trial message).
|
We analyzed the shared the details and found out that the referred Syncfusion packages are v27.*.* but you have registered the license key (NzE1NzhAMzEzNjJlMzQyZTMwZWZRU3NncmU5UHF1bXRRTEhkOFZhckw5elRuR05PaitremdCWDA5WVg2bz0=) in v16.4.*.*.
Please generate a license key for v27.*.* and register it in your project to resolve this issue.
As we mentioned earlier, Syncfusion license keys are major version and product-specific and not framework specific. If it works in .Net framework 4.8 it should work in .Net8.0. The generated license key is just a string that needs to be registered before any Syncfusion control is initiated.Please ensure that you have registered the license key in the entry point of your application. Refer to this link for generating license key, https://help.syncfusion.com/windowsforms/licensing/how-to-generate
Refer to this link for registering license key, https://help.syncfusion.com/windowsforms/licensing/how-to-register-in-an-application
If the reported issue is still not resolved, please share us the following details to check issue further from our side,
From <https://support.syncfusion.com/agent/activities/29623>
|
|
I’m also looking for the account originally associated with "NzE1NzhAMzEzNjJlMzQyZTMwZWZRU3NncmU5UHF1bXRRTEhkOFZhckw5elRuR05PaitremdCWDA5WVg2bz0=" I accept that that account has been activated around 2019 (could have been earlier). |
Sorry for the inconvenience. We are unable to identify who generated this key before 2020, as we have implemented these logs recently. Unfortunately, we cannot retrieve the details from before 2020. |
|
By the way, this was a license that didn’t require payment. I understand that this has since changed. Could this be related to the message I’m seeing?
|
The Community License from Syncfusion provides free access to all Essential Studio products for individual developers and small businesses. You don't need to require payment.
We have checked your account and found that you have a Community License associated with your email address ([email protected]).
Effective from November 7, 2023, we have made changes to the Community License eligibility criteria. To continue utilizing the Community License and receiving the latest version updates, kindly submit a Community License revalidation form. Upon successful validation, you will regain access to all versions. Please go to License & Downloads page. and click “Get License Key” link or “Download” button. Then, a revalidation pop-up will appear. Click the "Revalidate Your License" button. Then, you will be navigated to the community license revalidation form. Please carefully check the form fields and proceed to submit the request.
Once you fill out the community license form, we will validate your details. If you are eligible, we will approve it. The process takes up to 2 days. During this time, we will provide you with a 7-day license key via email, which you can use. It will expire in 7 days
Once your community license revalidation request got approved, You will be able to access our latest version of the license and generate a license key on the License & Downloads page.
For your reference, we have shared the KB details on how to generate a license key from the licensed product. |