|
1 | 1 | /* |
2 | 2 | * The MIT License (MIT) |
3 | 3 | * |
4 | | -* Copyright (c) 2003-2021 Aspose Pty Ltd |
| 4 | +* Copyright (c) 2003-2023 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 |
@@ -1700,6 +1700,11 @@ export class RenderOptions { |
1700 | 1700 | baseName: "defaultEncoding", |
1701 | 1701 | type: "string", |
1702 | 1702 | }, |
| 1703 | + { |
| 1704 | + name: "detectEncoding", |
| 1705 | + baseName: "detectEncoding", |
| 1706 | + type: "boolean", |
| 1707 | + }, |
1703 | 1708 | { |
1704 | 1709 | name: "renderComments", |
1705 | 1710 | baseName: "renderComments", |
@@ -1769,6 +1774,11 @@ export class RenderOptions { |
1769 | 1774 | name: "visioRenderingOptions", |
1770 | 1775 | baseName: "visioRenderingOptions", |
1771 | 1776 | type: "VisioRenderingOptions", |
| 1777 | + }, |
| 1778 | + { |
| 1779 | + name: "webDocumentOptions", |
| 1780 | + baseName: "webDocumentOptions", |
| 1781 | + type: "WebDocumentOptions", |
1772 | 1782 | } ]; |
1773 | 1783 |
|
1774 | 1784 | /** |
@@ -1808,6 +1818,11 @@ export class RenderOptions { |
1808 | 1818 | */ |
1809 | 1819 | public defaultEncoding: string; |
1810 | 1820 |
|
| 1821 | + /** |
| 1822 | + * This option enables TXT, TSV, and CSV files encoding detection. In case the encoding can't be detected the DefaultEncoding is used. |
| 1823 | + */ |
| 1824 | + public detectEncoding: boolean; |
| 1825 | + |
1811 | 1826 | /** |
1812 | 1827 | * When enabled comments will be rendered to the output |
1813 | 1828 | */ |
@@ -1878,6 +1893,11 @@ export class RenderOptions { |
1878 | 1893 | */ |
1879 | 1894 | public visioRenderingOptions: VisioRenderingOptions; |
1880 | 1895 |
|
| 1896 | + /** |
| 1897 | + * This rendering options enables you to customize the appearance of the output HTML/PDF/PNG/JPEG when rendering Web documents. |
| 1898 | + */ |
| 1899 | + public webDocumentOptions: WebDocumentOptions; |
| 1900 | + |
1881 | 1901 | public constructor(init?: Partial<RenderOptions>) { |
1882 | 1902 |
|
1883 | 1903 | Object.assign(this, init); |
@@ -2623,6 +2643,94 @@ export namespace Watermark { |
2623 | 2643 | } |
2624 | 2644 | } |
2625 | 2645 | // tslint:enable:quotemark |
| 2646 | +/** |
| 2647 | + * This rendering options enables you to customize the appearance of the output HTML/PDF/PNG/JPEG when rendering Web documents. |
| 2648 | + */ |
| 2649 | +export class WebDocumentOptions { |
| 2650 | + |
| 2651 | + /** |
| 2652 | + * Attribute type map |
| 2653 | + */ |
| 2654 | + public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ |
| 2655 | + { |
| 2656 | + name: "pageSize", |
| 2657 | + baseName: "pageSize", |
| 2658 | + type: "WebDocumentOptions.PageSizeEnum", |
| 2659 | + }, |
| 2660 | + { |
| 2661 | + name: "leftMargin", |
| 2662 | + baseName: "leftMargin", |
| 2663 | + type: "number", |
| 2664 | + }, |
| 2665 | + { |
| 2666 | + name: "rightMargin", |
| 2667 | + baseName: "rightMargin", |
| 2668 | + type: "number", |
| 2669 | + }, |
| 2670 | + { |
| 2671 | + name: "topMargin", |
| 2672 | + baseName: "topMargin", |
| 2673 | + type: "number", |
| 2674 | + }, |
| 2675 | + { |
| 2676 | + name: "bottomMargin", |
| 2677 | + baseName: "bottomMargin", |
| 2678 | + type: "number", |
| 2679 | + } ]; |
| 2680 | + |
| 2681 | + /** |
| 2682 | + * Returns attribute type map |
| 2683 | + */ |
| 2684 | + public static getAttributeTypeMap() { |
| 2685 | + return WebDocumentOptions.attributeTypeMap; |
| 2686 | + } |
| 2687 | + |
| 2688 | + /** |
| 2689 | + * The size of the output page. The default value is GroupDocs.Viewer.Options.PageSize.Letter 792 x 612 points. When contents does not fit set a larger page size e.g. GroupDocs.Viewer.Options.PageSize.A3. |
| 2690 | + */ |
| 2691 | + public pageSize: WebDocumentOptions.PageSizeEnum; |
| 2692 | + |
| 2693 | + /** |
| 2694 | + * The distance (in points) between the left edge of the page and the left boundary of the body text. The default value is 5 points. |
| 2695 | + */ |
| 2696 | + public leftMargin: number; |
| 2697 | + |
| 2698 | + /** |
| 2699 | + * The distance (in points) between the right edge of the page and the right boundary of the body text. The default value is 5 points. |
| 2700 | + */ |
| 2701 | + public rightMargin: number; |
| 2702 | + |
| 2703 | + /** |
| 2704 | + * The distance (in points) between the top edge of the page and the top boundary of the body text. The default value is 72 points. |
| 2705 | + */ |
| 2706 | + public topMargin: number; |
| 2707 | + |
| 2708 | + /** |
| 2709 | + * The distance (in points) between the bottom edge of the page and the bottom boundary of the body text. The default value is 72 points. |
| 2710 | + */ |
| 2711 | + public bottomMargin: number; |
| 2712 | + |
| 2713 | + public constructor(init?: Partial<WebDocumentOptions>) { |
| 2714 | + |
| 2715 | + Object.assign(this, init); |
| 2716 | + } |
| 2717 | +} |
| 2718 | + |
| 2719 | +// tslint:disable:quotemark |
| 2720 | +// tslint:disable-next-line:no-namespace |
| 2721 | +export namespace WebDocumentOptions { |
| 2722 | + export enum PageSizeEnum { |
| 2723 | + Unspecified = 'Unspecified' as any, |
| 2724 | + Letter = 'Letter' as any, |
| 2725 | + Ledger = 'Ledger' as any, |
| 2726 | + A0 = 'A0' as any, |
| 2727 | + A1 = 'A1' as any, |
| 2728 | + A2 = 'A2' as any, |
| 2729 | + A3 = 'A3' as any, |
| 2730 | + A4 = 'A4' as any, |
| 2731 | + } |
| 2732 | +} |
| 2733 | +// tslint:enable:quotemark |
2626 | 2734 | /** |
2627 | 2735 | * Provides options for rendering word processing documents |
2628 | 2736 | */ |
@@ -3276,6 +3384,7 @@ const enumsMap = { |
3276 | 3384 | "SpreadsheetOptions.TextOverflowModeEnum": SpreadsheetOptions.TextOverflowModeEnum, |
3277 | 3385 | "ViewOptions.ViewFormatEnum": ViewOptions.ViewFormatEnum, |
3278 | 3386 | "Watermark.PositionEnum": Watermark.PositionEnum, |
| 3387 | + "WebDocumentOptions.PageSizeEnum": WebDocumentOptions.PageSizeEnum, |
3279 | 3388 | }; |
3280 | 3389 |
|
3281 | 3390 | const typeMap = { |
@@ -3322,6 +3431,7 @@ const typeMap = { |
3322 | 3431 | ViewResult, |
3323 | 3432 | VisioRenderingOptions, |
3324 | 3433 | Watermark, |
| 3434 | + WebDocumentOptions, |
3325 | 3435 | WordProcessingOptions, |
3326 | 3436 | AttachmentView, |
3327 | 3437 | Character, |
|
0 commit comments