[英]iron pdf license not working Although it appears activated in the localhost check
Iron pdf license does not work when i deploy my project on aws when i used check license in localhost it returns true Iron pdf 许可证在我在 aws 上部署我的项目时不起作用当我在 localhost 中使用检查许可证时它返回 true
private async Task<ReturnResult<byte[]>> GetReportPdf(long id)
{
try
{
var command = await Mediator.Send(new GetHearingReportForPrint_Query { Id = id });
var printTemplate = command.Data.PrintSettingsTemplate;
// Check if IronPdf is licensed successfully
bool is_licensed = IronPdf.License.IsLicensed;
var ChromePdfRenderer = new ChromePdfRenderer();
ChromePdfRenderer.RenderingOptions.MarginLeft = 10;
ChromePdfRenderer.RenderingOptions.MarginRight = 10;
ChromePdfRenderer.RenderingOptions.MarginTop = 60;
ChromePdfRenderer.RenderingOptions.CustomCssUrl = "wwwroot/css/print-style.css";
i set TempFolderPath in startup constructor我在启动构造函数中设置了 TempFolderPath
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
IronPdf.Installation.TempFolderPath = @"/tmp";
}
Please set the license key before this licensing check:请在此许可检查之前设置许可密钥:
// Check if IronPdf is licensed successfully
bool is_licensed = IronPdf.License.IsLicensed;
Add:添加:
// Set the license key
IronPdf.License.LicenseKey = "IRONPDF-YOUR-KEY-HERE-EXPIRES.2023";
// Check if IronPdf is licensed successfully
bool is_licensed = IronPdf.License.IsLicensed;
If you don't have a trial key, please request one at ironpdf.com如果您没有试用密钥,请在ironpdf.com索取一个
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.