@syncfusion/ej2-pdf-export 31.1.17 → 31.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-pdf-export.min.js +3 -3
- package/dist/ej2-pdf-export.umd.min.js +3 -3
- package/dist/ej2-pdf-export.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es2015.js +142 -23
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +148 -21
- package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
- package/dist/global/ej2-pdf-export.min.js +3 -3
- package/dist/global/ej2-pdf-export.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +8 -45
- package/src/implementation/input-output/pdf-cross-table.js +2 -1
- package/src/implementation/input-output/pdf-writer.d.ts +77 -14
- package/src/implementation/input-output/pdf-writer.js +146 -20
- package/dist/ts/implementation/actions/action.d.ts +0 -50
- package/dist/ts/implementation/actions/action.ts +0 -76
- package/dist/ts/implementation/actions/index.d.ts +0 -6
- package/dist/ts/implementation/actions/index.ts +0 -6
- package/dist/ts/implementation/actions/uri-action.d.ts +0 -33
- package/dist/ts/implementation/actions/uri-action.ts +0 -52
- package/dist/ts/implementation/annotations/action-link-annotation.d.ts +0 -30
- package/dist/ts/implementation/annotations/action-link-annotation.ts +0 -43
- package/dist/ts/implementation/annotations/annotation-collection.d.ts +0 -77
- package/dist/ts/implementation/annotations/annotation-collection.ts +0 -159
- package/dist/ts/implementation/annotations/annotation.d.ts +0 -152
- package/dist/ts/implementation/annotations/annotation.ts +0 -241
- package/dist/ts/implementation/annotations/document-link-annotation.d.ts +0 -89
- package/dist/ts/implementation/annotations/document-link-annotation.ts +0 -118
- package/dist/ts/implementation/annotations/index.d.ts +0 -11
- package/dist/ts/implementation/annotations/index.ts +0 -11
- package/dist/ts/implementation/annotations/link-annotation.d.ts +0 -23
- package/dist/ts/implementation/annotations/link-annotation.ts +0 -32
- package/dist/ts/implementation/annotations/pdf-text-web-link.d.ts +0 -118
- package/dist/ts/implementation/annotations/pdf-text-web-link.ts +0 -268
- package/dist/ts/implementation/annotations/uri-annotation.d.ts +0 -48
- package/dist/ts/implementation/annotations/uri-annotation.ts +0 -86
- package/dist/ts/implementation/collections/dictionary.d.ts +0 -76
- package/dist/ts/implementation/collections/dictionary.ts +0 -150
- package/dist/ts/implementation/collections/index.d.ts +0 -7
- package/dist/ts/implementation/collections/index.ts +0 -7
- package/dist/ts/implementation/collections/object-object-pair/dictionary.d.ts +0 -62
- package/dist/ts/implementation/collections/object-object-pair/dictionary.ts +0 -125
- package/dist/ts/implementation/collections/object-object-pair/index.d.ts +0 -5
- package/dist/ts/implementation/collections/object-object-pair/index.ts +0 -5
- package/dist/ts/implementation/collections/utils.d.ts +0 -27
- package/dist/ts/implementation/collections/utils.ts +0 -38
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.d.ts +0 -31
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.ts +0 -39
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info.d.ts +0 -67
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info.ts +0 -108
- package/dist/ts/implementation/document/automatic-fields/automatic-field.d.ts +0 -41
- package/dist/ts/implementation/document/automatic-fields/automatic-field.ts +0 -127
- package/dist/ts/implementation/document/automatic-fields/composite-field.d.ts +0 -46
- package/dist/ts/implementation/document/automatic-fields/composite-field.ts +0 -76
- package/dist/ts/implementation/document/automatic-fields/index.d.ts +0 -11
- package/dist/ts/implementation/document/automatic-fields/index.ts +0 -11
- package/dist/ts/implementation/document/automatic-fields/multiple-value-field.d.ts +0 -18
- package/dist/ts/implementation/document/automatic-fields/multiple-value-field.ts +0 -37
- package/dist/ts/implementation/document/automatic-fields/page-count-field.d.ts +0 -44
- package/dist/ts/implementation/document/automatic-fields/page-count-field.ts +0 -75
- package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.d.ts +0 -53
- package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.ts +0 -157
- package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.d.ts +0 -51
- package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.ts +0 -82
- package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.d.ts +0 -38
- package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.ts +0 -60
- package/dist/ts/implementation/document/automatic-fields/single-value-field.d.ts +0 -15
- package/dist/ts/implementation/document/automatic-fields/single-value-field.ts +0 -48
- package/dist/ts/implementation/document/index.d.ts +0 -16
- package/dist/ts/implementation/document/index.ts +0 -16
- package/dist/ts/implementation/document/pdf-catalog.d.ts +0 -39
- package/dist/ts/implementation/document/pdf-catalog.ts +0 -65
- package/dist/ts/implementation/document/pdf-document-base.d.ts +0 -137
- package/dist/ts/implementation/document/pdf-document-base.ts +0 -187
- package/dist/ts/implementation/document/pdf-document-template.d.ts +0 -166
- package/dist/ts/implementation/document/pdf-document-template.ts +0 -310
- package/dist/ts/implementation/document/pdf-document.d.ts +0 -227
- package/dist/ts/implementation/document/pdf-document.ts +0 -361
- package/dist/ts/implementation/document/pdf-viewer-preferences.d.ts +0 -467
- package/dist/ts/implementation/document/pdf-viewer-preferences.ts +0 -578
- package/dist/ts/implementation/drawing/index.d.ts +0 -5
- package/dist/ts/implementation/drawing/index.ts +0 -5
- package/dist/ts/implementation/drawing/pdf-drawing.d.ts +0 -141
- package/dist/ts/implementation/drawing/pdf-drawing.ts +0 -218
- package/dist/ts/implementation/general/enum.d.ts +0 -21
- package/dist/ts/implementation/general/enum.ts +0 -21
- package/dist/ts/implementation/general/functions/index.d.ts +0 -6
- package/dist/ts/implementation/general/functions/index.ts +0 -6
- package/dist/ts/implementation/general/functions/pdf-function.d.ts +0 -44
- package/dist/ts/implementation/general/functions/pdf-function.ts +0 -66
- package/dist/ts/implementation/general/functions/pdf-sampled-function.d.ts +0 -25
- package/dist/ts/implementation/general/functions/pdf-sampled-function.ts +0 -63
- package/dist/ts/implementation/general/index.d.ts +0 -9
- package/dist/ts/implementation/general/index.ts +0 -9
- package/dist/ts/implementation/general/pdf-cache-collection.d.ts +0 -42
- package/dist/ts/implementation/general/pdf-cache-collection.ts +0 -97
- package/dist/ts/implementation/general/pdf-collection.d.ts +0 -26
- package/dist/ts/implementation/general/pdf-collection.ts +0 -41
- package/dist/ts/implementation/general/pdf-destination.d.ts +0 -103
- package/dist/ts/implementation/general/pdf-destination.ts +0 -170
- package/dist/ts/implementation/graphics/brushes/enum.d.ts +0 -236
- package/dist/ts/implementation/graphics/brushes/enum.ts +0 -237
- package/dist/ts/implementation/graphics/brushes/index.d.ts +0 -13
- package/dist/ts/implementation/graphics/brushes/index.ts +0 -13
- package/dist/ts/implementation/graphics/brushes/pdf-blend.d.ts +0 -105
- package/dist/ts/implementation/graphics/brushes/pdf-blend.ts +0 -294
- package/dist/ts/implementation/graphics/brushes/pdf-brush.d.ts +0 -51
- package/dist/ts/implementation/graphics/brushes/pdf-brush.ts +0 -63
- package/dist/ts/implementation/graphics/brushes/pdf-brushes.d.ts +0 -726
- package/dist/ts/implementation/graphics/brushes/pdf-brushes.ts +0 -2438
- package/dist/ts/implementation/graphics/brushes/pdf-color-blend.d.ts +0 -113
- package/dist/ts/implementation/graphics/brushes/pdf-color-blend.ts +0 -295
- package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.d.ts +0 -155
- package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.ts +0 -311
- package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.d.ts +0 -147
- package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.ts +0 -406
- package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.d.ts +0 -122
- package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.ts +0 -290
- package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.d.ts +0 -77
- package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.ts +0 -107
- package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.d.ts +0 -161
- package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.ts +0 -304
- package/dist/ts/implementation/graphics/constants.d.ts +0 -31
- package/dist/ts/implementation/graphics/constants.ts +0 -31
- package/dist/ts/implementation/graphics/enum.d.ts +0 -413
- package/dist/ts/implementation/graphics/enum.ts +0 -413
- package/dist/ts/implementation/graphics/figures/arc.d.ts +0 -87
- package/dist/ts/implementation/graphics/figures/arc.ts +0 -133
- package/dist/ts/implementation/graphics/figures/base/draw-element.d.ts +0 -30
- package/dist/ts/implementation/graphics/figures/base/draw-element.ts +0 -59
- package/dist/ts/implementation/graphics/figures/base/element-layouter.d.ts +0 -161
- package/dist/ts/implementation/graphics/figures/base/element-layouter.ts +0 -260
- package/dist/ts/implementation/graphics/figures/base/fill-element.d.ts +0 -46
- package/dist/ts/implementation/graphics/figures/base/fill-element.ts +0 -72
- package/dist/ts/implementation/graphics/figures/base/graphics-element.d.ts +0 -16
- package/dist/ts/implementation/graphics/figures/base/graphics-element.ts +0 -34
- package/dist/ts/implementation/graphics/figures/base/index.d.ts +0 -9
- package/dist/ts/implementation/graphics/figures/base/index.ts +0 -9
- package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.d.ts +0 -40
- package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.ts +0 -69
- package/dist/ts/implementation/graphics/figures/base/shape-layouter.d.ts +0 -131
- package/dist/ts/implementation/graphics/figures/base/shape-layouter.ts +0 -276
- package/dist/ts/implementation/graphics/figures/base/text-layouter.d.ts +0 -107
- package/dist/ts/implementation/graphics/figures/base/text-layouter.ts +0 -212
- package/dist/ts/implementation/graphics/figures/ellipse-part.d.ts +0 -48
- package/dist/ts/implementation/graphics/figures/ellipse-part.ts +0 -76
- package/dist/ts/implementation/graphics/figures/enum.d.ts +0 -79
- package/dist/ts/implementation/graphics/figures/enum.ts +0 -80
- package/dist/ts/implementation/graphics/figures/index.d.ts +0 -13
- package/dist/ts/implementation/graphics/figures/index.ts +0 -13
- package/dist/ts/implementation/graphics/figures/layout-element.d.ts +0 -73
- package/dist/ts/implementation/graphics/figures/layout-element.ts +0 -132
- package/dist/ts/implementation/graphics/figures/path.d.ts +0 -319
- package/dist/ts/implementation/graphics/figures/path.ts +0 -646
- package/dist/ts/implementation/graphics/figures/pdf-template.d.ts +0 -113
- package/dist/ts/implementation/graphics/figures/pdf-template.ts +0 -205
- package/dist/ts/implementation/graphics/figures/rectangle-area.d.ts +0 -64
- package/dist/ts/implementation/graphics/figures/rectangle-area.ts +0 -108
- package/dist/ts/implementation/graphics/figures/text-element.d.ts +0 -214
- package/dist/ts/implementation/graphics/figures/text-element.ts +0 -449
- package/dist/ts/implementation/graphics/fonts/enum.d.ts +0 -385
- package/dist/ts/implementation/graphics/fonts/enum.ts +0 -385
- package/dist/ts/implementation/graphics/fonts/index.d.ts +0 -16
- package/dist/ts/implementation/graphics/fonts/index.ts +0 -16
- package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.d.ts +0 -164
- package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.ts +0 -248
- package/dist/ts/implementation/graphics/fonts/pdf-font.d.ts +0 -187
- package/dist/ts/implementation/graphics/fonts/pdf-font.ts +0 -316
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.d.ts +0 -301
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.ts +0 -606
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font.d.ts +0 -143
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font.ts +0 -243
- package/dist/ts/implementation/graphics/fonts/pdf-string-format.d.ts +0 -321
- package/dist/ts/implementation/graphics/fonts/pdf-string-format.ts +0 -474
- package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.d.ts +0 -49
- package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.ts +0 -165
- package/dist/ts/implementation/graphics/fonts/rtl/index.d.ts +0 -6
- package/dist/ts/implementation/graphics/fonts/rtl/index.ts +0 -6
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.d.ts +0 -62
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.ts +0 -958
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.d.ts +0 -68
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.ts +0 -374
- package/dist/ts/implementation/graphics/fonts/rtl-renderer.d.ts +0 -23
- package/dist/ts/implementation/graphics/fonts/rtl-renderer.ts +0 -255
- package/dist/ts/implementation/graphics/fonts/string-layouter.d.ts +0 -254
- package/dist/ts/implementation/graphics/fonts/string-layouter.ts +0 -617
- package/dist/ts/implementation/graphics/fonts/string-tokenizer.d.ts +0 -109
- package/dist/ts/implementation/graphics/fonts/string-tokenizer.ts +0 -275
- package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.d.ts +0 -204
- package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.ts +0 -206
- package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.d.ts +0 -17
- package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.ts +0 -18
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.d.ts +0 -17
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.ts +0 -18
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.d.ts +0 -13
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.ts +0 -14
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.d.ts +0 -25
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.ts +0 -26
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.d.ts +0 -25
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.ts +0 -35
- package/dist/ts/implementation/graphics/fonts/ttf-head-table.d.ts +0 -94
- package/dist/ts/implementation/graphics/fonts/ttf-head-table.ts +0 -94
- package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.d.ts +0 -55
- package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.ts +0 -56
- package/dist/ts/implementation/graphics/fonts/ttf-loca-table.d.ts +0 -9
- package/dist/ts/implementation/graphics/fonts/ttf-loca-table.ts +0 -10
- package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.d.ts +0 -13
- package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.ts +0 -14
- package/dist/ts/implementation/graphics/fonts/ttf-metrics.d.ts +0 -101
- package/dist/ts/implementation/graphics/fonts/ttf-metrics.ts +0 -106
- package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.d.ts +0 -57
- package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.ts +0 -58
- package/dist/ts/implementation/graphics/fonts/ttf-name-record.d.ts +0 -33
- package/dist/ts/implementation/graphics/fonts/ttf-name-record.ts +0 -33
- package/dist/ts/implementation/graphics/fonts/ttf-name-table.d.ts +0 -22
- package/dist/ts/implementation/graphics/fonts/ttf-name-table.ts +0 -22
- package/dist/ts/implementation/graphics/fonts/ttf-post-table.d.ts +0 -41
- package/dist/ts/implementation/graphics/fonts/ttf-post-table.ts +0 -42
- package/dist/ts/implementation/graphics/fonts/ttf-reader.d.ts +0 -227
- package/dist/ts/implementation/graphics/fonts/ttf-reader.ts +0 -1267
- package/dist/ts/implementation/graphics/fonts/ttf-table-info.d.ts +0 -22
- package/dist/ts/implementation/graphics/fonts/ttf-table-info.ts +0 -26
- package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.d.ts +0 -25
- package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.ts +0 -26
- package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.d.ts +0 -213
- package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.ts +0 -592
- package/dist/ts/implementation/graphics/images/byte-array.d.ts +0 -74
- package/dist/ts/implementation/graphics/images/byte-array.ts +0 -137
- package/dist/ts/implementation/graphics/images/image-decoder.d.ts +0 -274
- package/dist/ts/implementation/graphics/images/image-decoder.ts +0 -439
- package/dist/ts/implementation/graphics/images/index.d.ts +0 -8
- package/dist/ts/implementation/graphics/images/index.ts +0 -8
- package/dist/ts/implementation/graphics/images/pdf-bitmap.d.ts +0 -90
- package/dist/ts/implementation/graphics/images/pdf-bitmap.ts +0 -110
- package/dist/ts/implementation/graphics/images/pdf-image.d.ts +0 -88
- package/dist/ts/implementation/graphics/images/pdf-image.ts +0 -132
- package/dist/ts/implementation/graphics/index.d.ts +0 -35
- package/dist/ts/implementation/graphics/index.ts +0 -46
- package/dist/ts/implementation/graphics/pdf-color.d.ts +0 -206
- package/dist/ts/implementation/graphics/pdf-color.ts +0 -484
- package/dist/ts/implementation/graphics/pdf-graphics.d.ts +0 -1210
- package/dist/ts/implementation/graphics/pdf-graphics.ts +0 -2556
- package/dist/ts/implementation/graphics/pdf-margins.d.ts +0 -82
- package/dist/ts/implementation/graphics/pdf-margins.ts +0 -124
- package/dist/ts/implementation/graphics/pdf-pen.d.ts +0 -237
- package/dist/ts/implementation/graphics/pdf-pen.ts +0 -370
- package/dist/ts/implementation/graphics/pdf-resources.d.ts +0 -122
- package/dist/ts/implementation/graphics/pdf-resources.ts +0 -300
- package/dist/ts/implementation/graphics/pdf-transformation-matrix.d.ts +0 -143
- package/dist/ts/implementation/graphics/pdf-transformation-matrix.ts +0 -246
- package/dist/ts/implementation/graphics/pdf-transparency.d.ts +0 -34
- package/dist/ts/implementation/graphics/pdf-transparency.ts +0 -93
- package/dist/ts/implementation/graphics/unit-convertor.d.ts +0 -72
- package/dist/ts/implementation/graphics/unit-convertor.ts +0 -96
- package/dist/ts/implementation/index.d.ts +0 -103
- package/dist/ts/implementation/index.ts +0 -103
- package/dist/ts/implementation/input-output/big-endian-writer.d.ts +0 -59
- package/dist/ts/implementation/input-output/big-endian-writer.ts +0 -121
- package/dist/ts/implementation/input-output/cross-table.d.ts +0 -21
- package/dist/ts/implementation/input-output/cross-table.ts +0 -21
- package/dist/ts/implementation/input-output/enum.d.ts +0 -16
- package/dist/ts/implementation/input-output/enum.ts +0 -16
- package/dist/ts/implementation/input-output/index.d.ts +0 -12
- package/dist/ts/implementation/input-output/index.ts +0 -12
- package/dist/ts/implementation/input-output/pdf-cross-table.d.ts +0 -259
- package/dist/ts/implementation/input-output/pdf-cross-table.ts +0 -536
- package/dist/ts/implementation/input-output/pdf-dictionary-properties.d.ts +0 -583
- package/dist/ts/implementation/input-output/pdf-dictionary-properties.ts +0 -586
- package/dist/ts/implementation/input-output/pdf-main-object-collection.d.ts +0 -120
- package/dist/ts/implementation/input-output/pdf-main-object-collection.ts +0 -194
- package/dist/ts/implementation/input-output/pdf-operators.d.ts +0 -361
- package/dist/ts/implementation/input-output/pdf-operators.ts +0 -363
- package/dist/ts/implementation/input-output/pdf-stream-writer.d.ts +0 -311
- package/dist/ts/implementation/input-output/pdf-stream-writer.ts +0 -681
- package/dist/ts/implementation/input-output/pdf-writer.d.ts +0 -122
- package/dist/ts/implementation/input-output/pdf-writer.ts +0 -164
- package/dist/ts/implementation/pages/enum.d.ts +0 -201
- package/dist/ts/implementation/pages/enum.ts +0 -201
- package/dist/ts/implementation/pages/index.d.ts +0 -17
- package/dist/ts/implementation/pages/index.ts +0 -17
- package/dist/ts/implementation/pages/page-added-event-arguments.d.ts +0 -30
- package/dist/ts/implementation/pages/page-added-event-arguments.ts +0 -39
- package/dist/ts/implementation/pages/pdf-document-page-collection.d.ts +0 -86
- package/dist/ts/implementation/pages/pdf-document-page-collection.ts +0 -180
- package/dist/ts/implementation/pages/pdf-page-base.d.ts +0 -121
- package/dist/ts/implementation/pages/pdf-page-base.ts +0 -181
- package/dist/ts/implementation/pages/pdf-page-layer-collection.d.ts +0 -99
- package/dist/ts/implementation/pages/pdf-page-layer-collection.ts +0 -348
- package/dist/ts/implementation/pages/pdf-page-layer.d.ts +0 -160
- package/dist/ts/implementation/pages/pdf-page-layer.ts +0 -271
- package/dist/ts/implementation/pages/pdf-page-settings.d.ts +0 -111
- package/dist/ts/implementation/pages/pdf-page-settings.ts +0 -192
- package/dist/ts/implementation/pages/pdf-page-size.d.ts +0 -159
- package/dist/ts/implementation/pages/pdf-page-size.ts +0 -162
- package/dist/ts/implementation/pages/pdf-page-template-element.d.ts +0 -240
- package/dist/ts/implementation/pages/pdf-page-template-element.ts +0 -663
- package/dist/ts/implementation/pages/pdf-page.d.ts +0 -153
- package/dist/ts/implementation/pages/pdf-page.ts +0 -235
- package/dist/ts/implementation/pages/pdf-section-collection.d.ts +0 -109
- package/dist/ts/implementation/pages/pdf-section-collection.ts +0 -187
- package/dist/ts/implementation/pages/pdf-section-page-collection.d.ts +0 -41
- package/dist/ts/implementation/pages/pdf-section-page-collection.ts +0 -61
- package/dist/ts/implementation/pages/pdf-section-templates.d.ts +0 -64
- package/dist/ts/implementation/pages/pdf-section-templates.ts +0 -96
- package/dist/ts/implementation/pages/pdf-section.d.ts +0 -327
- package/dist/ts/implementation/pages/pdf-section.ts +0 -644
- package/dist/ts/implementation/primitives/index.d.ts +0 -12
- package/dist/ts/implementation/primitives/index.ts +0 -12
- package/dist/ts/implementation/primitives/pdf-array.d.ts +0 -192
- package/dist/ts/implementation/primitives/pdf-array.ts +0 -386
- package/dist/ts/implementation/primitives/pdf-boolean.d.ts +0 -84
- package/dist/ts/implementation/primitives/pdf-boolean.ts +0 -119
- package/dist/ts/implementation/primitives/pdf-dictionary.d.ts +0 -362
- package/dist/ts/implementation/primitives/pdf-dictionary.ts +0 -513
- package/dist/ts/implementation/primitives/pdf-name.d.ts +0 -121
- package/dist/ts/implementation/primitives/pdf-name.ts +0 -218
- package/dist/ts/implementation/primitives/pdf-number.d.ts +0 -104
- package/dist/ts/implementation/primitives/pdf-number.ts +0 -165
- package/dist/ts/implementation/primitives/pdf-reference.d.ts +0 -223
- package/dist/ts/implementation/primitives/pdf-reference.ts +0 -430
- package/dist/ts/implementation/primitives/pdf-stream.d.ts +0 -161
- package/dist/ts/implementation/primitives/pdf-stream.ts +0 -306
- package/dist/ts/implementation/primitives/pdf-string.d.ts +0 -235
- package/dist/ts/implementation/primitives/pdf-string.ts +0 -397
- package/dist/ts/implementation/structured-elements/grid/index.d.ts +0 -4
- package/dist/ts/implementation/structured-elements/grid/index.ts +0 -10
- package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.d.ts +0 -597
- package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.ts +0 -2127
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.d.ts +0 -288
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.ts +0 -1225
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.d.ts +0 -108
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.ts +0 -206
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.d.ts +0 -261
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.ts +0 -470
- package/dist/ts/implementation/structured-elements/grid/pdf-grid.d.ts +0 -292
- package/dist/ts/implementation/structured-elements/grid/pdf-grid.ts +0 -853
- package/dist/ts/implementation/structured-elements/grid/styles/index.d.ts +0 -5
- package/dist/ts/implementation/structured-elements/grid/styles/index.ts +0 -5
- package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.d.ts +0 -146
- package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.ts +0 -238
- package/dist/ts/implementation/structured-elements/grid/styles/style.d.ts +0 -272
- package/dist/ts/implementation/structured-elements/grid/styles/style.ts +0 -423
- package/dist/ts/implementation/structured-elements/index.d.ts +0 -4
- package/dist/ts/implementation/structured-elements/index.ts +0 -10
- package/dist/ts/implementation/structured-elements/tables/light-tables/enum.d.ts +0 -16
- package/dist/ts/implementation/structured-elements/tables/light-tables/enum.ts +0 -16
- package/dist/ts/index.d.ts +0 -116
- package/dist/ts/index.ts +0 -116
- package/dist/ts/interfaces/i-pdf-cache.d.ts +0 -23
- package/dist/ts/interfaces/i-pdf-cache.ts +0 -23
- package/dist/ts/interfaces/i-pdf-changable.d.ts +0 -17
- package/dist/ts/interfaces/i-pdf-changable.ts +0 -17
- package/dist/ts/interfaces/i-pdf-clonable.d.ts +0 -12
- package/dist/ts/interfaces/i-pdf-clonable.ts +0 -12
- package/dist/ts/interfaces/i-pdf-primitives.d.ts +0 -45
- package/dist/ts/interfaces/i-pdf-primitives.ts +0 -45
- package/dist/ts/interfaces/i-pdf-true-type-font.d.ts +0 -18
- package/dist/ts/interfaces/i-pdf-true-type-font.ts +0 -48
- package/dist/ts/interfaces/i-pdf-wrapper.d.ts +0 -13
- package/dist/ts/interfaces/i-pdf-wrapper.ts +0 -13
- package/dist/ts/interfaces/i-pdf-writer.d.ts +0 -29
- package/dist/ts/interfaces/i-pdf-writer.ts +0 -29
- package/dist/ts/interfaces/index.d.ts +0 -10
- package/dist/ts/interfaces/index.ts +0 -10
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PdfCacheCollection.ts class for EJ2-PDF
|
|
3
|
-
*/
|
|
4
|
-
import { Dictionary } from './../collections/dictionary';
|
|
5
|
-
import { PdfFont } from './../graphics/fonts/pdf-font';
|
|
6
|
-
import { IPdfCache } from './../../interfaces/i-pdf-cache';
|
|
7
|
-
/**
|
|
8
|
-
* `Collection of the cached objects`.
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export class PdfCacheCollection {
|
|
12
|
-
// Fields
|
|
13
|
-
/**
|
|
14
|
-
* Stores the similar `objects`.
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
|
-
private referenceObjects : Object[][];
|
|
18
|
-
/**
|
|
19
|
-
* Stores the references of font with GUID `objects`.
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
private pdfFontCollection : Dictionary<string, PdfFont>;
|
|
23
|
-
// Constructors
|
|
24
|
-
/**
|
|
25
|
-
* Initializes a new instance of the `PdfCacheCollection` class.
|
|
26
|
-
* @private
|
|
27
|
-
*/
|
|
28
|
-
public constructor() {
|
|
29
|
-
this.referenceObjects = [];
|
|
30
|
-
this.pdfFontCollection = new Dictionary<string, PdfFont>();
|
|
31
|
-
}
|
|
32
|
-
// Public methods
|
|
33
|
-
/**
|
|
34
|
-
* `Searches` for the similar cached object. If is not found - adds the object to the cache.
|
|
35
|
-
* @private
|
|
36
|
-
*/
|
|
37
|
-
public search(obj : IPdfCache) : IPdfCache {
|
|
38
|
-
let result : IPdfCache = null;
|
|
39
|
-
let group : Object[] = this.getGroup(obj);
|
|
40
|
-
if (group == null) {
|
|
41
|
-
group = this.createNewGroup();
|
|
42
|
-
} else if (group.length > 0) {
|
|
43
|
-
result = group[0] as IPdfCache;
|
|
44
|
-
}
|
|
45
|
-
group.push(obj);
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
// Implementation
|
|
49
|
-
/**
|
|
50
|
-
* `Creates` a new group.
|
|
51
|
-
* @private
|
|
52
|
-
*/
|
|
53
|
-
public createNewGroup() : Object[] {
|
|
54
|
-
let group : Object[] = [];
|
|
55
|
-
this.referenceObjects.push(group);
|
|
56
|
-
return group;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* `Find and Return` a group.
|
|
60
|
-
* @private
|
|
61
|
-
*/
|
|
62
|
-
public getGroup(result : IPdfCache) : Object[] {
|
|
63
|
-
let group : Object[] = null;
|
|
64
|
-
if (result !== null) {
|
|
65
|
-
let len : number = this.referenceObjects.length;
|
|
66
|
-
for (let i : number = 0; i < len; i++) {
|
|
67
|
-
if (this.referenceObjects.length > 0) {
|
|
68
|
-
let tGroup : Object[] = this.referenceObjects[i];
|
|
69
|
-
if (tGroup.length > 0) {
|
|
70
|
-
let representative : IPdfCache = tGroup[0] as IPdfCache;
|
|
71
|
-
if (result.equalsTo(representative)) {
|
|
72
|
-
group = tGroup;
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
} else {
|
|
76
|
-
this.removeGroup(tGroup);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
len = this.referenceObjects.length;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return group;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Remove a group from the storage.
|
|
86
|
-
*/
|
|
87
|
-
public removeGroup(group : Object[]) : void {
|
|
88
|
-
if (group !== null) {
|
|
89
|
-
let index : number = this.referenceObjects.indexOf(group);
|
|
90
|
-
this.referenceObjects.slice(index, index + 1);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
public destroy() : void {
|
|
94
|
-
this.pdfFontCollection = undefined;
|
|
95
|
-
this.referenceObjects = undefined;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PdfCollection.ts class for EJ2-PDF
|
|
3
|
-
* The class used to handle the collection of PdF objects.
|
|
4
|
-
*/
|
|
5
|
-
export declare class PdfCollection {
|
|
6
|
-
/**
|
|
7
|
-
* Stores the `objects` as array.
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
private collection;
|
|
11
|
-
/**
|
|
12
|
-
* Initializes a new instance of the `Collection` class.
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
constructor();
|
|
16
|
-
/**
|
|
17
|
-
* Gets the `Count` of stored objects.
|
|
18
|
-
* @private
|
|
19
|
-
*/
|
|
20
|
-
readonly count: number;
|
|
21
|
-
/**
|
|
22
|
-
* Gets the `list` of stored objects.
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
readonly list: Object[];
|
|
26
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PdfCollection.ts class for EJ2-PDF
|
|
3
|
-
* The class used to handle the collection of PdF objects.
|
|
4
|
-
*/
|
|
5
|
-
export class PdfCollection {
|
|
6
|
-
// Fields
|
|
7
|
-
/**
|
|
8
|
-
* Stores the `objects` as array.
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
private collection : Object[];
|
|
12
|
-
// Constructors
|
|
13
|
-
/**
|
|
14
|
-
* Initializes a new instance of the `Collection` class.
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
|
-
public constructor() {
|
|
18
|
-
//
|
|
19
|
-
}
|
|
20
|
-
// Properties
|
|
21
|
-
/**
|
|
22
|
-
* Gets the `Count` of stored objects.
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
public get count() : number {
|
|
26
|
-
if (typeof this.collection === 'undefined') {
|
|
27
|
-
this.collection = [];
|
|
28
|
-
}
|
|
29
|
-
return this.collection.length;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Gets the `list` of stored objects.
|
|
33
|
-
* @private
|
|
34
|
-
*/
|
|
35
|
-
public get list() : Object[] {
|
|
36
|
-
if (typeof this.collection === 'undefined') {
|
|
37
|
-
this.collection = [];
|
|
38
|
-
}
|
|
39
|
-
return this.collection;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PdfDestination.ts class for EJ2-PDF
|
|
3
|
-
*/
|
|
4
|
-
import { IPdfWrapper } from './../../interfaces/i-pdf-wrapper';
|
|
5
|
-
import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives';
|
|
6
|
-
import { PointF, RectangleF } from './../drawing/pdf-drawing';
|
|
7
|
-
import { PdfPageBase } from './../pages/pdf-page-base';
|
|
8
|
-
import { PdfDestinationMode } from './../general/enum';
|
|
9
|
-
import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
|
|
10
|
-
/**
|
|
11
|
-
* `PdfDestination` class represents an anchor in the document
|
|
12
|
-
* where bookmarks or annotations can direct when clicked.
|
|
13
|
-
*/
|
|
14
|
-
export declare class PdfDestination implements IPdfWrapper {
|
|
15
|
-
/**
|
|
16
|
-
* Internal variable for accessing fields from `DictionryProperties` class.
|
|
17
|
-
* @private
|
|
18
|
-
*/
|
|
19
|
-
protected dictionaryProperties: DictionaryProperties;
|
|
20
|
-
/**
|
|
21
|
-
* Type of the `destination`.
|
|
22
|
-
* @private
|
|
23
|
-
*/
|
|
24
|
-
private destinationMode;
|
|
25
|
-
/**
|
|
26
|
-
* `Zoom` factor.
|
|
27
|
-
* @private
|
|
28
|
-
* @default 0
|
|
29
|
-
*/
|
|
30
|
-
private zoomFactor;
|
|
31
|
-
/**
|
|
32
|
-
* `Location` of the destination.
|
|
33
|
-
* @default new PointF() with 0 ,0 as co-ordinates
|
|
34
|
-
* @private
|
|
35
|
-
*/
|
|
36
|
-
private destinationLocation;
|
|
37
|
-
/**
|
|
38
|
-
* `Bounds` of the destination as RectangleF.
|
|
39
|
-
* @default RectangleF.Empty
|
|
40
|
-
* @private
|
|
41
|
-
*/
|
|
42
|
-
private bounds;
|
|
43
|
-
/**
|
|
44
|
-
* Parent `page` reference.
|
|
45
|
-
* @private
|
|
46
|
-
*/
|
|
47
|
-
private pdfPage;
|
|
48
|
-
/**
|
|
49
|
-
* Pdf primitive representing `this` object.
|
|
50
|
-
* @private
|
|
51
|
-
*/
|
|
52
|
-
private array;
|
|
53
|
-
/**
|
|
54
|
-
* Initializes a new instance of the `PdfDestination` class with page object.
|
|
55
|
-
* @private
|
|
56
|
-
*/
|
|
57
|
-
constructor(page: PdfPageBase);
|
|
58
|
-
/**
|
|
59
|
-
* Initializes a new instance of the `PdfDestination` class with page object and location.
|
|
60
|
-
* @private
|
|
61
|
-
*/
|
|
62
|
-
constructor(page: PdfPageBase, location: PointF);
|
|
63
|
-
/**
|
|
64
|
-
* Initializes a new instance of the `PdfDestination` class with page object and bounds.
|
|
65
|
-
* @private
|
|
66
|
-
*/
|
|
67
|
-
constructor(page: PdfPageBase, rectangle: RectangleF);
|
|
68
|
-
/**
|
|
69
|
-
* Gets and Sets the `zoom` factor.
|
|
70
|
-
* @private
|
|
71
|
-
*/
|
|
72
|
-
zoom: number;
|
|
73
|
-
/**
|
|
74
|
-
* Gets and Sets the `page` object.
|
|
75
|
-
* @private
|
|
76
|
-
*/
|
|
77
|
-
page: PdfPageBase;
|
|
78
|
-
/**
|
|
79
|
-
* Gets and Sets the destination `mode`.
|
|
80
|
-
* @private
|
|
81
|
-
*/
|
|
82
|
-
mode: PdfDestinationMode;
|
|
83
|
-
/**
|
|
84
|
-
* Gets and Sets the `location`.
|
|
85
|
-
* @private
|
|
86
|
-
*/
|
|
87
|
-
location: PointF;
|
|
88
|
-
/**
|
|
89
|
-
* `Translates` co-ordinates to PDF co-ordinate system (lower/left).
|
|
90
|
-
* @private
|
|
91
|
-
*/
|
|
92
|
-
private pointToNativePdf;
|
|
93
|
-
/**
|
|
94
|
-
* `In fills` array by correct values.
|
|
95
|
-
* @private
|
|
96
|
-
*/
|
|
97
|
-
private initializePrimitive;
|
|
98
|
-
/**
|
|
99
|
-
* Gets the `element` representing this object.
|
|
100
|
-
* @private
|
|
101
|
-
*/
|
|
102
|
-
readonly element: IPdfPrimitive;
|
|
103
|
-
}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PdfDestination.ts class for EJ2-PDF
|
|
3
|
-
*/
|
|
4
|
-
import { IPdfWrapper } from './../../interfaces/i-pdf-wrapper';
|
|
5
|
-
import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives';
|
|
6
|
-
import { PointF, RectangleF } from './../drawing/pdf-drawing';
|
|
7
|
-
import { PdfPageBase } from './../pages/pdf-page-base';
|
|
8
|
-
import { PdfArray } from './../primitives/pdf-array';
|
|
9
|
-
import { PdfPage } from './../pages/pdf-page';
|
|
10
|
-
import { PdfPageRotateAngle } from './../pages/enum';
|
|
11
|
-
import { PdfDestinationMode } from './../general/enum';
|
|
12
|
-
import { PdfSection } from './../pages/pdf-section';
|
|
13
|
-
import { PdfReferenceHolder } from './../primitives/pdf-reference';
|
|
14
|
-
import { PdfName } from './../primitives/pdf-name';
|
|
15
|
-
import { PdfNumber } from './../primitives/pdf-number';
|
|
16
|
-
import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
|
|
17
|
-
/**
|
|
18
|
-
* `PdfDestination` class represents an anchor in the document
|
|
19
|
-
* where bookmarks or annotations can direct when clicked.
|
|
20
|
-
*/
|
|
21
|
-
export class PdfDestination implements IPdfWrapper {
|
|
22
|
-
// Fields
|
|
23
|
-
/**
|
|
24
|
-
* Internal variable for accessing fields from `DictionryProperties` class.
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
|
-
protected dictionaryProperties : DictionaryProperties = new DictionaryProperties();
|
|
28
|
-
/**
|
|
29
|
-
* Type of the `destination`.
|
|
30
|
-
* @private
|
|
31
|
-
*/
|
|
32
|
-
private destinationMode : PdfDestinationMode = PdfDestinationMode.Location;
|
|
33
|
-
/**
|
|
34
|
-
* `Zoom` factor.
|
|
35
|
-
* @private
|
|
36
|
-
* @default 0
|
|
37
|
-
*/
|
|
38
|
-
private zoomFactor : number = 0;
|
|
39
|
-
/**
|
|
40
|
-
* `Location` of the destination.
|
|
41
|
-
* @default new PointF() with 0 ,0 as co-ordinates
|
|
42
|
-
* @private
|
|
43
|
-
*/
|
|
44
|
-
private destinationLocation : PointF = new PointF(0, 0);
|
|
45
|
-
/**
|
|
46
|
-
* `Bounds` of the destination as RectangleF.
|
|
47
|
-
* @default RectangleF.Empty
|
|
48
|
-
* @private
|
|
49
|
-
*/
|
|
50
|
-
private bounds : RectangleF = new RectangleF();
|
|
51
|
-
/**
|
|
52
|
-
* Parent `page` reference.
|
|
53
|
-
* @private
|
|
54
|
-
*/
|
|
55
|
-
private pdfPage : PdfPageBase;
|
|
56
|
-
/**
|
|
57
|
-
* Pdf primitive representing `this` object.
|
|
58
|
-
* @private
|
|
59
|
-
*/
|
|
60
|
-
private array : PdfArray = new PdfArray();
|
|
61
|
-
// Constructors
|
|
62
|
-
/**
|
|
63
|
-
* Initializes a new instance of the `PdfDestination` class with page object.
|
|
64
|
-
* @private
|
|
65
|
-
*/
|
|
66
|
-
public constructor(page : PdfPageBase)
|
|
67
|
-
/**
|
|
68
|
-
* Initializes a new instance of the `PdfDestination` class with page object and location.
|
|
69
|
-
* @private
|
|
70
|
-
*/
|
|
71
|
-
public constructor(page : PdfPageBase, location : PointF)
|
|
72
|
-
/**
|
|
73
|
-
* Initializes a new instance of the `PdfDestination` class with page object and bounds.
|
|
74
|
-
* @private
|
|
75
|
-
*/
|
|
76
|
-
public constructor(page : PdfPageBase, rectangle : RectangleF)
|
|
77
|
-
public constructor(arg1 : PdfPageBase, arg2 ?: RectangleF | PointF) {
|
|
78
|
-
let angle : PdfPageRotateAngle = PdfPageRotateAngle.RotateAngle0;
|
|
79
|
-
this.destinationLocation = new PointF(0, this.destinationLocation.y);
|
|
80
|
-
this.pdfPage = arg1;
|
|
81
|
-
if (arg2 instanceof PointF) {
|
|
82
|
-
this.destinationLocation = arg2;
|
|
83
|
-
} else {
|
|
84
|
-
this.bounds = arg2;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// Properties
|
|
88
|
-
/**
|
|
89
|
-
* Gets and Sets the `zoom` factor.
|
|
90
|
-
* @private
|
|
91
|
-
*/
|
|
92
|
-
public get zoom() : number {
|
|
93
|
-
return this.zoomFactor;
|
|
94
|
-
}
|
|
95
|
-
public set zoom(value : number) {
|
|
96
|
-
this.zoomFactor = value;
|
|
97
|
-
this.initializePrimitive();
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Gets and Sets the `page` object.
|
|
101
|
-
* @private
|
|
102
|
-
*/
|
|
103
|
-
public get page() : PdfPageBase {
|
|
104
|
-
return this.pdfPage;
|
|
105
|
-
}
|
|
106
|
-
public set page(value : PdfPageBase) {
|
|
107
|
-
this.pdfPage = value;
|
|
108
|
-
this.initializePrimitive();
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Gets and Sets the destination `mode`.
|
|
112
|
-
* @private
|
|
113
|
-
*/
|
|
114
|
-
public get mode() : PdfDestinationMode {
|
|
115
|
-
return this. destinationMode;
|
|
116
|
-
}
|
|
117
|
-
public set mode(value : PdfDestinationMode) {
|
|
118
|
-
this.destinationMode = value;
|
|
119
|
-
this.initializePrimitive();
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Gets and Sets the `location`.
|
|
123
|
-
* @private
|
|
124
|
-
*/
|
|
125
|
-
public get location() : PointF {
|
|
126
|
-
return this.destinationLocation;
|
|
127
|
-
}
|
|
128
|
-
public set location(value : PointF) {
|
|
129
|
-
this.destinationLocation = value;
|
|
130
|
-
this.initializePrimitive();
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* `Translates` co-ordinates to PDF co-ordinate system (lower/left).
|
|
134
|
-
* @private
|
|
135
|
-
*/
|
|
136
|
-
private pointToNativePdf(page : PdfPage, point : PointF) : PointF {
|
|
137
|
-
let section : PdfSection = page.section;
|
|
138
|
-
return section.pointToNativePdf(page, point);
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* `In fills` array by correct values.
|
|
142
|
-
* @private
|
|
143
|
-
*/
|
|
144
|
-
private initializePrimitive() : void {
|
|
145
|
-
this.array.clear();
|
|
146
|
-
this.array.add(new PdfReferenceHolder(this.pdfPage));
|
|
147
|
-
switch (this.destinationMode) {
|
|
148
|
-
case PdfDestinationMode.Location:
|
|
149
|
-
let simplePage : PdfPage = this.pdfPage as PdfPage;
|
|
150
|
-
let point : PointF = new PointF();
|
|
151
|
-
point = this.pointToNativePdf(simplePage, this.destinationLocation);
|
|
152
|
-
this.array.add(new PdfName(this.dictionaryProperties.xyz));
|
|
153
|
-
this.array.add(new PdfNumber(point.x));
|
|
154
|
-
this.array.add(new PdfNumber(point.y));
|
|
155
|
-
this.array.add(new PdfNumber(this.zoomFactor));
|
|
156
|
-
break;
|
|
157
|
-
case PdfDestinationMode.FitToPage:
|
|
158
|
-
this.array.add(new PdfName(this.dictionaryProperties.fit));
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Gets the `element` representing this object.
|
|
164
|
-
* @private
|
|
165
|
-
*/
|
|
166
|
-
public get element() : IPdfPrimitive {
|
|
167
|
-
this.initializePrimitive();
|
|
168
|
-
return this.array;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the constant values specifying whether to extend the shading
|
|
3
|
-
* beyond the starting and ending points of the axis.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum PdfExtend {
|
|
6
|
-
/**
|
|
7
|
-
* Do not extend any point.
|
|
8
|
-
*/
|
|
9
|
-
None = 0,
|
|
10
|
-
/**
|
|
11
|
-
* Extend start point.
|
|
12
|
-
*/
|
|
13
|
-
Start = 1,
|
|
14
|
-
/**
|
|
15
|
-
* Extend end point.
|
|
16
|
-
*/
|
|
17
|
-
End = 2,
|
|
18
|
-
/**
|
|
19
|
-
* Extend both start and end points.
|
|
20
|
-
*/
|
|
21
|
-
Both = 3
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the gradient direction of the linear gradient brush.
|
|
25
|
-
*/
|
|
26
|
-
export declare enum PdfLinearGradientMode {
|
|
27
|
-
/**
|
|
28
|
-
* Specifies a gradient from upper right to lower left.
|
|
29
|
-
*/
|
|
30
|
-
BackwardDiagonal = 0,
|
|
31
|
-
/**
|
|
32
|
-
* Specifies a gradient from upper left to lower right.
|
|
33
|
-
*/
|
|
34
|
-
ForwardDiagonal = 1,
|
|
35
|
-
/**
|
|
36
|
-
* Specifies a gradient from left to right.
|
|
37
|
-
*/
|
|
38
|
-
Horizontal = 2,
|
|
39
|
-
/**
|
|
40
|
-
* Specifies a gradient from top to bottom.
|
|
41
|
-
*/
|
|
42
|
-
Vertical = 3
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Shading type constants.
|
|
46
|
-
*/
|
|
47
|
-
export declare enum ShadingType {
|
|
48
|
-
/**
|
|
49
|
-
* Function-based shading.
|
|
50
|
-
*/
|
|
51
|
-
Function = 1,
|
|
52
|
-
/**
|
|
53
|
-
* Axial shading.
|
|
54
|
-
*/
|
|
55
|
-
Axial = 2,
|
|
56
|
-
/**
|
|
57
|
-
* Radial shading.
|
|
58
|
-
*/
|
|
59
|
-
Radial = 3
|
|
60
|
-
}
|
|
61
|
-
export declare enum KnownColor {
|
|
62
|
-
ActiveBorder = 1,
|
|
63
|
-
ActiveCaption = 2,
|
|
64
|
-
ActiveCaptionText = 3,
|
|
65
|
-
AppWorkspace = 4,
|
|
66
|
-
Control = 5,
|
|
67
|
-
ControlDark = 6,
|
|
68
|
-
ControlDarkDark = 7,
|
|
69
|
-
ControlLight = 8,
|
|
70
|
-
ControlLightLight = 9,
|
|
71
|
-
ControlText = 10,
|
|
72
|
-
Desktop = 11,
|
|
73
|
-
GrayText = 12,
|
|
74
|
-
Highlight = 13,
|
|
75
|
-
HighlightText = 14,
|
|
76
|
-
HotTrack = 15,
|
|
77
|
-
InactiveBorder = 16,
|
|
78
|
-
InactiveCaption = 17,
|
|
79
|
-
InactiveCaptionText = 18,
|
|
80
|
-
Info = 19,
|
|
81
|
-
InfoText = 20,
|
|
82
|
-
Menu = 21,
|
|
83
|
-
MenuText = 22,
|
|
84
|
-
ScrollBar = 23,
|
|
85
|
-
Window = 24,
|
|
86
|
-
WindowFrame = 25,
|
|
87
|
-
WindowText = 26,
|
|
88
|
-
Transparent = 27,
|
|
89
|
-
AliceBlue = 28,
|
|
90
|
-
AntiqueWhite = 29,
|
|
91
|
-
Aqua = 30,
|
|
92
|
-
Aquamarine = 31,
|
|
93
|
-
Azure = 32,
|
|
94
|
-
Beige = 33,
|
|
95
|
-
Bisque = 34,
|
|
96
|
-
Black = 35,
|
|
97
|
-
BlanchedAlmond = 36,
|
|
98
|
-
Blue = 37,
|
|
99
|
-
BlueViolet = 38,
|
|
100
|
-
Brown = 39,
|
|
101
|
-
BurlyWood = 40,
|
|
102
|
-
CadetBlue = 41,
|
|
103
|
-
Chartreuse = 42,
|
|
104
|
-
Chocolate = 43,
|
|
105
|
-
Coral = 44,
|
|
106
|
-
CornflowerBlue = 45,
|
|
107
|
-
Cornsilk = 46,
|
|
108
|
-
Crimson = 47,
|
|
109
|
-
Cyan = 48,
|
|
110
|
-
DarkBlue = 49,
|
|
111
|
-
DarkCyan = 50,
|
|
112
|
-
DarkGoldenrod = 51,
|
|
113
|
-
DarkGray = 52,
|
|
114
|
-
DarkGreen = 53,
|
|
115
|
-
DarkKhaki = 54,
|
|
116
|
-
DarkMagenta = 55,
|
|
117
|
-
DarkOliveGreen = 56,
|
|
118
|
-
DarkOrange = 57,
|
|
119
|
-
DarkOrchid = 58,
|
|
120
|
-
DarkRed = 59,
|
|
121
|
-
DarkSalmon = 60,
|
|
122
|
-
DarkSeaGreen = 61,
|
|
123
|
-
DarkSlateBlue = 62,
|
|
124
|
-
DarkSlateGray = 63,
|
|
125
|
-
DarkTurquoise = 64,
|
|
126
|
-
DarkViolet = 65,
|
|
127
|
-
DeepPink = 66,
|
|
128
|
-
DeepSkyBlue = 67,
|
|
129
|
-
DimGray = 68,
|
|
130
|
-
DodgerBlue = 69,
|
|
131
|
-
Firebrick = 70,
|
|
132
|
-
FloralWhite = 71,
|
|
133
|
-
ForestGreen = 72,
|
|
134
|
-
Fuchsia = 73,
|
|
135
|
-
Gainsboro = 74,
|
|
136
|
-
GhostWhite = 75,
|
|
137
|
-
Gold = 76,
|
|
138
|
-
Goldenrod = 77,
|
|
139
|
-
Gray = 78,
|
|
140
|
-
Green = 79,
|
|
141
|
-
GreenYellow = 80,
|
|
142
|
-
Honeydew = 81,
|
|
143
|
-
HotPink = 82,
|
|
144
|
-
IndianRed = 83,
|
|
145
|
-
Indigo = 84,
|
|
146
|
-
Ivory = 85,
|
|
147
|
-
Khaki = 86,
|
|
148
|
-
Lavender = 87,
|
|
149
|
-
LavenderBlush = 88,
|
|
150
|
-
LawnGreen = 89,
|
|
151
|
-
LemonChiffon = 90,
|
|
152
|
-
LightBlue = 91,
|
|
153
|
-
LightCoral = 92,
|
|
154
|
-
LightCyan = 93,
|
|
155
|
-
LightGoldenrodYellow = 94,
|
|
156
|
-
LightGray = 95,
|
|
157
|
-
LightGreen = 96,
|
|
158
|
-
LightPink = 97,
|
|
159
|
-
LightSalmon = 98,
|
|
160
|
-
LightSeaGreen = 99,
|
|
161
|
-
LightSkyBlue = 100,
|
|
162
|
-
LightSlateGray = 101,
|
|
163
|
-
LightSteelBlue = 102,
|
|
164
|
-
LightYellow = 103,
|
|
165
|
-
Lime = 104,
|
|
166
|
-
LimeGreen = 105,
|
|
167
|
-
Linen = 106,
|
|
168
|
-
Magenta = 107,
|
|
169
|
-
Maroon = 108,
|
|
170
|
-
MediumAquamarine = 109,
|
|
171
|
-
MediumBlue = 110,
|
|
172
|
-
MediumOrchid = 111,
|
|
173
|
-
MediumPurple = 112,
|
|
174
|
-
MediumSeaGreen = 113,
|
|
175
|
-
MediumSlateBlue = 114,
|
|
176
|
-
MediumSpringGreen = 115,
|
|
177
|
-
MediumTurquoise = 116,
|
|
178
|
-
MediumVioletRed = 117,
|
|
179
|
-
MidnightBlue = 118,
|
|
180
|
-
MintCream = 119,
|
|
181
|
-
MistyRose = 120,
|
|
182
|
-
Moccasin = 121,
|
|
183
|
-
NavajoWhite = 122,
|
|
184
|
-
Navy = 123,
|
|
185
|
-
OldLace = 124,
|
|
186
|
-
Olive = 125,
|
|
187
|
-
OliveDrab = 126,
|
|
188
|
-
Orange = 127,
|
|
189
|
-
OrangeRed = 128,
|
|
190
|
-
Orchid = 129,
|
|
191
|
-
PaleGoldenrod = 130,
|
|
192
|
-
PaleGreen = 131,
|
|
193
|
-
PaleTurquoise = 132,
|
|
194
|
-
PaleVioletRed = 133,
|
|
195
|
-
PapayaWhip = 134,
|
|
196
|
-
PeachPuff = 135,
|
|
197
|
-
Peru = 136,
|
|
198
|
-
Pink = 137,
|
|
199
|
-
Plum = 138,
|
|
200
|
-
PowderBlue = 139,
|
|
201
|
-
Purple = 140,
|
|
202
|
-
Red = 141,
|
|
203
|
-
RosyBrown = 142,
|
|
204
|
-
RoyalBlue = 143,
|
|
205
|
-
SaddleBrown = 144,
|
|
206
|
-
Salmon = 145,
|
|
207
|
-
SandyBrown = 146,
|
|
208
|
-
SeaGreen = 147,
|
|
209
|
-
SeaShell = 148,
|
|
210
|
-
Sienna = 149,
|
|
211
|
-
Silver = 150,
|
|
212
|
-
SkyBlue = 151,
|
|
213
|
-
SlateBlue = 152,
|
|
214
|
-
SlateGray = 153,
|
|
215
|
-
Snow = 154,
|
|
216
|
-
SpringGreen = 155,
|
|
217
|
-
SteelBlue = 156,
|
|
218
|
-
Tan = 157,
|
|
219
|
-
Teal = 158,
|
|
220
|
-
Thistle = 159,
|
|
221
|
-
Tomato = 160,
|
|
222
|
-
Turquoise = 161,
|
|
223
|
-
Violet = 162,
|
|
224
|
-
Wheat = 163,
|
|
225
|
-
White = 164,
|
|
226
|
-
WhiteSmoke = 165,
|
|
227
|
-
Yellow = 166,
|
|
228
|
-
YellowGreen = 167,
|
|
229
|
-
ButtonFace = 168,
|
|
230
|
-
ButtonHighlight = 169,
|
|
231
|
-
ButtonShadow = 170,
|
|
232
|
-
GradientActiveCaption = 171,
|
|
233
|
-
GradientInactiveCaption = 172,
|
|
234
|
-
MenuBar = 173,
|
|
235
|
-
MenuHighlight = 174
|
|
236
|
-
}
|