Use C# to print HTML to PDF with a few lines of code
Use C# to Convert HTML to PDF with only a few lines of code or build your own C# HTML to PDF programs with the best and easiest to learn PDF SDK on the market.
No C# programming skills are needed. Stop wasting your time studying multivolume SDK documentation. Use easyPDF Action Center to generate sample C# code.
All it is needed just to place a few lines of the following C# code:
Type type = Type.GetTypeFromProgID("easyPDF.Loader.8");
Loader oLoad = (Loader) Activator.CreateInstance(type);
Printer oPrin = (Printer) oLoad.LoadObject("easyPDF.Printer.8");
IEPrintJob oIEPJob = oPrin.IEPrintJob;
IESetting oIESet = oIEPJob.IESetting;
oIESet.PrintBGColor = true;
oIEPJob.PrintOut(Server.MapPath (@".\input.htm"), Server.MapPath(@".\output.pdf"));
easyPDF SDK is the most comprehensive PDF development toolkit for your server and desktop .NET applications. It is built on top of our PDF printer driver technology, leveraging its speed and versatility. This C# HTML to PDF converter is unmatched in ease of use and performance without sacrificing powerful features. easyPDF SDK allows you to convert HTML, HTML5 documents and web pages to produce high quality PDF output that is Acrobat PDF compatible. It also supports PDF generation of PDF/A-1b, PDF/X-1a and PDF/X-3 for long term archiving and reliable prepress data interchange, and supports in-memory processing of PDF files to optimize performance. Our HTML to PDF converter also support both 32-bit and 64-bit Windows OS.
easyPDF SDK is the best C# SDK to covert HTML to PDF on the market
We believe that easyPDF SDK is the best C# based HTML to PDF conversion solution on the market, because:
- It has a unique combination of features to convert HTML to PDF with extreme accuracy;
- No COM objects are needed, pure native C# /.NET and Java APIs for almost the whole easyPDF SDK;
- Fully Sandboxed solution to help easily design multi-threaded applications that scale to your particular needs;
- easyPDF can convert HTML to PDF with hyperlinks and shrink HTML to available paper width;
- C# based SDK can easily convert Word and Outlook attachments into PDF attachments;
easyPDF SDK provides simple User Interface that allows users to build .NET C# application with multiple custom settings. Conversions can be as simple or as complex as the user desires.
Find more advantages by downloading C# HTML to PDF API free trial.
PDF features for using C# for HTML to PDF Conversion
Application developers can use easyPDF SDK to easily and efficiently build PDF features into their enterprise .NET C# applications. This allows any business to effectively generate PDF reports from many formats including HTML and deliver existing business documents in PDF to partners, customers and employees. SDK has a number of properties to help adapt the HTML to PDF Conversion to better accommodate most of specific needs.
How to use C# HTML to PDF converter
Simply install the program on your PC and start easyPDF SDK’s Action Center. From here, you can run one of our API Explorers, which will launch a UI to help new users write their own Applications. From these API Explorers, simply select the features you want in PDF Printer Settings, PDF Metadata, PDF Stamps, PDF Watermarks, PDF Encryption, PDF Signature and PDF Standards. Then to convert HTML to PDF you can run a test program or build a sample program just with the press of a button. To generate source code for inclusion in your app simply press the source button, to produce a C# project, just press the project button. It takes only a few minutes to build a whole program, no Visual Studio necessary.
Have a look at sample C# HTML to PDF Projects and Documentation
What others say regarding our C# HTML to PDF SDK
easyPDF SDK setup was very straightforward, unlike our experience with other products. We wrote just a few lines of code to start using it. Read the case study
We evaluated many PDF tools and drivers. We even wrote our own. Except for BCL’s easyPDF SDK, all had limitations we couldn’t live with. Some only converted from MS Office and not very well. Others could not do annotation or text stamping on PDF documents. None were as easy to use and as easy to integrate Read the case study