Skip to content

Commit 917620e

Browse files
committed
GroupDocs.Conversion for .NET 20.11 samples updated
1 parent f506935 commit 917620e

File tree

7 files changed

+18
-6
lines changed

7 files changed

+18
-6
lines changed

Examples/GroupDocs.Conversion.Examples.CSharp.Core/RunExamples.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ static void Main()
9191
// LoadDocumentFromStream.Run();
9292
// LoadDocumentFromUrl.Run();
9393
// LoadDocumentFromFtp.Run();
94-
// LoadDocumentFromAmazonS3.Run();
95-
// LoadDocumentFromAzureBlobStorage.Run();
96-
94+
9795
#endregion
9896

9997
#region Load options by document type
@@ -144,8 +142,10 @@ static void Main()
144142
#endregion
145143

146144
#region PersonalStorage
145+
147146
// GetFoldersFromPersonalStorage.Run();
148147
// ConvertPersonalStorageContentToDifferentFormats.Run();
148+
149149
#endregion
150150

151151
#region Presentation

Examples/GroupDocs.Conversion.Examples.CSharp.Framework/RunExamples.cs

+2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ static void Main()
143143
#endregion
144144

145145
#region PersonalStorage
146+
146147
// GetFoldersFromPersonalStorage.Run();
147148
// ConvertPersonalStorageContentToDifferentFormats.Run();
149+
148150
#endregion
149151

150152
#region Presentation

Examples/GroupDocs.Conversion.Examples.CSharp/AdvancedUsage/Loading/LoadOptionsByDocumentType/Email/ConvertEmailWithAlteringFieldsVisibility.cs

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public static void Run()
1818
#if NETCOREAPP
1919
Func<LoadOptions> getLoadOptions = () => new EmailLoadOptions
2020
{
21+
ConvertOwned = false,
2122
DisplayHeader = false,
2223
DisplayFromEmailAddress = false,
2324
DisplayToEmailAddress = false,
@@ -28,6 +29,7 @@ public static void Run()
2829
#else
2930
Contracts.Func<LoadOptions> getLoadOptions = () => new EmailLoadOptions
3031
{
32+
ConvertOwned = false,
3133
DisplayHeader = false,
3234
DisplayFromEmailAddress = false,
3335
DisplayToEmailAddress = false,

Examples/GroupDocs.Conversion.Examples.CSharp/AdvancedUsage/Loading/LoadOptionsByDocumentType/Email/ConvertEmailWithLocalizingEmailFields.cs

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public static void Run()
1919
#if NETCOREAPP
2020
Func<LoadOptions> getLoadOptions = () => new EmailLoadOptions
2121
{
22+
ConvertOwned = false,
2223
FieldTextMap = new Dictionary<EmailField, string>
2324
{
2425
{EmailField.Subject, "Gegenstand"},
@@ -29,6 +30,7 @@ public static void Run()
2930
#else
3031
Contracts.Func<LoadOptions> getLoadOptions = () => new EmailLoadOptions
3132
{
33+
ConvertOwned = false,
3234
FieldTextMap = new Dictionary<EmailField, string>
3335
{
3436
{ EmailField.Subject, "Gegenstand" },

Examples/GroupDocs.Conversion.Examples.CSharp/AdvancedUsage/Loading/LoadOptionsByDocumentType/Email/ConvertEmailWithTimezoneOffset.cs

+2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ public static void Run()
1818
#if NETCOREAPP
1919
Func<LoadOptions> getLoadOptions = () => new EmailLoadOptions
2020
{
21+
ConvertOwned = false,
2122
TimeZoneOffset = TimeSpan.FromHours(5)
2223
};
2324
#else
2425
Contracts.Func<LoadOptions> getLoadOptions = () => new EmailLoadOptions
2526
{
27+
ConvertOwned = false,
2628
TimeZoneOffset = TimeSpan.FromHours(5)
2729
};
2830
#endif

Examples/GroupDocs.Conversion.Examples.CSharp/AdvancedUsage/Loading/LoadOptionsByDocumentType/Note/ConvertNoteBySpecifyingFontSubstitution.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static void Run()
2525
FontSubstitute.Create("Tahoma", "Arial"),
2626
FontSubstitute.Create("Times New Roman", "Arial"),
2727
},
28-
DefaultFont = "Helvetica"
28+
DefaultFont = Constants.SAMPLE_DEFAULT_FONT
2929
};
3030
#else
3131
Contracts.Func<LoadOptions> getLoadOptions = () => new NoteLoadOptions
@@ -35,7 +35,7 @@ public static void Run()
3535
FontSubstitute.Create("Tahoma", "Arial"),
3636
FontSubstitute.Create("Times New Roman", "Arial"),
3737
},
38-
DefaultFont = "Helvetica"
38+
DefaultFont = Constants.SAMPLE_DEFAULT_FONT
3939
};
4040
#endif
4141
using (Converter converter = new Converter(Constants.SAMPLE_ONE, getLoadOptions))

Examples/GroupDocs.Conversion.Examples.CSharp/Constants.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,17 @@ internal static class Constants
103103
GetSampleFilePath("shift_jis_encoded.txt");
104104

105105
// Images
106-
public static string MISSING_FONT_ODG =>
106+
public static string SAMPLE_MISSING_FONT_ODG =>
107107
GetSampleFilePath("with_missing_font.odg");
108108

109109
// XML
110110
public static string SAMPLE_XML_DATASOURCE =>
111111
GetSampleFilePath("sample_datasource.xml");
112112

113+
// Default font
114+
public static string SAMPLE_DEFAULT_FONT =>
115+
Path.Combine(FontsPath, "terminal-grotesque_open.otf");
116+
113117
private static string GetSampleFilePath(string filePath) =>
114118
Path.Combine(SamplesPath, filePath);
115119

0 commit comments

Comments
 (0)