Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

.NET Standard 2.0 version of the original "HTMLRenderer" HTML Rendering library.

License

Notifications You must be signed in to change notification settings

patelmaulik/HTML-Renderer

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

447 Commits
447 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Renderer with .NET Standard 2.0

Documentation (original), Discussion and Issue tracking is on CodePlex.

New Documentation for .NET 2.1 project

Simply load html template and save it as new PDF file

var htmlTemplateFile = ".//03.Tables.htm";

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

var html = await File.OpenText(htmlTemplateFile).ReadToEndAsync();

var pdf = HtmlRendererCore.PdfSharp.PdfGenerator.GeneratePdf(html, PdfSharp.PageSize.A4);

var generatedPdfFile = ".//03Tables.pdf";

pdf.Save(generatedPdfFile);

See SampleTemplates folder for html temlpates for demo in the above code snippet

About

.NET Standard 2.0 version of the original "HTMLRenderer" HTML Rendering library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 60.2%
  • C# 39.8%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.