PDF Metamorphosis .Net is 100% C# assembly to convert RTF, Text, HTML, DOC, DOCX documents to PDF. Also can split and merge PDF documents. Requires only .NET Framework 4.6.2 or higher. Can be used in .NET 6.0 and higher. Absolutely standalone library.
$ dotnet add package SautinSoft.PdfMetamorphosis

SautinSoft.PdfMetamorphosis is .NET assembly (SDK) which gives API to convert Text, HTML, RTF, DOC and DOCX documents to PDF format.
Are you ready to give PDF Metamorphosis .NET a try? Simply execute Install-Package sautinsoft.pdfmetamorphosis from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have PDF Metamorphosis .NET and want to upgrade the version, please execute to get the latest version.
Update-Package sautinsoft.pdfmetamorphosisstring docxPath = @"..\..\example.docx";
string pdfPath = Path.ChangeExtension(docxPath, ".pdf");
SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();
p.DocxToPdfConvertFile(docxPath, pdfPath);
string inputFile = @"..\..\example.htm";
string outputFile = @"..\..\test.pdf";
SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();
p.HtmlToPdfConvertFile(inputFile, outputFile);
string[] pdfFiles = { @"..\..\test-00001.pdf", @"..\..\test-00002.pdf" };
SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();
p.MergePDFFileArrayToPDFFile(pdfFiles, @"..\..\test_Split_and_Merge_1and2page.pdf");