Sample code for HTML‑to‑XPS conversion in .NET. Use the API example code for batch HTML‑to‑XPS conversion within VB.NET, ASP.NET, or any .NET‑based application.... Combine ( dataDir , "sample.html" );...); var outputFile = Path . Combine ( dataDir , "html_to_xps.pdf"...