File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Tables/Add-rows-with-dynamic-data/Add-rows-with-dynamic-data Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 11using Syncfusion . DocIO ;
22using Syncfusion . DocIO . DLS ;
3- using Syncfusion . DocIORenderer ;
4- using Syncfusion . Pdf ;
53
64using ( FileStream inputStream = new FileStream ( @"Data/Template.docx" , FileMode . Open , FileAccess . Read ) )
75{
3634 }
3735 }
3836 }
39- using ( DocIORenderer renderer = new DocIORenderer ( ) )
37+ using ( FileStream outputStream = new FileStream ( @"Output/Result.docx" , FileMode . Create , FileAccess . Write ) )
4038 {
41- // Convert the Word document into a PDF document.
42- using ( PdfDocument pdfDocument = renderer . ConvertToPDF ( document ) )
43- {
44- using ( FileStream outputStream = new FileStream ( @"Output/Result.pdf" , FileMode . Create , FileAccess . Write ) )
45- {
46- // Save the converted PDF document.
47- pdfDocument . Save ( outputStream ) ;
48- }
49- }
39+ // Save the converted PDF document.
40+ document . Save ( outputStream , FormatType . Docx ) ;
5041 }
5142 }
5243}
You can’t perform that action at this time.
0 commit comments