using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
using
HarmonyLib;
using
IronPdf;
namespace
ConsoleApp1
{
internal
class
Program
{
static
void
Main(
string
[] args)
{
try
{
Harmony _pluginTriggers = Harmony.CreateAndPatchAll(
typeof
(Triggers));
var
key =
"IRONPDF.INGENIUMPLUS.IRO220908.4745.54126.809022-EB0AD2DDFD-POXPZEJ33R5VA-74MSBPHQEDFV-RL2B47SAIDP4-5TS3TK5UV2Y2-766DUXYT2ZH5-ZG2AVJ-LJOLLXZR6BKKUA-LITE.SUB-WDNXKT.RENEW.SUPPORT.08.SEP.2023"
;
bool
b = IronPdf.License.IsValidLicense(key);
Console.WriteLine(b);
IronPdf.License.LicenseKey = key;
var
renderer =
new
ChromePdfRenderer();
var
pdf = renderer.RenderHtmlAsPdf(
" <h1> ~Hello World~ </h1> Made with IronPDF!"
);
pdf.SaveAs(
"html_saved.pdf"
);
}
catch
(Exception ex) {
Console.WriteLine(ex);
}
Console.ReadKey();
}
private
class
Triggers
{
[HarmonyPostfix]
[HarmonyPatch(
"Iron.Pdf.Extensions.ideosr"
,
"rjokub"
)]
[HarmonyPatch(
"Iron.Pdf.Extensions.idepao"
,
"laemxu"
)]
static
public
void
GetStatusGrowUpData_Hook(
ref
bool
__result)
{
__result =
true
;
}
}
}
}