classGenerateHtmlToPdf:RunnableBaseExample{privateGeneratePdfGetPayload(){returnnewGeneratePdf(){
Title ="Example HTML to PDF",
Type ="html",
Data =newGeneratePdfHtml(){
Html =@"
<h1 class='header-one'>What is Lorem Ipsum?</h1>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text
ever since the <strong>1500s</strong>, when an unknown printer took
a galley of type and scrambled it to make a type specimen book.
</p>
",
Css =@"
body { font-size: 14px; color: #171717; }
.header-one { text-decoration: underline; }
",},};}publicoverrideasyncTaskRun(string apiKey){var payload =GetPayload();var client =newRestClient(apiKey);var wasWritten =await client.GeneratePdf(payload,"./output/generate-html-output.pdf");}}
Request a 30-minute live demo today and we'll get in touch shortly. During the meeting our Sales team will help you find the right solution, including:
Simplifying data gathering
Streamlining document preparation
Requesting e-signatures
Building and scaling your business
Ready to experience document workflow automation?Sign up for free
Ready to experience document workflow automation?Sign up for free