Skip to content

Commit 7ea4ba9

Browse files
Merge pull request #118 from DharanyaSakthivel-SF4210/master
ES-958632- Changes in AWS-Lambda sample
2 parents 1dca3b9 + 13663bb commit 7ea4ba9

File tree

2 files changed

+0
-26
lines changed
  • PPTX-to-Image-conversion/Convert-PowerPoint-presentation-to-Image/AWS/AWS_Lambda/Convert-PowerPoint-Presentation-to-Image
  • PPTX-to-PDF-conversion/Convert-PowerPoint-presentation-to-PDF/AWS/AWS_Lambda/Convert-PowerPoint-Presentation-to-PDF

2 files changed

+0
-26
lines changed

PPTX-to-Image-conversion/Convert-PowerPoint-presentation-to-Image/AWS/AWS_Lambda/Convert-PowerPoint-Presentation-to-Image/Function.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ public class Function
1919
/// <returns></returns>
2020
public string FunctionHandler(string input, ILambdaContext context)
2121
{
22-
//Path to the original library file.
23-
string originalLibraryPath = "/lib64/libdl.so.2";
24-
25-
//Path to the symbolic link where the library will be copied.
26-
string symlinkLibraryPath = "/tmp/libdl.so";
27-
28-
//Check if the original library file exists.
29-
if (File.Exists(originalLibraryPath))
30-
{
31-
//Copy the original library file to the symbolic link path, overwriting if it already exists.
32-
File.Copy(originalLibraryPath, symlinkLibraryPath, true);
33-
}
34-
3522
string filePath = Path.GetFullPath(@"Data/Input.pptx");
3623
//Open the existing PowerPoint presentation with loaded stream.
3724
using (IPresentation pptxDoc = Presentation.Open(filePath))

PPTX-to-PDF-conversion/Convert-PowerPoint-presentation-to-PDF/AWS/AWS_Lambda/Convert-PowerPoint-Presentation-to-PDF/Function.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,6 @@ public class Function
2121
/// <returns></returns>
2222
public string FunctionHandler(string input, ILambdaContext context)
2323
{
24-
//Path to the original library file.
25-
string originalLibraryPath = "/lib64/libdl.so.2";
26-
27-
//Path to the symbolic link where the library will be copied.
28-
string symlinkLibraryPath = "/tmp/libdl.so";
29-
30-
//Check if the original library file exists.
31-
if (File.Exists(originalLibraryPath))
32-
{
33-
//Copy the original library file to the symbolic link path, overwriting if it already exists.
34-
File.Copy(originalLibraryPath, symlinkLibraryPath, true);
35-
}
36-
3724
string filePath = Path.GetFullPath(@"Data/Input.pptx");
3825
//Open the file as Stream
3926
using (FileStream fileStreamInput = new FileStream(filePath, FileMode.Open, FileAccess.Read))

0 commit comments

Comments
 (0)