@@ -412,6 +412,74 @@ export class ErrorDetails {
412412 }
413413}
414414
415+ /**
416+ * Represents field label
417+ */
418+ // tslint:disable: completed-docs
419+ export class FieldLabel {
420+
421+ /**
422+ * Attribute type map
423+ */
424+ public static attributeTypeMap : Array < { name : string , baseName : string , type : string } > = [
425+ {
426+ name : "field" ,
427+ baseName : "field" ,
428+ type : "FieldLabel.FieldEnum" ,
429+ } ,
430+ {
431+ name : "label" ,
432+ baseName : "label" ,
433+ type : "string" ,
434+ } ] ;
435+
436+ /**
437+ * Returns attribute type map
438+ */
439+ public static getAttributeTypeMap ( ) {
440+ return FieldLabel . attributeTypeMap ;
441+ }
442+
443+ /**
444+ * The field name
445+ */
446+ public field : FieldLabel . FieldEnum ;
447+
448+ /**
449+ * The label e.g. \"Sender\"
450+ */
451+ public label : string ;
452+
453+ public constructor ( init ?: Partial < FieldLabel > ) {
454+
455+ Object . assign ( this , init ) ;
456+ }
457+ }
458+
459+ // tslint:disable:quotemark
460+ // tslint:disable-next-line:no-namespace
461+ export namespace FieldLabel {
462+ export enum FieldEnum {
463+ Start = 'Start' as any ,
464+ TabField = 'TabField' as any ,
465+ Subject = 'Subject' as any ,
466+ ShowTimeAs = 'ShowTimeAs' as any ,
467+ Sent = 'Sent' as any ,
468+ RequiredAttendees = 'RequiredAttendees' as any ,
469+ RecurrencePattern = 'RecurrencePattern' as any ,
470+ Recurrence = 'Recurrence' as any ,
471+ PageHeader = 'PageHeader' as any ,
472+ Organizer = 'Organizer' as any ,
473+ Location = 'Location' as any ,
474+ Importance = 'Importance' as any ,
475+ From = 'From' as any ,
476+ End = 'End' as any ,
477+ Bcc = 'Bcc' as any ,
478+ Attachments = 'Attachments' as any ,
479+ To = 'To' as any ,
480+ }
481+ }
482+ // tslint:enable:quotemark
415483/**
416484 * File versions FileVersion.
417485 */
@@ -1238,6 +1306,16 @@ export class EmailLoadOptions extends LoadOptions {
12381306 name : "convertAttachments" ,
12391307 baseName : "convertAttachments" ,
12401308 type : "boolean" ,
1309+ } ,
1310+ {
1311+ name : "fieldLabels" ,
1312+ baseName : "fieldLabels" ,
1313+ type : "Array<FieldLabel>" ,
1314+ } ,
1315+ {
1316+ name : "preserveOriginalDate" ,
1317+ baseName : "preserveOriginalDate" ,
1318+ type : "boolean" ,
12411319 } ] ;
12421320
12431321 /**
@@ -1287,6 +1365,16 @@ export class EmailLoadOptions extends LoadOptions {
12871365 */
12881366 public convertAttachments : boolean ;
12891367
1368+ /**
1369+ * The mapping between email message field and field text representation
1370+ */
1371+ public fieldLabels : Array < FieldLabel > ;
1372+
1373+ /**
1374+ * Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
1375+ */
1376+ public preserveOriginalDate : boolean ;
1377+
12901378 public constructor ( init ?: Partial < EmailLoadOptions > ) {
12911379 super ( init ) ;
12921380 Object . assign ( this , init ) ;
@@ -1357,6 +1445,11 @@ export class HtmlConvertOptions extends ConvertOptions {
13571445 baseName : "fixedLayout" ,
13581446 type : "boolean" ,
13591447 } ,
1448+ {
1449+ name : "fixedLayoutShowBorders" ,
1450+ baseName : "fixedLayoutShowBorders" ,
1451+ type : "boolean" ,
1452+ } ,
13601453 {
13611454 name : "zoom" ,
13621455 baseName : "zoom" ,
@@ -1385,6 +1478,11 @@ export class HtmlConvertOptions extends ConvertOptions {
13851478 */
13861479 public fixedLayout : boolean ;
13871480
1481+ /**
1482+ * Show page borders when converting to fixed layout. Default is True
1483+ */
1484+ public fixedLayoutShowBorders : boolean ;
1485+
13881486 /**
13891487 * Specifies the zoom level in percentage. Default is 100.
13901488 */
@@ -1401,6 +1499,40 @@ export class HtmlConvertOptions extends ConvertOptions {
14011499 }
14021500}
14031501
1502+ /**
1503+ * Html document load options
1504+ */
1505+ // tslint:disable: completed-docs
1506+ export class HtmlLoadOptions extends LoadOptions {
1507+
1508+ /**
1509+ * Attribute type map
1510+ */
1511+ public static attributeTypeMap : Array < { name : string , baseName : string , type : string } > = [
1512+ {
1513+ name : "pageNumbering" ,
1514+ baseName : "pageNumbering" ,
1515+ type : "boolean" ,
1516+ } ] ;
1517+
1518+ /**
1519+ * Returns attribute type map
1520+ */
1521+ public static getAttributeTypeMap ( ) {
1522+ return super . getAttributeTypeMap ( ) . concat ( HtmlLoadOptions . attributeTypeMap ) ;
1523+ }
1524+
1525+ /**
1526+ * Enable or disable generation of page numbering in converted document. Default: false
1527+ */
1528+ public pageNumbering : boolean ;
1529+
1530+ public constructor ( init ?: Partial < HtmlLoadOptions > ) {
1531+ super ( init ) ;
1532+ Object . assign ( this , init ) ;
1533+ }
1534+ }
1535+
14041536/**
14051537 * Options for to Image conversion
14061538 */
@@ -6423,6 +6555,7 @@ export namespace TifConvertOptions {
64236555}
64246556// tslint:enable:quotemark
64256557const enumsMap = {
6558+ "FieldLabel.FieldEnum" : FieldLabel . FieldEnum ,
64266559 "ImageConvertOptions.FlipModeEnum" : ImageConvertOptions . FlipModeEnum ,
64276560 "PdfConvertOptions.PdfFormatEnum" : PdfConvertOptions . PdfFormatEnum ,
64286561 "PdfConvertOptions.DirectionEnum" : PdfConvertOptions . DirectionEnum ,
@@ -6443,6 +6576,7 @@ const typeMap = {
64436576 DiscUsage,
64446577 DocumentMetadata,
64456578 ErrorDetails,
6579+ FieldLabel,
64466580 FileVersions,
64476581 FilesList,
64486582 FilesUploadResult,
@@ -6460,6 +6594,7 @@ const typeMap = {
64606594 EmailLoadOptions,
64616595 FileVersion,
64626596 HtmlConvertOptions,
6597+ HtmlLoadOptions,
64636598 ImageConvertOptions,
64646599 ImageLoadOptions,
64656600 OneLoadOptions,
0 commit comments