Sample code for EMF‑to‑PDF conversion in .NET. Use the API example code for batch EMF‑to‑PDF conversion within VB.NET, ASP.NET, or any .NET‑based application.... Combine ( dataDir , "EMFtoPDF.emf"...); var outputFile = Path . Combine ( dataDir , "EMFtoPDF_out.pdf"...