@syncfusion/ej2-pdf-export 29.2.4 → 30.1.37
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 +1 -1
- package/dist/ej2-pdf-export.umd.min.js +1 -1
- package/dist/global/ej2-pdf-export.min.js +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/implementation/actions/action.d.ts +50 -0
- package/dist/ts/implementation/actions/action.ts +76 -0
- package/dist/ts/implementation/actions/index.d.ts +6 -0
- package/dist/ts/implementation/actions/index.ts +6 -0
- package/dist/ts/implementation/actions/uri-action.d.ts +33 -0
- package/dist/ts/implementation/actions/uri-action.ts +52 -0
- package/dist/ts/implementation/annotations/action-link-annotation.d.ts +30 -0
- package/dist/ts/implementation/annotations/action-link-annotation.ts +43 -0
- package/dist/ts/implementation/annotations/annotation-collection.d.ts +77 -0
- package/dist/ts/implementation/annotations/annotation-collection.ts +159 -0
- package/dist/ts/implementation/annotations/annotation.d.ts +152 -0
- package/dist/ts/implementation/annotations/annotation.ts +241 -0
- package/dist/ts/implementation/annotations/document-link-annotation.d.ts +89 -0
- package/dist/ts/implementation/annotations/document-link-annotation.ts +118 -0
- package/dist/ts/implementation/annotations/index.d.ts +11 -0
- package/dist/ts/implementation/annotations/index.ts +11 -0
- package/dist/ts/implementation/annotations/link-annotation.d.ts +23 -0
- package/dist/ts/implementation/annotations/link-annotation.ts +32 -0
- package/dist/ts/implementation/annotations/pdf-text-web-link.d.ts +118 -0
- package/dist/ts/implementation/annotations/pdf-text-web-link.ts +268 -0
- package/dist/ts/implementation/annotations/uri-annotation.d.ts +48 -0
- package/dist/ts/implementation/annotations/uri-annotation.ts +86 -0
- package/dist/ts/implementation/collections/dictionary.d.ts +76 -0
- package/dist/ts/implementation/collections/dictionary.ts +150 -0
- package/dist/ts/implementation/collections/index.d.ts +7 -0
- package/dist/ts/implementation/collections/index.ts +7 -0
- package/dist/ts/implementation/collections/object-object-pair/dictionary.d.ts +62 -0
- package/dist/ts/implementation/collections/object-object-pair/dictionary.ts +125 -0
- package/dist/ts/implementation/collections/object-object-pair/index.d.ts +5 -0
- package/dist/ts/implementation/collections/object-object-pair/index.ts +5 -0
- package/dist/ts/implementation/collections/utils.d.ts +27 -0
- package/dist/ts/implementation/collections/utils.ts +38 -0
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.d.ts +31 -0
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.ts +39 -0
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info.d.ts +67 -0
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info.ts +108 -0
- package/dist/ts/implementation/document/automatic-fields/automatic-field.d.ts +41 -0
- package/dist/ts/implementation/document/automatic-fields/automatic-field.ts +127 -0
- package/dist/ts/implementation/document/automatic-fields/composite-field.d.ts +46 -0
- package/dist/ts/implementation/document/automatic-fields/composite-field.ts +76 -0
- package/dist/ts/implementation/document/automatic-fields/index.d.ts +11 -0
- package/dist/ts/implementation/document/automatic-fields/index.ts +11 -0
- package/dist/ts/implementation/document/automatic-fields/multiple-value-field.d.ts +18 -0
- package/dist/ts/implementation/document/automatic-fields/multiple-value-field.ts +37 -0
- package/dist/ts/implementation/document/automatic-fields/page-count-field.d.ts +44 -0
- package/dist/ts/implementation/document/automatic-fields/page-count-field.ts +75 -0
- package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.d.ts +53 -0
- package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.ts +157 -0
- package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.d.ts +51 -0
- package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.ts +82 -0
- package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.d.ts +38 -0
- package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.ts +60 -0
- package/dist/ts/implementation/document/automatic-fields/single-value-field.d.ts +15 -0
- package/dist/ts/implementation/document/automatic-fields/single-value-field.ts +48 -0
- package/dist/ts/implementation/document/index.d.ts +16 -0
- package/dist/ts/implementation/document/index.ts +16 -0
- package/dist/ts/implementation/document/pdf-catalog.d.ts +39 -0
- package/dist/ts/implementation/document/pdf-catalog.ts +65 -0
- package/dist/ts/implementation/document/pdf-document-base.d.ts +137 -0
- package/dist/ts/implementation/document/pdf-document-base.ts +187 -0
- package/dist/ts/implementation/document/pdf-document-template.d.ts +166 -0
- package/dist/ts/implementation/document/pdf-document-template.ts +310 -0
- package/dist/ts/implementation/document/pdf-document.d.ts +227 -0
- package/dist/ts/implementation/document/pdf-document.ts +361 -0
- package/dist/ts/implementation/document/pdf-viewer-preferences.d.ts +467 -0
- package/dist/ts/implementation/document/pdf-viewer-preferences.ts +578 -0
- package/dist/ts/implementation/drawing/index.d.ts +5 -0
- package/dist/ts/implementation/drawing/index.ts +5 -0
- package/dist/ts/implementation/drawing/pdf-drawing.d.ts +141 -0
- package/dist/ts/implementation/drawing/pdf-drawing.ts +218 -0
- package/dist/ts/implementation/general/enum.d.ts +21 -0
- package/dist/ts/implementation/general/enum.ts +21 -0
- package/dist/ts/implementation/general/functions/index.d.ts +6 -0
- package/dist/ts/implementation/general/functions/index.ts +6 -0
- package/dist/ts/implementation/general/functions/pdf-function.d.ts +44 -0
- package/dist/ts/implementation/general/functions/pdf-function.ts +66 -0
- package/dist/ts/implementation/general/functions/pdf-sampled-function.d.ts +25 -0
- package/dist/ts/implementation/general/functions/pdf-sampled-function.ts +63 -0
- package/dist/ts/implementation/general/index.d.ts +9 -0
- package/dist/ts/implementation/general/index.ts +9 -0
- package/dist/ts/implementation/general/pdf-cache-collection.d.ts +42 -0
- package/dist/ts/implementation/general/pdf-cache-collection.ts +97 -0
- package/dist/ts/implementation/general/pdf-collection.d.ts +26 -0
- package/dist/ts/implementation/general/pdf-collection.ts +41 -0
- package/dist/ts/implementation/general/pdf-destination.d.ts +103 -0
- package/dist/ts/implementation/general/pdf-destination.ts +170 -0
- package/dist/ts/implementation/graphics/brushes/enum.d.ts +236 -0
- package/dist/ts/implementation/graphics/brushes/enum.ts +237 -0
- package/dist/ts/implementation/graphics/brushes/index.d.ts +13 -0
- package/dist/ts/implementation/graphics/brushes/index.ts +13 -0
- package/dist/ts/implementation/graphics/brushes/pdf-blend.d.ts +105 -0
- package/dist/ts/implementation/graphics/brushes/pdf-blend.ts +294 -0
- package/dist/ts/implementation/graphics/brushes/pdf-brush.d.ts +51 -0
- package/dist/ts/implementation/graphics/brushes/pdf-brush.ts +63 -0
- package/dist/ts/implementation/graphics/brushes/pdf-brushes.d.ts +726 -0
- package/dist/ts/implementation/graphics/brushes/pdf-brushes.ts +2438 -0
- package/dist/ts/implementation/graphics/brushes/pdf-color-blend.d.ts +113 -0
- package/dist/ts/implementation/graphics/brushes/pdf-color-blend.ts +295 -0
- package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.d.ts +155 -0
- package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.ts +311 -0
- package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.d.ts +147 -0
- package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.ts +406 -0
- package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.d.ts +122 -0
- package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.ts +290 -0
- package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.d.ts +77 -0
- package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.ts +107 -0
- package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.d.ts +161 -0
- package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.ts +304 -0
- package/dist/ts/implementation/graphics/constants.d.ts +31 -0
- package/dist/ts/implementation/graphics/constants.ts +31 -0
- package/dist/ts/implementation/graphics/enum.d.ts +413 -0
- package/dist/ts/implementation/graphics/enum.ts +413 -0
- package/dist/ts/implementation/graphics/figures/arc.d.ts +87 -0
- package/dist/ts/implementation/graphics/figures/arc.ts +133 -0
- package/dist/ts/implementation/graphics/figures/base/draw-element.d.ts +30 -0
- package/dist/ts/implementation/graphics/figures/base/draw-element.ts +59 -0
- package/dist/ts/implementation/graphics/figures/base/element-layouter.d.ts +161 -0
- package/dist/ts/implementation/graphics/figures/base/element-layouter.ts +260 -0
- package/dist/ts/implementation/graphics/figures/base/fill-element.d.ts +46 -0
- package/dist/ts/implementation/graphics/figures/base/fill-element.ts +72 -0
- package/dist/ts/implementation/graphics/figures/base/graphics-element.d.ts +16 -0
- package/dist/ts/implementation/graphics/figures/base/graphics-element.ts +34 -0
- package/dist/ts/implementation/graphics/figures/base/index.d.ts +9 -0
- package/dist/ts/implementation/graphics/figures/base/index.ts +9 -0
- package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.d.ts +40 -0
- package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.ts +69 -0
- package/dist/ts/implementation/graphics/figures/base/shape-layouter.d.ts +131 -0
- package/dist/ts/implementation/graphics/figures/base/shape-layouter.ts +276 -0
- package/dist/ts/implementation/graphics/figures/base/text-layouter.d.ts +107 -0
- package/dist/ts/implementation/graphics/figures/base/text-layouter.ts +212 -0
- package/dist/ts/implementation/graphics/figures/ellipse-part.d.ts +48 -0
- package/dist/ts/implementation/graphics/figures/ellipse-part.ts +76 -0
- package/dist/ts/implementation/graphics/figures/enum.d.ts +79 -0
- package/dist/ts/implementation/graphics/figures/enum.ts +80 -0
- package/dist/ts/implementation/graphics/figures/index.d.ts +13 -0
- package/dist/ts/implementation/graphics/figures/index.ts +13 -0
- package/dist/ts/implementation/graphics/figures/layout-element.d.ts +73 -0
- package/dist/ts/implementation/graphics/figures/layout-element.ts +132 -0
- package/dist/ts/implementation/graphics/figures/path.d.ts +319 -0
- package/dist/ts/implementation/graphics/figures/path.ts +646 -0
- package/dist/ts/implementation/graphics/figures/pdf-template.d.ts +113 -0
- package/dist/ts/implementation/graphics/figures/pdf-template.ts +205 -0
- package/dist/ts/implementation/graphics/figures/rectangle-area.d.ts +64 -0
- package/dist/ts/implementation/graphics/figures/rectangle-area.ts +108 -0
- package/dist/ts/implementation/graphics/figures/text-element.d.ts +214 -0
- package/dist/ts/implementation/graphics/figures/text-element.ts +449 -0
- package/dist/ts/implementation/graphics/fonts/enum.d.ts +385 -0
- package/dist/ts/implementation/graphics/fonts/enum.ts +385 -0
- package/dist/ts/implementation/graphics/fonts/index.d.ts +16 -0
- package/dist/ts/implementation/graphics/fonts/index.ts +16 -0
- package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.d.ts +164 -0
- package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.ts +248 -0
- package/dist/ts/implementation/graphics/fonts/pdf-font.d.ts +187 -0
- package/dist/ts/implementation/graphics/fonts/pdf-font.ts +316 -0
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.d.ts +301 -0
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.ts +606 -0
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font.d.ts +143 -0
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font.ts +243 -0
- package/dist/ts/implementation/graphics/fonts/pdf-string-format.d.ts +321 -0
- package/dist/ts/implementation/graphics/fonts/pdf-string-format.ts +474 -0
- package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.d.ts +49 -0
- package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.ts +165 -0
- package/dist/ts/implementation/graphics/fonts/rtl/index.d.ts +6 -0
- package/dist/ts/implementation/graphics/fonts/rtl/index.ts +6 -0
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.d.ts +62 -0
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.ts +958 -0
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.d.ts +68 -0
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.ts +374 -0
- package/dist/ts/implementation/graphics/fonts/rtl-renderer.d.ts +23 -0
- package/dist/ts/implementation/graphics/fonts/rtl-renderer.ts +255 -0
- package/dist/ts/implementation/graphics/fonts/string-layouter.d.ts +254 -0
- package/dist/ts/implementation/graphics/fonts/string-layouter.ts +617 -0
- package/dist/ts/implementation/graphics/fonts/string-tokenizer.d.ts +109 -0
- package/dist/ts/implementation/graphics/fonts/string-tokenizer.ts +275 -0
- package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.d.ts +204 -0
- package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.ts +206 -0
- package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.d.ts +17 -0
- package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.ts +18 -0
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.d.ts +17 -0
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.ts +18 -0
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.d.ts +13 -0
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.ts +14 -0
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.d.ts +25 -0
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.ts +26 -0
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.d.ts +25 -0
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.ts +35 -0
- package/dist/ts/implementation/graphics/fonts/ttf-head-table.d.ts +94 -0
- package/dist/ts/implementation/graphics/fonts/ttf-head-table.ts +94 -0
- package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.d.ts +55 -0
- package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.ts +56 -0
- package/dist/ts/implementation/graphics/fonts/ttf-loca-table.d.ts +9 -0
- package/dist/ts/implementation/graphics/fonts/ttf-loca-table.ts +10 -0
- package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.d.ts +13 -0
- package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.ts +14 -0
- package/dist/ts/implementation/graphics/fonts/ttf-metrics.d.ts +101 -0
- package/dist/ts/implementation/graphics/fonts/ttf-metrics.ts +106 -0
- package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.d.ts +57 -0
- package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.ts +58 -0
- package/dist/ts/implementation/graphics/fonts/ttf-name-record.d.ts +33 -0
- package/dist/ts/implementation/graphics/fonts/ttf-name-record.ts +33 -0
- package/dist/ts/implementation/graphics/fonts/ttf-name-table.d.ts +22 -0
- package/dist/ts/implementation/graphics/fonts/ttf-name-table.ts +22 -0
- package/dist/ts/implementation/graphics/fonts/ttf-post-table.d.ts +41 -0
- package/dist/ts/implementation/graphics/fonts/ttf-post-table.ts +42 -0
- package/dist/ts/implementation/graphics/fonts/ttf-reader.d.ts +225 -0
- package/dist/ts/implementation/graphics/fonts/ttf-reader.ts +1254 -0
- package/dist/ts/implementation/graphics/fonts/ttf-table-info.d.ts +22 -0
- package/dist/ts/implementation/graphics/fonts/ttf-table-info.ts +26 -0
- package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.d.ts +25 -0
- package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.ts +26 -0
- package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.d.ts +213 -0
- package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.ts +577 -0
- package/dist/ts/implementation/graphics/images/byte-array.d.ts +74 -0
- package/dist/ts/implementation/graphics/images/byte-array.ts +137 -0
- package/dist/ts/implementation/graphics/images/image-decoder.d.ts +274 -0
- package/dist/ts/implementation/graphics/images/image-decoder.ts +439 -0
- package/dist/ts/implementation/graphics/images/index.d.ts +8 -0
- package/dist/ts/implementation/graphics/images/index.ts +8 -0
- package/dist/ts/implementation/graphics/images/pdf-bitmap.d.ts +90 -0
- package/dist/ts/implementation/graphics/images/pdf-bitmap.ts +110 -0
- package/dist/ts/implementation/graphics/images/pdf-image.d.ts +88 -0
- package/dist/ts/implementation/graphics/images/pdf-image.ts +132 -0
- package/dist/ts/implementation/graphics/index.d.ts +35 -0
- package/dist/ts/implementation/graphics/index.ts +46 -0
- package/dist/ts/implementation/graphics/pdf-color.d.ts +206 -0
- package/dist/ts/implementation/graphics/pdf-color.ts +484 -0
- package/dist/ts/implementation/graphics/pdf-graphics.d.ts +1210 -0
- package/dist/ts/implementation/graphics/pdf-graphics.ts +2556 -0
- package/dist/ts/implementation/graphics/pdf-margins.d.ts +82 -0
- package/dist/ts/implementation/graphics/pdf-margins.ts +124 -0
- package/dist/ts/implementation/graphics/pdf-pen.d.ts +237 -0
- package/dist/ts/implementation/graphics/pdf-pen.ts +370 -0
- package/dist/ts/implementation/graphics/pdf-resources.d.ts +122 -0
- package/dist/ts/implementation/graphics/pdf-resources.ts +300 -0
- package/dist/ts/implementation/graphics/pdf-transformation-matrix.d.ts +143 -0
- package/dist/ts/implementation/graphics/pdf-transformation-matrix.ts +246 -0
- package/dist/ts/implementation/graphics/pdf-transparency.d.ts +34 -0
- package/dist/ts/implementation/graphics/pdf-transparency.ts +93 -0
- package/dist/ts/implementation/graphics/unit-convertor.d.ts +72 -0
- package/dist/ts/implementation/graphics/unit-convertor.ts +96 -0
- package/dist/ts/implementation/index.d.ts +103 -0
- package/dist/ts/implementation/index.ts +103 -0
- package/dist/ts/implementation/input-output/big-endian-writer.d.ts +59 -0
- package/dist/ts/implementation/input-output/big-endian-writer.ts +121 -0
- package/dist/ts/implementation/input-output/cross-table.d.ts +21 -0
- package/dist/ts/implementation/input-output/cross-table.ts +21 -0
- package/dist/ts/implementation/input-output/enum.d.ts +16 -0
- package/dist/ts/implementation/input-output/enum.ts +16 -0
- package/dist/ts/implementation/input-output/index.d.ts +12 -0
- package/dist/ts/implementation/input-output/index.ts +12 -0
- package/dist/ts/implementation/input-output/pdf-cross-table.d.ts +259 -0
- package/dist/ts/implementation/input-output/pdf-cross-table.ts +536 -0
- package/dist/ts/implementation/input-output/pdf-dictionary-properties.d.ts +568 -0
- package/dist/ts/implementation/input-output/pdf-dictionary-properties.ts +571 -0
- package/dist/ts/implementation/input-output/pdf-main-object-collection.d.ts +120 -0
- package/dist/ts/implementation/input-output/pdf-main-object-collection.ts +194 -0
- package/dist/ts/implementation/input-output/pdf-operators.d.ts +361 -0
- package/dist/ts/implementation/input-output/pdf-operators.ts +363 -0
- package/dist/ts/implementation/input-output/pdf-stream-writer.d.ts +311 -0
- package/dist/ts/implementation/input-output/pdf-stream-writer.ts +681 -0
- package/dist/ts/implementation/input-output/pdf-writer.d.ts +122 -0
- package/dist/ts/implementation/input-output/pdf-writer.ts +164 -0
- package/dist/ts/implementation/pages/enum.d.ts +201 -0
- package/dist/ts/implementation/pages/enum.ts +201 -0
- package/dist/ts/implementation/pages/index.d.ts +17 -0
- package/dist/ts/implementation/pages/index.ts +17 -0
- package/dist/ts/implementation/pages/page-added-event-arguments.d.ts +30 -0
- package/dist/ts/implementation/pages/page-added-event-arguments.ts +39 -0
- package/dist/ts/implementation/pages/pdf-document-page-collection.d.ts +86 -0
- package/dist/ts/implementation/pages/pdf-document-page-collection.ts +180 -0
- package/dist/ts/implementation/pages/pdf-page-base.d.ts +121 -0
- package/dist/ts/implementation/pages/pdf-page-base.ts +181 -0
- package/dist/ts/implementation/pages/pdf-page-layer-collection.d.ts +99 -0
- package/dist/ts/implementation/pages/pdf-page-layer-collection.ts +348 -0
- package/dist/ts/implementation/pages/pdf-page-layer.d.ts +160 -0
- package/dist/ts/implementation/pages/pdf-page-layer.ts +271 -0
- package/dist/ts/implementation/pages/pdf-page-settings.d.ts +111 -0
- package/dist/ts/implementation/pages/pdf-page-settings.ts +192 -0
- package/dist/ts/implementation/pages/pdf-page-size.d.ts +159 -0
- package/dist/ts/implementation/pages/pdf-page-size.ts +162 -0
- package/dist/ts/implementation/pages/pdf-page-template-element.d.ts +240 -0
- package/dist/ts/implementation/pages/pdf-page-template-element.ts +663 -0
- package/dist/ts/implementation/pages/pdf-page.d.ts +153 -0
- package/dist/ts/implementation/pages/pdf-page.ts +235 -0
- package/dist/ts/implementation/pages/pdf-section-collection.d.ts +109 -0
- package/dist/ts/implementation/pages/pdf-section-collection.ts +187 -0
- package/dist/ts/implementation/pages/pdf-section-page-collection.d.ts +41 -0
- package/dist/ts/implementation/pages/pdf-section-page-collection.ts +61 -0
- package/dist/ts/implementation/pages/pdf-section-templates.d.ts +64 -0
- package/dist/ts/implementation/pages/pdf-section-templates.ts +96 -0
- package/dist/ts/implementation/pages/pdf-section.d.ts +327 -0
- package/dist/ts/implementation/pages/pdf-section.ts +644 -0
- package/dist/ts/implementation/primitives/index.d.ts +12 -0
- package/dist/ts/implementation/primitives/index.ts +12 -0
- package/dist/ts/implementation/primitives/pdf-array.d.ts +192 -0
- package/dist/ts/implementation/primitives/pdf-array.ts +386 -0
- package/dist/ts/implementation/primitives/pdf-boolean.d.ts +84 -0
- package/dist/ts/implementation/primitives/pdf-boolean.ts +119 -0
- package/dist/ts/implementation/primitives/pdf-dictionary.d.ts +362 -0
- package/dist/ts/implementation/primitives/pdf-dictionary.ts +513 -0
- package/dist/ts/implementation/primitives/pdf-name.d.ts +121 -0
- package/dist/ts/implementation/primitives/pdf-name.ts +218 -0
- package/dist/ts/implementation/primitives/pdf-number.d.ts +104 -0
- package/dist/ts/implementation/primitives/pdf-number.ts +165 -0
- package/dist/ts/implementation/primitives/pdf-reference.d.ts +223 -0
- package/dist/ts/implementation/primitives/pdf-reference.ts +430 -0
- package/dist/ts/implementation/primitives/pdf-stream.d.ts +161 -0
- package/dist/ts/implementation/primitives/pdf-stream.ts +306 -0
- package/dist/ts/implementation/primitives/pdf-string.d.ts +235 -0
- package/dist/ts/implementation/primitives/pdf-string.ts +397 -0
- package/dist/ts/implementation/structured-elements/grid/index.d.ts +4 -0
- package/dist/ts/implementation/structured-elements/grid/index.ts +10 -0
- package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.d.ts +597 -0
- package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.ts +2127 -0
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.d.ts +288 -0
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.ts +1225 -0
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.d.ts +108 -0
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.ts +206 -0
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.d.ts +261 -0
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.ts +470 -0
- package/dist/ts/implementation/structured-elements/grid/pdf-grid.d.ts +292 -0
- package/dist/ts/implementation/structured-elements/grid/pdf-grid.ts +853 -0
- package/dist/ts/implementation/structured-elements/grid/styles/index.d.ts +5 -0
- package/dist/ts/implementation/structured-elements/grid/styles/index.ts +5 -0
- package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.d.ts +146 -0
- package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.ts +238 -0
- package/dist/ts/implementation/structured-elements/grid/styles/style.d.ts +272 -0
- package/dist/ts/implementation/structured-elements/grid/styles/style.ts +423 -0
- package/dist/ts/implementation/structured-elements/index.d.ts +4 -0
- package/dist/ts/implementation/structured-elements/index.ts +10 -0
- package/dist/ts/implementation/structured-elements/tables/light-tables/enum.d.ts +16 -0
- package/dist/ts/implementation/structured-elements/tables/light-tables/enum.ts +16 -0
- package/dist/ts/index.d.ts +116 -0
- package/dist/ts/index.ts +116 -0
- package/dist/ts/interfaces/i-pdf-cache.d.ts +23 -0
- package/dist/ts/interfaces/i-pdf-cache.ts +23 -0
- package/dist/ts/interfaces/i-pdf-changable.d.ts +17 -0
- package/dist/ts/interfaces/i-pdf-changable.ts +17 -0
- package/dist/ts/interfaces/i-pdf-clonable.d.ts +12 -0
- package/dist/ts/interfaces/i-pdf-clonable.ts +12 -0
- package/dist/ts/interfaces/i-pdf-primitives.d.ts +45 -0
- package/dist/ts/interfaces/i-pdf-primitives.ts +45 -0
- package/dist/ts/interfaces/i-pdf-true-type-font.d.ts +18 -0
- package/dist/ts/interfaces/i-pdf-true-type-font.ts +48 -0
- package/dist/ts/interfaces/i-pdf-wrapper.d.ts +13 -0
- package/dist/ts/interfaces/i-pdf-wrapper.ts +13 -0
- package/dist/ts/interfaces/i-pdf-writer.d.ts +29 -0
- package/dist/ts/interfaces/i-pdf-writer.ts +29 -0
- package/dist/ts/interfaces/index.d.ts +10 -0
- package/dist/ts/interfaces/index.ts +10 -0
- package/package.json +7 -8
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
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
|
+
}
|