Skip to content

Commit 3fbe75e

Browse files
committed
Updated sources
1 parent 5c53b90 commit 3fbe75e

5 files changed

Lines changed: 238 additions & 3 deletions

File tree

src/GroupDocs.Conversion.Cloud.Sdk/GroupDocs.Conversion.Cloud.Sdk.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net20</TargetFrameworks>
5-
<AssemblyVersion>20.2.0.0</AssemblyVersion>
6-
<FileVersion>20.2.0.0</FileVersion>
7-
<Version>20.2</Version>
5+
<AssemblyVersion>20.3.0.0</AssemblyVersion>
6+
<FileVersion>20.3.0.0</FileVersion>
7+
<Version>20.3</Version>
88
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
99
<Company>GroupDocs</Company>
1010
<Authors>GroupDocs Product Team</Authors>

src/GroupDocs.Conversion.Cloud.Sdk/Model/EmailLoadOptions.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ public class EmailLoadOptions : LoadOptions
7878
/// </summary>
7979
public bool? ConvertAttachments { get; set; }
8080

81+
/// <summary>
82+
/// The mapping between email message field and field text representation
83+
/// </summary>
84+
public List<FieldLabel> FieldLabels { get; set; }
85+
86+
/// <summary>
87+
/// Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
88+
/// </summary>
89+
public bool? PreserveOriginalDate { get; set; }
90+
8191
/// <summary>
8292
/// Get the string presentation of the object
8393
/// </summary>
@@ -94,6 +104,8 @@ public override string ToString()
94104
sb.Append(" DisplayBccEmailAddress: ").Append(this.DisplayBccEmailAddress).Append("\n");
95105
sb.Append(" TimeZoneOffset: ").Append(this.TimeZoneOffset).Append("\n");
96106
sb.Append(" ConvertAttachments: ").Append(this.ConvertAttachments).Append("\n");
107+
sb.Append(" FieldLabels: ").Append(this.FieldLabels).Append("\n");
108+
sb.Append(" PreserveOriginalDate: ").Append(this.PreserveOriginalDate).Append("\n");
97109
sb.Append("}\n");
98110
return sb.ToString();
99111
}
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose Pty Ltd" file="FieldLabel.cs">
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
4+
// </copyright>
5+
// <summary>
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in all
14+
// copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
// SOFTWARE.
23+
// </summary>
24+
// --------------------------------------------------------------------------------------------------------------------
25+
26+
namespace GroupDocs.Conversion.Cloud.Sdk.Model
27+
{
28+
using System;
29+
using System.Collections;
30+
using System.Collections.Generic;
31+
using System.Runtime.Serialization;
32+
using System.Text;
33+
using Newtonsoft.Json;
34+
using Newtonsoft.Json.Converters;
35+
36+
/// <summary>
37+
/// Represents field label
38+
/// </summary>
39+
public class FieldLabel
40+
{
41+
/// <summary>
42+
/// The field name
43+
/// </summary>
44+
/// <value>The field name</value>
45+
[JsonConverter(typeof(StringEnumConverter))]
46+
public enum FieldEnum
47+
{
48+
/// <summary>
49+
/// Enum Start for "Start"
50+
/// </summary>
51+
Start,
52+
53+
/// <summary>
54+
/// Enum TabField for "TabField"
55+
/// </summary>
56+
TabField,
57+
58+
/// <summary>
59+
/// Enum Subject for "Subject"
60+
/// </summary>
61+
Subject,
62+
63+
/// <summary>
64+
/// Enum ShowTimeAs for "ShowTimeAs"
65+
/// </summary>
66+
ShowTimeAs,
67+
68+
/// <summary>
69+
/// Enum Sent for "Sent"
70+
/// </summary>
71+
Sent,
72+
73+
/// <summary>
74+
/// Enum RequiredAttendees for "RequiredAttendees"
75+
/// </summary>
76+
RequiredAttendees,
77+
78+
/// <summary>
79+
/// Enum RecurrencePattern for "RecurrencePattern"
80+
/// </summary>
81+
RecurrencePattern,
82+
83+
/// <summary>
84+
/// Enum Recurrence for "Recurrence"
85+
/// </summary>
86+
Recurrence,
87+
88+
/// <summary>
89+
/// Enum PageHeader for "PageHeader"
90+
/// </summary>
91+
PageHeader,
92+
93+
/// <summary>
94+
/// Enum Organizer for "Organizer"
95+
/// </summary>
96+
Organizer,
97+
98+
/// <summary>
99+
/// Enum Location for "Location"
100+
/// </summary>
101+
Location,
102+
103+
/// <summary>
104+
/// Enum Importance for "Importance"
105+
/// </summary>
106+
Importance,
107+
108+
/// <summary>
109+
/// Enum From for "From"
110+
/// </summary>
111+
From,
112+
113+
/// <summary>
114+
/// Enum End for "End"
115+
/// </summary>
116+
End,
117+
118+
/// <summary>
119+
/// Enum Bcc for "Bcc"
120+
/// </summary>
121+
Bcc,
122+
123+
/// <summary>
124+
/// Enum Attachments for "Attachments"
125+
/// </summary>
126+
Attachments,
127+
128+
/// <summary>
129+
/// Enum To for "To"
130+
/// </summary>
131+
To
132+
}
133+
134+
/// <summary>
135+
/// The field name
136+
/// </summary>
137+
public FieldEnum? Field { get; set; }
138+
139+
/// <summary>
140+
/// The label e.g. \"Sender\"
141+
/// </summary>
142+
public string Label { get; set; }
143+
144+
/// <summary>
145+
/// Get the string presentation of the object
146+
/// </summary>
147+
/// <returns>String presentation of the object</returns>
148+
public override string ToString()
149+
{
150+
var sb = new StringBuilder();
151+
sb.Append("class FieldLabel {\n");
152+
sb.Append(" Field: ").Append(this.Field).Append("\n");
153+
sb.Append(" Label: ").Append(this.Label).Append("\n");
154+
sb.Append("}\n");
155+
return sb.ToString();
156+
}
157+
}
158+
}

