update 20260412
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user