PDF Metamorphosis .Net

.NET assembly which gives API to convert RTF, Text, HTML, DOCX to PDF format.

using System;
using System.IO;
using System.Collections;
namespace Sample
{
    class Test
    {
        static void Main(string[] args)
        {
            SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();
            if (p != null)
            {
                string docxPath = @"..\..\..\example.docx";
                string pdfPath = Path.ChangeExtension(docxPath, ".pdf");
                if (p.DocxToPdfConvertFile(docxPath, pdfPath) == 0)
                    System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(pdfPath) { UseShellExecute = true });
                else
                {
                    System.Console.WriteLine("Conversion failed!");
                    Console.ReadLine();
                }
            }
        }
    }
}
Convert DOCX file to PDF file

The PDF Metamorphosis .Net product includes a code example for converting a DOCX file to a PDF file. This example demonstrates how to use the library to transform DOCX content into a PDF document programmatically.

The product supports various platforms, including Windows, Linux, macOS, and Docker, and is compatible with .NET 8, 7, 6, 5, Standard 2, Core 2x & 3x, and Framework 4.6.2+