src/GroupDocs.Conversion.Cloud.Sdk/Model/HtmlConvertOptions.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public class HtmlConvertOptions : ConvertOptions
4848
/// </summary>
4949
public bool? FixedLayout { get; set; }
5050

51+
/// <summary>
52+
/// Show page borders when converting to fixed layout. Default is True
53+
/// </summary>
54+
public bool? FixedLayoutShowBorders { get; set; }
55+
5156
/// <summary>
5257
/// Specifies the zoom level in percentage. Default is 100.
5358
/// </summary>
@@ -68,6 +73,7 @@ public override string ToString()
6873
sb.Append("class HtmlConvertOptions {\n");
6974
sb.Append(" UsePdf: ").Append(this.UsePdf).Append("\n");
7075
sb.Append(" FixedLayout: ").Append(this.FixedLayout).Append("\n");
76+
sb.Append(" FixedLayoutShowBorders: ").Append(this.FixedLayoutShowBorders).Append("\n");
7177
sb.Append(" Zoom: ").Append(this.Zoom).Append("\n");
7278
sb.Append(" WatermarkOptions: ").Append(this.WatermarkOptions).Append("\n");
7379
sb.Append("}\n");
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose Pty Ltd" file="HtmlLoadOptions.cs">
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
4+
// </copyright>
5+
// <summary>
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in all
14+
// copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
// SOFTWARE.
23+
// </summary>
24+
// --------------------------------------------------------------------------------------------------------------------
25+
26+
namespace GroupDocs.Conversion.Cloud.Sdk.Model
27+
{
28+
using System;
29+
using System.Collections;
30+
using System.Collections.Generic;
31+
using System.Runtime.Serialization;
32+
using System.Text;
33+
using Newtonsoft.Json;
34+
using Newtonsoft.Json.Converters;
35+
36+
/// <summary>
37+
/// Html document load options
38+
/// </summary>
39+
public class HtmlLoadOptions : LoadOptions
40+
{
41+
/// <summary>
42+
/// Enable or disable generation of page numbering in converted document. Default: false
43+
/// </summary>
44+
public bool? PageNumbering { get; set; }
45+
46+
/// <summary>
47+
/// Get the string presentation of the object
48+
/// </summary>
49+
/// <returns>String presentation of the object</returns>
50+
public override string ToString()
51+
{
52+
var sb = new StringBuilder();
53+
sb.Append("class HtmlLoadOptions {\n");
54+
sb.Append(" PageNumbering: ").Append(this.PageNumbering).Append("\n");
55+
sb.Append("}\n");
56+
return sb.ToString();
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)