|
1 | 1 | /* |
2 | 2 | * The MIT License (MIT) |
3 | 3 | * |
4 | | -* Copyright (c) 2003-2024 Aspose Pty Ltd |
| 4 | +* Copyright (c) Aspose Pty Ltd |
5 | 5 | * |
6 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
7 | 7 | * of this software and associated documentation files (the "Software"), to deal |
@@ -2996,6 +2996,26 @@ export class WordProcessingOptions { |
2996 | 2996 | name: "bottomMargin", |
2997 | 2997 | baseName: "bottomMargin", |
2998 | 2998 | type: "number", |
| 2999 | + }, |
| 3000 | + { |
| 3001 | + name: "pageSize", |
| 3002 | + baseName: "pageSize", |
| 3003 | + type: "WordProcessingOptions.PageSizeEnum", |
| 3004 | + }, |
| 3005 | + { |
| 3006 | + name: "enableOpenTypeFeatures", |
| 3007 | + baseName: "enableOpenTypeFeatures", |
| 3008 | + type: "boolean", |
| 3009 | + }, |
| 3010 | + { |
| 3011 | + name: "unlinkTableOfContents", |
| 3012 | + baseName: "unlinkTableOfContents", |
| 3013 | + type: "boolean", |
| 3014 | + }, |
| 3015 | + { |
| 3016 | + name: "updateFields", |
| 3017 | + baseName: "updateFields", |
| 3018 | + type: "boolean", |
2999 | 3019 | } ]; |
3000 | 3020 |
|
3001 | 3021 | /** |
@@ -3030,12 +3050,47 @@ export class WordProcessingOptions { |
3030 | 3050 | */ |
3031 | 3051 | public bottomMargin: number; |
3032 | 3052 |
|
| 3053 | + /** |
| 3054 | + * The size of the page. |
| 3055 | + */ |
| 3056 | + public pageSize: WordProcessingOptions.PageSizeEnum; |
| 3057 | + |
| 3058 | + /** |
| 3059 | + * This option enables kerning and other OpenType Features when rendering Arabic, Hebrew, Indian Latin-based, or Cyrillic-based scripts. |
| 3060 | + */ |
| 3061 | + public enableOpenTypeFeatures: boolean; |
| 3062 | + |
| 3063 | + /** |
| 3064 | + * When rendering to HTML or PDF, you can set this option to `true` to disable navigation from the table of contents. For HTML rendering, `a` tags with relative links will be replaced with `span` tags, removing functionality but preserving visual appearance. For PDF rendering, the table of contents will be rendered as plain text without links to document sections. |
| 3065 | + */ |
| 3066 | + public unlinkTableOfContents: boolean; |
| 3067 | + |
| 3068 | + /** |
| 3069 | + * Determines if fields of certain types should be updated before saving the input WordProcessing document to the HTML, PDF, PNG, or JPEG output formats. Default value for this property is true — fields will be updated before saving. |
| 3070 | + */ |
| 3071 | + public updateFields: boolean; |
| 3072 | + |
3033 | 3073 | public constructor(init?: Partial<WordProcessingOptions>) { |
3034 | 3074 |
|
3035 | 3075 | Object.assign(this, init); |
3036 | 3076 | } |
3037 | 3077 | } |
3038 | 3078 |
|
| 3079 | +// tslint:disable:quotemark |
| 3080 | +// tslint:disable-next-line:no-namespace |
| 3081 | +export namespace WordProcessingOptions { |
| 3082 | + export enum PageSizeEnum { |
| 3083 | + Unspecified = 'Unspecified' as any, |
| 3084 | + Letter = 'Letter' as any, |
| 3085 | + Ledger = 'Ledger' as any, |
| 3086 | + A0 = 'A0' as any, |
| 3087 | + A1 = 'A1' as any, |
| 3088 | + A2 = 'A2' as any, |
| 3089 | + A3 = 'A3' as any, |
| 3090 | + A4 = 'A4' as any, |
| 3091 | + } |
| 3092 | +} |
| 3093 | +// tslint:enable:quotemark |
3039 | 3094 | /** |
3040 | 3095 | * Attachment |
3041 | 3096 | */ |
@@ -3204,6 +3259,11 @@ export class HtmlOptions extends RenderOptions { |
3204 | 3259 | name: "renderToSinglePage", |
3205 | 3260 | baseName: "renderToSinglePage", |
3206 | 3261 | type: "boolean", |
| 3262 | + }, |
| 3263 | + { |
| 3264 | + name: "removeJavaScript", |
| 3265 | + baseName: "removeJavaScript", |
| 3266 | + type: "boolean", |
3207 | 3267 | } ]; |
3208 | 3268 |
|
3209 | 3269 | /** |
@@ -3273,6 +3333,11 @@ export class HtmlOptions extends RenderOptions { |
3273 | 3333 | */ |
3274 | 3334 | public renderToSinglePage: boolean; |
3275 | 3335 |
|
| 3336 | + /** |
| 3337 | + * Allows to remove the JavaScript source code from the links in resultant HTML documents, when rendering input documents, which have the scripts. By default is enabled (true). |
| 3338 | + */ |
| 3339 | + public removeJavaScript: boolean; |
| 3340 | + |
3276 | 3341 | public constructor(init?: Partial<HtmlOptions>) { |
3277 | 3342 | super(init); |
3278 | 3343 | Object.assign(this, init); |
@@ -3617,6 +3682,7 @@ const enumsMap = { |
3617 | 3682 | "ViewOptions.ViewFormatEnum": ViewOptions.ViewFormatEnum, |
3618 | 3683 | "Watermark.PositionEnum": Watermark.PositionEnum, |
3619 | 3684 | "WebDocumentOptions.PageSizeEnum": WebDocumentOptions.PageSizeEnum, |
| 3685 | + "WordProcessingOptions.PageSizeEnum": WordProcessingOptions.PageSizeEnum, |
3620 | 3686 | }; |
3621 | 3687 |
|
3622 | 3688 | const typeMap = { |
|
0 commit comments