File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ public string FunctionHandler(string input, ILambdaContext context)
76
76
/// <param name="args"></param>
77
77
private void FontSettings_SubstituteFont ( object sender , SubstituteFontEventArgs args )
78
78
{
79
- if ( args . OriginalFontName == "Calibri" && args . FontStyle == FontStyle . Regular )
79
+ if ( args . OriginalFontName == "Calibri" )
80
80
args . AlternateFontStream = new FileStream ( Path . GetFullPath ( @"Data/calibri.ttf" ) , FileMode . Open , FileAccess . Read ) ;
81
- else if ( args . OriginalFontName == "Arial" && args . FontStyle == FontStyle . Regular )
81
+ else if ( args . OriginalFontName == "Arial" )
82
82
args . AlternateFontStream = new FileStream ( Path . GetFullPath ( @"Data/arial.ttf" ) , FileMode . Open , FileAccess . Read ) ;
83
83
else
84
84
args . AlternateFontStream = new FileStream ( Path . GetFullPath ( @"Data/times.ttf" ) , FileMode . Open , FileAccess . Read ) ;
You can’t perform that action at this time.
0 commit comments