Skip to content

Commit be63925

Browse files
author
SheelaNallathambi
committed
ES-902928-Added changes for playground
1 parent 07650dd commit be63925

File tree

100 files changed

+302
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+302
-57
lines changed

Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Convert-Markdown-to-PDF.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,13 @@
1010
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1111
</ItemGroup>
1212

13+
<ItemGroup>
14+
<None Update="Data\InputMarkdown.md">
15+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
16+
</None>
17+
<None Update="Output\.gitkeep">
18+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
19+
</None>
20+
</ItemGroup>
21+
1322
</Project>

Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/InputMarkdown.md renamed to Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Data/InputMarkdown.md

Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Output/.gitkeep

Whitespace-only changes.

Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Program
1010
{
1111
static void Main(string[] args)
1212
{
13-
using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../InputMarkdown.md"), FileMode.Open))
13+
using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/InputMarkdown.md"), FileMode.Open))
1414
{
1515
//Loads an existing Markdown.
1616
using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Markdown))
@@ -22,7 +22,7 @@ static void Main(string[] args)
2222
using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument))
2323
{
2424
//Saves the PDF file to file system.
25-
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../MdToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite))
25+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite))
2626
{
2727
pdfDocument.Save(outputStream);
2828
}

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,13 @@
1010
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1111
</ItemGroup>
1212

13+
<ItemGroup>
14+
<None Update="Data\Template.docx">
15+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
16+
</None>
17+
<None Update="Output\.gitkeep">
18+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
19+
</None>
20+
</ItemGroup>
21+
1322
</Project>

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Output/.gitkeep

Whitespace-only changes.

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Program
1010
{
1111
static void Main(string[] args)
1212
{
13-
using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open))
13+
using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open))
1414
{
1515
//Loads an existing Word document.
1616
using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic))
@@ -24,7 +24,7 @@ static void Main(string[] args)
2424
using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument))
2525
{
2626
//Saves the PDF file to file system.
27-
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite))
27+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite))
2828
{
2929
pdfDocument.Save(outputStream);
3030
}

Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Convert-Word-into-accessible-PDF.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,13 @@
1010
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1111
</ItemGroup>
1212

13+
<ItemGroup>
14+
<None Update="Data\Template.docx">
15+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
16+
</None>
17+
<None Update="Output\.gitkeep">
18+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
19+
</None>
20+
</ItemGroup>
21+
1322
</Project>

Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Template.docx renamed to Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Data/Template.docx

File renamed without changes.

Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Output/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)