Skip to content

Commit aef76e7

Browse files
Modified the Input and Code snippet
1 parent d3d6168 commit aef76e7

File tree

2 files changed

+2
-2
lines changed
  • Word-to-PDF-Conversion/Replace-embedded-excel-as-image/.NET/Replace-embedded-excel-as-image

2 files changed

+2
-2
lines changed

Word-to-PDF-Conversion/Replace-embedded-excel-as-image/.NET/Replace-embedded-excel-as-image/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Syncfusion.XlsIO;
66
using Syncfusion.XlsIORenderer;
77

8-
98
using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read))
109
{
1110
//Open the input Word document.
@@ -15,7 +14,8 @@
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))

0 commit comments

Comments
 (0)