File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Word-to-PDF-Conversion/Replace-embedded-excel-as-image/.NET/Replace-embedded-excel-as-image Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 55using Syncfusion . XlsIO ;
66using Syncfusion . XlsIORenderer ;
77
8-
98using ( FileStream inputStream = new FileStream ( Path . GetFullPath ( @"Data/Input.docx" ) , FileMode . Open , FileAccess . Read ) )
109{
1110 //Open the input Word document.
1514 ReplaceExcelToImage ( document ) ;
1615 //Initialize the DocIORenderer component for converting Word documents to PDF.
1716 using ( DocIORenderer docIORenderer = new DocIORenderer ( ) )
18- { //Convert the Word document to a PDF using the DocIORenderer component.
17+ {
18+ //Convert the Word document to a PDF using the DocIORenderer component.
1919 using ( PdfDocument pdf = docIORenderer . ConvertToPDF ( document ) )
2020 {
2121 using ( FileStream outputStream = new FileStream ( Path . GetFullPath ( @"Output/Output.pdf" ) , FileMode . Create , FileAccess . Write ) )
You can’t perform that action at this time.
0 commit comments