update 20260412

This commit is contained in:
Stefan Hutter
2026-04-12 08:32:01 +02:00
parent 7a28e0c2bb
commit a110be5021
82 changed files with 2405 additions and 190 deletions

View File

@@ -28,6 +28,7 @@ using System.Dynamic;
using Model;
using System.Drawing.Text;
using System.Xml.Linq;
using Syncfusion.
namespace ZZPDFTest
@@ -465,6 +466,23 @@ namespace ZZPDFTest
}
}
private void button8_Click(object sender, EventArgs e)
{
using (WordDocument document = new WordDocument(Path.GetFullPath(@"../../Data/Input.docx"), FormatType.Docx))
{
//Instantiation of DocToPDFConverter for Word to PDF conversion
using (DocToPDFConverter converter = new DocToPDFConverter())
{
//Converts Word document into PDF document
using (PdfDocument pdfDocument = converter.ConvertToPDF(document))
{
//Saves the PDF document
pdfDocument.Save(Path.GetFullPath(@"../../Sample.pdf"));
}
}
;
}
}
}