From ef667ffbeb58263cbb4c42f82ce73f57dab91a0f Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Wed, 11 Oct 2023 16:39:29 +0530 Subject: [PATCH] Excel to PDF in Docker --- .../Convert-Excel-to-PDF.sln | 25 +++++++++++++ .../Convert-Excel-to-PDF.csproj | 16 +++++++++ .../Convert-Excel-to-PDF.csproj.user | 9 +++++ .../Data/InputTemplate.xlsx | Bin 0 -> 12260 bytes .../Convert-Excel-to-PDF/Dockerfile | 22 ++++++++++++ .../Convert-Excel-to-PDF/Program.cs | 32 +++++++++++++++++ .../Properties/launchSettings.json | 10 ++++++ .../Convert-Excel-to-PDF.sln | 25 +++++++++++++ .../Convert-Excel-to-PDF.csproj | 16 +++++++++ .../Convert-Excel-to-PDF.csproj.user | 6 ++++ .../Data/InputTemplate.xlsx | Bin 0 -> 12260 bytes .../Convert-Excel-to-PDF/Dockerfile | 21 +++++++++++ .../Convert-Excel-to-PDF/Program.cs | 33 ++++++++++++++++++ .../Properties/launchSettings.json | 10 ++++++ .../Convert-Excel-to-PDF.sln | 25 +++++++++++++ .../Convert-Excel-to-PDF.csproj | 16 +++++++++ .../Convert-Excel-to-PDF.csproj.user | 6 ++++ .../Data/InputTemplate.xlsx | Bin 0 -> 12260 bytes .../Convert-Excel-to-PDF/Dockerfile | 22 ++++++++++++ .../Convert-Excel-to-PDF/Program.cs | 33 ++++++++++++++++++ .../Properties/launchSettings.json | 10 ++++++ .../Convert-Excel-to-PDF.sln | 25 +++++++++++++ .../Convert-Excel-to-PDF.csproj | 16 +++++++++ .../Convert-Excel-to-PDF.csproj.user | 6 ++++ .../Data/InputTemplate.xlsx | Bin 0 -> 12260 bytes .../Convert-Excel-to-PDF/Dockerfile | 21 +++++++++++ .../Convert-Excel-to-PDF/Program.cs | 33 ++++++++++++++++++ .../Properties/launchSettings.json | 10 ++++++ 28 files changed, 448 insertions(+) create mode 100644 Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF.sln create mode 100644 Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj create mode 100644 Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user create mode 100644 Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx create mode 100644 Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile create mode 100644 Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs create mode 100644 Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json create mode 100644 Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF.sln create mode 100644 Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj create mode 100644 Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user create mode 100644 Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx create mode 100644 Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile create mode 100644 Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs create mode 100644 Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json create mode 100644 Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF.sln create mode 100644 Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj create mode 100644 Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user create mode 100644 Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx create mode 100644 Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile create mode 100644 Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs create mode 100644 Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json create mode 100644 Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF.sln create mode 100644 Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj create mode 100644 Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user create mode 100644 Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx create mode 100644 Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile create mode 100644 Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs create mode 100644 Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json diff --git a/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF.sln b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF.sln new file mode 100644 index 00000000..a5fb1c32 --- /dev/null +++ b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33516.290 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Convert-Excel-to-PDF", "Convert-Excel-to-PDF\Convert-Excel-to-PDF.csproj", "{3C0F53AF-5189-4A52-8CE4-C08FFF0D6190}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3C0F53AF-5189-4A52-8CE4-C08FFF0D6190}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3C0F53AF-5189-4A52-8CE4-C08FFF0D6190}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3C0F53AF-5189-4A52-8CE4-C08FFF0D6190}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3C0F53AF-5189-4A52-8CE4-C08FFF0D6190}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6E0207BB-0167-420A-853D-B02542FCF3CB} + EndGlobalSection +EndGlobal diff --git a/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj new file mode 100644 index 00000000..c1406bd1 --- /dev/null +++ b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj @@ -0,0 +1,16 @@ + + + + Exe + netcoreapp3.1 + Convert_Excel_to_PDF + Linux + + + + + + + + + diff --git a/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user new file mode 100644 index 00000000..b759cb67 --- /dev/null +++ b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user @@ -0,0 +1,9 @@ + + + + Docker + + + ProjectDebugger + + \ No newline at end of file diff --git a/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..e94fa38b48e4db83d1c11d199d8da684f3e5d900 GIT binary patch literal 12260 zcmeHt1zVfh)^>0$?ykk%p+L}L#i3Ynio0uZcM24DcP;KMuEiufW!bm17HCF04d-YHmEHa3;=+H1_00ju;7{^)>aNiRt`GK zt~N&Y9~fOMEl9EthQAeZ*?gBcqf>r?!lwBd)e(&hlBHFun(+_@+F@iX-zh6WytRJKoPw za7ou3trPhW!pw#YE$wjQW>__wx?ZVC(NkHeNe*`SL6pw(5wcuy)b{+maH)z(w2ey} z7jnlF$aLsQ{owu^Ff6mfLYJRs+pV#Um)T#AM(dR0=X3nl1;M_!stmx&nSLBrxWwdi`p%^`EwMc zhJqU&MQx?vzM}XQ53ps_aaCk82q7|rplI%^8bTbNv!_Fxc^MAfNSndb)i^nj?L9w3 z0ObEh;5rp%@(a)>G9Z2;fC#K(XJlc|#Q5v^f5iPSX6wIgy)^cnTsJdf;IYI*P~Y{` zVl;}dw6l;zGpVwdx8zUcx`-SK{Ka-E0u*IDKZv)VTD=|y78c(`?Ddget+AJep<(cm z*E^R5Cf?aP!qC39OAxm$UF|`2n!232N_s2hO6}AdMO)HPm?ho6OfLT8RJ00Zl<_?t z9C{u>AQpd;kH+_R>Pz}J;IBg~@7 z_g$#S-pSAq?%Bm+y=4nbK6@gW*ajqdREVOg*3Z11bCp%On1WZBn3lP^G;W4?t$g?A zQ9mM-ujy!x`2i@rVs$JZ&>)*i)uk^(4!(FN)hRP@Fe^Lz9AV_dm*cWoqWj}S`6bx- zK>LffLW`8ov=}zh-zUJac~eizLtHox^R>P;ADro^Q(nAI(;29T2*$K-aCOM+GauY| zkd+X7|Ei&tvg)hK34V8mu1VLUEc2y)NkXEOStBPEfDkcP=SI#3*rxzn&t!1In@cT! z;IlwLq*io_uO5M{wob+D`w2h7yEau74R#5Cd=26&N?KaEYj-)!u3PQ?Q-0a7vR_M} zSxsq!o=WIz=Fj*}hVq_?mn}YX(cxV*@FPfeZSq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bLECQaeW)C}UBDNcU);vC*V_kG(H=zrq!zq?s zB1D{%rI6su6qP+a(8UQgsHzUxxeR#fYG4ar;n#PG|vA}zPXx?Ad*I8w}+?*z<#x!*a~mZG5^#*dV9 zKcQ44_MmqU@vToLS-08ubMf;mUc9}Uz7}d!n9lie$WoEKV*Jj7?FciYYe|sW_guF^ zOu?B}IPPhU^(Ksj=!ZZUt{yV_mCl&uC_-pM1apT|S7GDa!oZk8^x&;dM{+bN< z*DTjd;lB@~{1ycOl;Qsn{{M`oyu^7qknkJn3*!I#C;nqR;U&t;R?%-1QBdayw3U~Q zqn7|L>vX>XU_sp{5Ww%M-AmDz+2(IiPmnMDCHgY=e2MTf`}mDeLHbe$|Co!s1bi8^ z{|4+Q`vdSr$o`KZ{7cZ6f$(q80Z_{HOUEz6;+F_71Ek*w7nFY>{4HF1DgE~lX|(rTE_+#=nc}(fphEU+zO*8VbY#000T}$OqAgn*P_j{{unaWRd^? literal 0 HcmV?d00001 diff --git a/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile new file mode 100644 index 00000000..4d5f8a42 --- /dev/null +++ b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile @@ -0,0 +1,22 @@ +#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. + +FROM mcr.microsoft.com/dotnet/aspnet:3.1-alpine3.12 AS base +RUN apk update && apk upgrade && apk add fontconfig +RUN apk add --update ttf-dejavu fontconfig +WORKDIR /app + +FROM mcr.microsoft.com/dotnet/sdk:3.1-alpine3.12 AS build +WORKDIR /src +COPY ["Convert-Excel-to-PDF.csproj", "."] +RUN dotnet restore "./Convert-Excel-to-PDF.csproj" +COPY . . +WORKDIR "/src/." +RUN dotnet build "Convert-Excel-to-PDF.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "Convert-Excel-to-PDF.csproj" -c Release -o /app/publish + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "Convert-Excel-to-PDF.dll"] \ No newline at end of file diff --git a/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs new file mode 100644 index 00000000..6b516407 --- /dev/null +++ b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs @@ -0,0 +1,32 @@ +using Syncfusion.Pdf; +using Syncfusion.XlsIO; +using System; +using System.IO; +using Syncfusion.XlsIORenderer; + +namespace Convert_Excel_to_PDF +{ + internal class Program + { + static void Main(string[] args) + { + using (ExcelEngine excelEngine = new ExcelEngine()) + { + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + FileStream excelStream = new FileStream("Data/InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(excelStream); + + //Initialize XlsIO renderer. + XlsIORenderer renderer = new XlsIORenderer(); + + //Convert Excel document into PDF document + PdfDocument pdfDocument = renderer.ConvertToPDF(workbook); + + //Create the FileStream to save the converted PDF. + FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite); + pdfDocument.Save(pdfStream); + } + } + } +} diff --git a/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json new file mode 100644 index 00000000..27d56843 --- /dev/null +++ b/Getting Started/Docker/Alpine/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "Convert-Excel-to-PDF": { + "commandName": "Project" + }, + "Docker": { + "commandName": "Docker" + } + } +} \ No newline at end of file diff --git a/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF.sln b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF.sln new file mode 100644 index 00000000..a3f88f14 --- /dev/null +++ b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33516.290 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Convert-Excel-to-PDF", "Convert-Excel-to-PDF\Convert-Excel-to-PDF.csproj", "{35079D1C-422A-48FE-B150-23BBAC13BB3D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {35079D1C-422A-48FE-B150-23BBAC13BB3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {35079D1C-422A-48FE-B150-23BBAC13BB3D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {35079D1C-422A-48FE-B150-23BBAC13BB3D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {35079D1C-422A-48FE-B150-23BBAC13BB3D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {242C9AAD-E4C9-433F-B032-AF674C1AC1C1} + EndGlobalSection +EndGlobal diff --git a/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj new file mode 100644 index 00000000..20f8d440 --- /dev/null +++ b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj @@ -0,0 +1,16 @@ + + + + Exe + netcoreapp3.1 + Convert_Excel_to_PDF + Linux + + + + + + + + + diff --git a/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user new file mode 100644 index 00000000..e681dafe --- /dev/null +++ b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user @@ -0,0 +1,6 @@ + + + + Docker + + \ No newline at end of file diff --git a/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..e94fa38b48e4db83d1c11d199d8da684f3e5d900 GIT binary patch literal 12260 zcmeHt1zVfh)^>0$?ykk%p+L}L#i3Ynio0uZcM24DcP;KMuEiufW!bm17HCF04d-YHmEHa3;=+H1_00ju;7{^)>aNiRt`GK zt~N&Y9~fOMEl9EthQAeZ*?gBcqf>r?!lwBd)e(&hlBHFun(+_@+F@iX-zh6WytRJKoPw za7ou3trPhW!pw#YE$wjQW>__wx?ZVC(NkHeNe*`SL6pw(5wcuy)b{+maH)z(w2ey} z7jnlF$aLsQ{owu^Ff6mfLYJRs+pV#Um)T#AM(dR0=X3nl1;M_!stmx&nSLBrxWwdi`p%^`EwMc zhJqU&MQx?vzM}XQ53ps_aaCk82q7|rplI%^8bTbNv!_Fxc^MAfNSndb)i^nj?L9w3 z0ObEh;5rp%@(a)>G9Z2;fC#K(XJlc|#Q5v^f5iPSX6wIgy)^cnTsJdf;IYI*P~Y{` zVl;}dw6l;zGpVwdx8zUcx`-SK{Ka-E0u*IDKZv)VTD=|y78c(`?Ddget+AJep<(cm z*E^R5Cf?aP!qC39OAxm$UF|`2n!232N_s2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m{_h|a`9)W}Q3 zW_ka41~1*A47dOuzAZ5!Uyk-!vxNG4;I=#qI(Lx6TKzO;ja7-W8p~6slQ+3ARs;AT zWDTM-P$xpvK@?tqY)U(kA83O}sZ3JVsfV&gTmkhVNs#Gcphq3EUZwm8%h6|s8KXN zZ21ZmywBOX;O);ew!~j6Q^oqdoj-E%JuVSowb90*&`wd?nCt5tULGnOxgdoXhS6$l zY;^3cJND{<7q%03VWiL#6{F|cG#R-xujZI5J83$=G~@okFL(JL$yRp$$|(k9koX|4 zh4SwPsb^#JKYIkJ?5`^|R>*pR88P4(;))n?5uayK9?_>%UxMqRQV%S(-uPXqwaH^PgI8d*CTH@r+vi zLLGRx9-h6=rQBoBXs_Y3n}h)e2mNPOuO)SZn62cJ3P>N8VVf zFWGXVHb5t**uWXuuYJsXer4G*;&IbLECQaeW)C}UBDNcU);vC*V_kG(H=zrq!zq?s zB1D{%rI6su6qP+a(8UQgsHzUxxeR#fYG4ar;n#PG|vA}zPXx?Ad*I8w}+?*z<#x!*a~mZG5^#*dV9 zKcQ44_MmqU@vToLS-08ubMf;mUc9}Uz7}d!n9lie$WoEKV*Jj7?FciYYe|sW_guF^ zOu?B}IPPhU^(Ksj=!ZZUt{yV_mCl&uC_-pM1apT|S7GDa!oZk8^x&;dM{+bN< z*DTjd;lB@~{1ycOl;Qsn{{M`oyu^7qknkJn3*!I#C;nqR;U&t;R?%-1QBdayw3U~Q zqn7|L>vX>XU_sp{5Ww%M-AmDz+2(IiPmnMDCHgY=e2MTf`}mDeLHbe$|Co!s1bi8^ z{|4+Q`vdSr$o`KZ{7cZ6f$(q80Z_{HOUEz6;+F_71Ek*w7nFY>{4HF1DgE~lX|(rTE_+#=nc}(fphEU+zO*8VbY#000T}$OqAgn*P_j{{unaWRd^? literal 0 HcmV?d00001 diff --git a/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile new file mode 100644 index 00000000..92f2d47d --- /dev/null +++ b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile @@ -0,0 +1,21 @@ +#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. + +FROM mcr.microsoft.com/dotnet/aspnet:3.1-buster-slim AS base +RUN apt-get update -y && apt-get install fontconfig -y +WORKDIR /app + +FROM mcr.microsoft.com/dotnet/sdk:3.1-buster-slim AS build +WORKDIR /src +COPY ["Convert-Excel-to-PDF.csproj", "."] +RUN dotnet restore "./Convert-Excel-to-PDF.csproj" +COPY . . +WORKDIR "/src/." +RUN dotnet build "Convert-Excel-to-PDF.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "Convert-Excel-to-PDF.csproj" -c Release -o /app/publish + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "Convert-Excel-to-PDF.dll"] \ No newline at end of file diff --git a/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs new file mode 100644 index 00000000..73884210 --- /dev/null +++ b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs @@ -0,0 +1,33 @@ +using Syncfusion.Pdf; +using Syncfusion.XlsIO; +using System; +using System.IO; +using Syncfusion.XlsIORenderer; +using static System.Net.Mime.MediaTypeNames; + +namespace Convert_Excel_to_PDF +{ + internal class Program + { + static void Main(string[] args) + { + using (ExcelEngine excelEngine = new ExcelEngine()) + { + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + FileStream excelStream = new FileStream("Data/InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(excelStream); + + //Initialize XlsIO renderer. + XlsIORenderer renderer = new XlsIORenderer(); + + //Convert Excel document into PDF document + PdfDocument pdfDocument = renderer.ConvertToPDF(workbook); + + //Create the FileStream to save the converted PDF. + FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite); + pdfDocument.Save(pdfStream); + } + } + } +} diff --git a/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json new file mode 100644 index 00000000..27d56843 --- /dev/null +++ b/Getting Started/Docker/Debian/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "Convert-Excel-to-PDF": { + "commandName": "Project" + }, + "Docker": { + "commandName": "Docker" + } + } +} \ No newline at end of file diff --git a/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF.sln b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF.sln new file mode 100644 index 00000000..a14cc7a9 --- /dev/null +++ b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33516.290 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Convert-Excel-to-PDF", "Convert-Excel-to-PDF\Convert-Excel-to-PDF.csproj", "{AAEA8DE9-60DE-4C94-84C6-B326724AE0BD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AAEA8DE9-60DE-4C94-84C6-B326724AE0BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AAEA8DE9-60DE-4C94-84C6-B326724AE0BD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AAEA8DE9-60DE-4C94-84C6-B326724AE0BD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AAEA8DE9-60DE-4C94-84C6-B326724AE0BD}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BB0DECF5-AE91-4839-ADEC-E016FCB408D9} + EndGlobalSection +EndGlobal diff --git a/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj new file mode 100644 index 00000000..20f8d440 --- /dev/null +++ b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj @@ -0,0 +1,16 @@ + + + + Exe + netcoreapp3.1 + Convert_Excel_to_PDF + Linux + + + + + + + + + diff --git a/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user new file mode 100644 index 00000000..e681dafe --- /dev/null +++ b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user @@ -0,0 +1,6 @@ + + + + Docker + + \ No newline at end of file diff --git a/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..e94fa38b48e4db83d1c11d199d8da684f3e5d900 GIT binary patch literal 12260 zcmeHt1zVfh)^>0$?ykk%p+L}L#i3Ynio0uZcM24DcP;KMuEiufW!bm17HCF04d-YHmEHa3;=+H1_00ju;7{^)>aNiRt`GK z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7?FciYYe|sW_guF^ zOu?B}IPPhU^(Ksj=!ZZUt{yV_mCl&uC_-pM1apT|S7GDa!oZk8^x&;dM{+bN< z*DTjd;lB@~{1ycOl;Qsn{{M`oyu^7qknkJn3*!I#C;nqR;U&t;R?%-1QBdayw3U~Q zqn7|L>vX>XU_sp{5Ww%M-AmDz+2(IiPmnMDCHgY=e2MTf`}mDeLHbe$|Co!s1bi8^ z{|4+Q`vdSr$o`KZ{7cZ6f$(q80Z_{HOUEz6;+F_71Ek*w7nFY>{4HF1DgE~lX|(rTE_+#=nc}(fphEU+zO*8VbY#000T}$OqAgn*P_j{{unaWRd^? literal 0 HcmV?d00001 diff --git a/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile new file mode 100644 index 00000000..91a5056c --- /dev/null +++ b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile @@ -0,0 +1,22 @@ +#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. + +FROM registry.access.redhat.com/ubi8/dotnet-31-runtime AS base +USER root +RUN yum -y install fontconfig --disablerepo=epel +WORKDIR / + +FROM registry.access.redhat.com/ubi8/dotnet-31 AS build +WORKDIR /src +COPY ["Convert-Excel-to-PDF.csproj", ""] +RUN dotnet restore "./Convert-Excel-to-PDF.csproj" +COPY . . +WORKDIR "/src/." +RUN dotnet build "Convert-Excel-to-PDF.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "Convert-Excel-to-PDF.csproj" -c Release -o /app/publish + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "Convert-Excel-to-PDF.dll"] \ No newline at end of file diff --git a/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs new file mode 100644 index 00000000..73884210 --- /dev/null +++ b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs @@ -0,0 +1,33 @@ +using Syncfusion.Pdf; +using Syncfusion.XlsIO; +using System; +using System.IO; +using Syncfusion.XlsIORenderer; +using static System.Net.Mime.MediaTypeNames; + +namespace Convert_Excel_to_PDF +{ + internal class Program + { + static void Main(string[] args) + { + using (ExcelEngine excelEngine = new ExcelEngine()) + { + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + FileStream excelStream = new FileStream("Data/InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(excelStream); + + //Initialize XlsIO renderer. + XlsIORenderer renderer = new XlsIORenderer(); + + //Convert Excel document into PDF document + PdfDocument pdfDocument = renderer.ConvertToPDF(workbook); + + //Create the FileStream to save the converted PDF. + FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite); + pdfDocument.Save(pdfStream); + } + } + } +} diff --git a/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json new file mode 100644 index 00000000..27d56843 --- /dev/null +++ b/Getting Started/Docker/RHEL/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "Convert-Excel-to-PDF": { + "commandName": "Project" + }, + "Docker": { + "commandName": "Docker" + } + } +} \ No newline at end of file diff --git a/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF.sln b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF.sln new file mode 100644 index 00000000..beb257b6 --- /dev/null +++ b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33516.290 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Convert-Excel-to-PDF", "Convert-Excel-to-PDF\Convert-Excel-to-PDF.csproj", "{675724F6-6A41-4466-B452-5760018C4FEA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {675724F6-6A41-4466-B452-5760018C4FEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {675724F6-6A41-4466-B452-5760018C4FEA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {675724F6-6A41-4466-B452-5760018C4FEA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {675724F6-6A41-4466-B452-5760018C4FEA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {73025860-39DA-4DF6-8CC3-D9D7A29408E2} + EndGlobalSection +EndGlobal diff --git a/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj new file mode 100644 index 00000000..20f8d440 --- /dev/null +++ b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj @@ -0,0 +1,16 @@ + + + + Exe + netcoreapp3.1 + Convert_Excel_to_PDF + Linux + + + + + + + + + diff --git a/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user new file mode 100644 index 00000000..e681dafe --- /dev/null +++ b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj.user @@ -0,0 +1,6 @@ + + + + Docker + + \ No newline at end of file diff --git a/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..e94fa38b48e4db83d1c11d199d8da684f3e5d900 GIT binary patch literal 12260 zcmeHt1zVfh)^>0$?ykk%p+L}L#i3Ynio0uZcM24DcP;KMuEiufW!bm17HCF04d-YHmEHa3;=+H1_00ju;7{^)>aNiRt`GK zt~N&Y9~fOMEl9EthQAeZ*?gBcqf>r?!lwBd)e(&hlBHFun(+_@+F@iX-zh6WytRJKoPw za7ou3trPhW!pw#YE$wjQW>__wx?ZVC(NkHeNe*`SL6pw(5wcuy)b{+maH)z(w2ey} z7jnlF$aLsQ{owu^Ff6mfLYJRs+pV#Um)T#AM(dR0=X3nl1;M_!stmx&nSLBrxWwdi`p%^`EwMc zhJqU&MQx?vzM}XQ53ps_aaCk82q7|rplI%^8bTbNv!_Fxc^MAfNSndb)i^nj?L9w3 z0ObEh;5rp%@(a)>G9Z2;fC#K(XJlc|#Q5v^f5iPSX6wIgy)^cnTsJdf;IYI*P~Y{` zVl;}dw6l;zGpVwdx8zUcx`-SK{Ka-E0u*IDKZv)VTD=|y78c(`?Ddget+AJep<(cm z*E^R5Cf?aP!qC39OAxm$UF|`2n!232N_s2hO6}AdMO)HPm?ho6OfLT8RJ00Zl<_?t z9C{u>AQpd;kH+_R>Pz}J;IBg~@7 z_g$#S-pSAq?%Bm+y=4nbK6@gW*ajqdREVOg*3Z11bCp%On1WZBn3lP^G;W4?t$g?A zQ9mM-ujy!x`2i@rVs$JZ&>)*i)uk^(4!(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!~j6Q^oqdoj-E%JuVSowb90*&`wd?nCt5tULGnOxgdoXhS6$l zY;^3cJND{<7q%03VWiL#6{F|cG#R-xujZI5J83$=G~@okFL(JL$yRp$$|(k9koX|4 zh4SwPsb^#JKYIkJ?5`^|R>*pR88P4(;))n?5uayK9?_>%UxMqRQV%S(-uPXqwaH^PgI8d*CTH@r+vi zLLGRx9-h6=rQBoBXs_Y3n}h)e2mNPOuO)SZn62cJ3P>N8VVf zFWGXVHb5t**uWXuuYJsXer4G*;&IbLECQaeW)C}UBDNcU);vC*V_kG(H=zrq!zq?s zB1D{%rI6su6qP+a(8UQgsHzUxxeR#fYG4ar;n#PG|vA}zPXx?Ad*I8w}+?*z<#x!*a~mZG5^#*dV9 zKcQ44_MmqU@vToLS-08ubMf;mUc9}Uz7}d!n9lie$WoEKV*Jj7?FciYYe|sW_guF^ zOu?B}IPPhU^(Ksj=!ZZUt{yV_mCl&uC_-pM1apT|S7GDa!oZk8^x&;dM{+bN< z*DTjd;lB@~{1ycOl;Qsn{{M`oyu^7qknkJn3*!I#C;nqR;U&t;R?%-1QBdayw3U~Q zqn7|L>vX>XU_sp{5Ww%M-AmDz+2(IiPmnMDCHgY=e2MTf`}mDeLHbe$|Co!s1bi8^ z{|4+Q`vdSr$o`KZ{7cZ6f$(q80Z_{HOUEz6;+F_71Ek*w7nFY>{4HF1DgE~lX|(rTE_+#=nc}(fphEU+zO*8VbY#000T}$OqAgn*P_j{{unaWRd^? literal 0 HcmV?d00001 diff --git a/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile new file mode 100644 index 00000000..a24db493 --- /dev/null +++ b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Dockerfile @@ -0,0 +1,21 @@ +#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. + +FROM mcr.microsoft.com/dotnet/core/runtime:3.1-bionic AS base +RUN apt-get update -y && apt-get install fontconfig -y +WORKDIR /app + +FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build +WORKDIR /src +COPY ["Convert-Excel-to-PDF.csproj", ""] +RUN dotnet restore "./Convert-Excel-to-PDF.csproj" +COPY . . +WORKDIR "/src/." +RUN dotnet build "Convert-Excel-to-PDF.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "Convert-Excel-to-PDF.csproj" -c Release -o /app/publish + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "Convert-Excel-to-PDF.dll"] \ No newline at end of file diff --git a/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs new file mode 100644 index 00000000..73884210 --- /dev/null +++ b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs @@ -0,0 +1,33 @@ +using Syncfusion.Pdf; +using Syncfusion.XlsIO; +using System; +using System.IO; +using Syncfusion.XlsIORenderer; +using static System.Net.Mime.MediaTypeNames; + +namespace Convert_Excel_to_PDF +{ + internal class Program + { + static void Main(string[] args) + { + using (ExcelEngine excelEngine = new ExcelEngine()) + { + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + FileStream excelStream = new FileStream("Data/InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(excelStream); + + //Initialize XlsIO renderer. + XlsIORenderer renderer = new XlsIORenderer(); + + //Convert Excel document into PDF document + PdfDocument pdfDocument = renderer.ConvertToPDF(workbook); + + //Create the FileStream to save the converted PDF. + FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite); + pdfDocument.Save(pdfStream); + } + } + } +} diff --git a/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json new file mode 100644 index 00000000..27d56843 --- /dev/null +++ b/Getting Started/Docker/Ubuntu/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "Convert-Excel-to-PDF": { + "commandName": "Project" + }, + "Docker": { + "commandName": "Docker" + } + } +} \ No newline at end of file