Convert XHTML to PDF in C#

XHTML is a stricter and XML based version of the HTML files. It was developed to enhance interoperability with different data formats. Whereas, PDF files are popular owing to their support in multiple platforms and operating systems. In some cases, you may need to convert an XHTML file to PDF format. Accordingly, this article covers how to convert an XHTML file to a PDF document programmatically in C#.
April 17, 2022 · 2 min · Farhan Raza