@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,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PdfTransparency.ts class for EJ2-PDF
|
|
3
|
+
*/
|
|
4
|
+
import { IPdfWrapper } from './../../interfaces/i-pdf-wrapper';
|
|
5
|
+
import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives';
|
|
6
|
+
import { PdfBlendMode } from './../graphics/enum';
|
|
7
|
+
/**
|
|
8
|
+
* Represents a simple `transparency`.
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export declare class PdfTransparency implements IPdfWrapper {
|
|
12
|
+
/**
|
|
13
|
+
* Internal variable to store `dictionary`.
|
|
14
|
+
* @default new PdfDictionary()
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
private dictionary;
|
|
18
|
+
/**
|
|
19
|
+
* Internal variable for accessing fields from `DictionryProperties` class.
|
|
20
|
+
* @default new DictionaryProperties()
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
private dictionaryProperties;
|
|
24
|
+
/**
|
|
25
|
+
* Initializes a new instance of the `Transparency` class.
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
constructor(stroke: number, fill: number, mode: PdfBlendMode);
|
|
29
|
+
/**
|
|
30
|
+
* Gets the `element`.
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
readonly element: IPdfPrimitive;
|
|
34
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PdfTransparency.ts class for EJ2-PDF
|
|
3
|
+
*/
|
|
4
|
+
import { IPdfWrapper } from './../../interfaces/i-pdf-wrapper';
|
|
5
|
+
import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives';
|
|
6
|
+
import { PdfDictionary } from './../primitives/pdf-dictionary';
|
|
7
|
+
import { PdfBlendMode } from './../graphics/enum';
|
|
8
|
+
import { PdfNumber } from './../primitives/pdf-number';
|
|
9
|
+
import { PdfName } from './../primitives/pdf-name';
|
|
10
|
+
import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
|
|
11
|
+
/**
|
|
12
|
+
* Represents a simple `transparency`.
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
export class PdfTransparency implements IPdfWrapper {
|
|
16
|
+
// Fields
|
|
17
|
+
/**
|
|
18
|
+
* Internal variable to store `dictionary`.
|
|
19
|
+
* @default new PdfDictionary()
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
private dictionary : PdfDictionary = new PdfDictionary();
|
|
23
|
+
/**
|
|
24
|
+
* Internal variable for accessing fields from `DictionryProperties` class.
|
|
25
|
+
* @default new DictionaryProperties()
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
private dictionaryProperties : DictionaryProperties = new DictionaryProperties();
|
|
29
|
+
// Properties
|
|
30
|
+
// /**
|
|
31
|
+
// * Gets the `stroke` operation alpha value.
|
|
32
|
+
// * @private
|
|
33
|
+
// */
|
|
34
|
+
// public get stroke() : number {
|
|
35
|
+
// let result : number = this.getNumber(this.dictionaryProperties.CA);
|
|
36
|
+
// return result;
|
|
37
|
+
// }
|
|
38
|
+
// /**
|
|
39
|
+
// * Gets the `fill` operation alpha value.
|
|
40
|
+
// * @private
|
|
41
|
+
// */
|
|
42
|
+
// public get fill() : number {
|
|
43
|
+
// let result : number = this.getNumber(this.dictionaryProperties.ca);
|
|
44
|
+
// return result;
|
|
45
|
+
// }
|
|
46
|
+
// /**
|
|
47
|
+
// * Gets the `blend mode`.
|
|
48
|
+
// * @private
|
|
49
|
+
// */
|
|
50
|
+
// public get mode() : PdfBlendMode {
|
|
51
|
+
// let result : string = this.getName(this.dictionaryProperties.ca);
|
|
52
|
+
// return PdfBlendMode.Normal;
|
|
53
|
+
// }
|
|
54
|
+
// Constructors
|
|
55
|
+
/**
|
|
56
|
+
* Initializes a new instance of the `Transparency` class.
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
public constructor(stroke : number, fill : number, mode : PdfBlendMode) {
|
|
60
|
+
this.dictionary.items.setValue(this.dictionaryProperties.CA, new PdfNumber(stroke));
|
|
61
|
+
this.dictionary.items.setValue(this.dictionaryProperties.ca, new PdfNumber(fill));
|
|
62
|
+
this.dictionary.items.setValue(this.dictionaryProperties.BM, new PdfName(mode.toString()));
|
|
63
|
+
}
|
|
64
|
+
// // Implementation
|
|
65
|
+
// /**
|
|
66
|
+
// * Gets the `number value`.
|
|
67
|
+
// * @private
|
|
68
|
+
// */
|
|
69
|
+
// private getNumber(keyName : string) : number {
|
|
70
|
+
// let result : number = 0.0;
|
|
71
|
+
// let numb : PdfNumber = this.dictionary.items.getValue(keyName) as PdfNumber;
|
|
72
|
+
// result = numb.intValue;
|
|
73
|
+
// return result;
|
|
74
|
+
// }
|
|
75
|
+
// /**
|
|
76
|
+
// * Gets the `name value`.
|
|
77
|
+
// * @private
|
|
78
|
+
// */
|
|
79
|
+
// private getName(keyName : string) : string {
|
|
80
|
+
// let result : string = null;
|
|
81
|
+
// let name : PdfName = this.dictionary.items.getValue(keyName) as PdfName;
|
|
82
|
+
// result = name.value;
|
|
83
|
+
// return result;
|
|
84
|
+
// }
|
|
85
|
+
// IPdfWrapper Members
|
|
86
|
+
/**
|
|
87
|
+
* Gets the `element`.
|
|
88
|
+
* @private
|
|
89
|
+
*/
|
|
90
|
+
public get element() : IPdfPrimitive {
|
|
91
|
+
return this.dictionary;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PdfUnitConverter.ts class for EJ2-PDF
|
|
3
|
+
*/
|
|
4
|
+
import { PdfGraphicsUnit } from './../graphics/enum';
|
|
5
|
+
/**
|
|
6
|
+
* Used to perform `convertion between pixels and points`.
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
export declare class PdfUnitConverter {
|
|
10
|
+
/**
|
|
11
|
+
* Indicates default `horizontal resolution`.
|
|
12
|
+
* @default 96
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
static readonly horizontalResolution: number;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates default `vertical resolution`.
|
|
18
|
+
* @default 96
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
21
|
+
static readonly verticalResolution: number;
|
|
22
|
+
/**
|
|
23
|
+
* `Width, in millimeters`, of the physical screen.
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
static readonly horizontalSize: number;
|
|
27
|
+
/**
|
|
28
|
+
* `Height, in millimeters`, of the physical screen.
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
static readonly verticalSize: number;
|
|
32
|
+
/**
|
|
33
|
+
* `Width, in pixels`, of the screen.
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
static readonly pxHorizontalResolution: number;
|
|
37
|
+
/**
|
|
38
|
+
* `Height, in pixels`, of the screen.
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
static readonly pxVerticalResolution: number;
|
|
42
|
+
/**
|
|
43
|
+
* `Matrix` for conversations between different numeric systems.
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
private proportions;
|
|
47
|
+
/**
|
|
48
|
+
* Initializes a new instance of the `UnitConvertor` class with DPI value.
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
constructor(dpi: number);
|
|
52
|
+
/**
|
|
53
|
+
* `Converts` the value, from one graphics unit to another graphics unit.
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
convertUnits(value: number, from: PdfGraphicsUnit, to: PdfGraphicsUnit): number;
|
|
57
|
+
/**
|
|
58
|
+
* Converts the value `to pixel` from specified graphics unit.
|
|
59
|
+
* @private
|
|
60
|
+
*/
|
|
61
|
+
convertToPixels(value: number, from: PdfGraphicsUnit): number;
|
|
62
|
+
/**
|
|
63
|
+
* Converts value, to specified graphics unit `from Pixel`.
|
|
64
|
+
* @private
|
|
65
|
+
*/
|
|
66
|
+
convertFromPixels(value: number, to: PdfGraphicsUnit): number;
|
|
67
|
+
/**
|
|
68
|
+
* `Update proportions` matrix according to Graphics settings.
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
private updateProportionsHelper;
|
|
72
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PdfUnitConverter.ts class for EJ2-PDF
|
|
3
|
+
*/
|
|
4
|
+
import { PdfGraphicsUnit } from './../graphics/enum';
|
|
5
|
+
/**
|
|
6
|
+
* Used to perform `convertion between pixels and points`.
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
export class PdfUnitConverter {
|
|
10
|
+
//Fields
|
|
11
|
+
/**
|
|
12
|
+
* Indicates default `horizontal resolution`.
|
|
13
|
+
* @default 96
|
|
14
|
+
* @private
|
|
15
|
+
*/
|
|
16
|
+
public static readonly horizontalResolution : number = 96;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates default `vertical resolution`.
|
|
19
|
+
* @default 96
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
public static readonly verticalResolution: number = 96;
|
|
23
|
+
/**
|
|
24
|
+
* `Width, in millimeters`, of the physical screen.
|
|
25
|
+
* @private
|
|
26
|
+
*/
|
|
27
|
+
public static readonly horizontalSize: number;
|
|
28
|
+
/**
|
|
29
|
+
* `Height, in millimeters`, of the physical screen.
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
public static readonly verticalSize: number;
|
|
33
|
+
/**
|
|
34
|
+
* `Width, in pixels`, of the screen.
|
|
35
|
+
* @private
|
|
36
|
+
*/
|
|
37
|
+
public static readonly pxHorizontalResolution: number;
|
|
38
|
+
/**
|
|
39
|
+
* `Height, in pixels`, of the screen.
|
|
40
|
+
* @private
|
|
41
|
+
*/
|
|
42
|
+
public static readonly pxVerticalResolution: number;
|
|
43
|
+
/**
|
|
44
|
+
* `Matrix` for conversations between different numeric systems.
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
private proportions : number[];
|
|
48
|
+
//constructors
|
|
49
|
+
/**
|
|
50
|
+
* Initializes a new instance of the `UnitConvertor` class with DPI value.
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
53
|
+
public constructor( dpi : number) {
|
|
54
|
+
this.updateProportionsHelper(dpi);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* `Converts` the value, from one graphics unit to another graphics unit.
|
|
58
|
+
* @private
|
|
59
|
+
*/
|
|
60
|
+
public convertUnits(value : number, from : PdfGraphicsUnit, to : PdfGraphicsUnit) : number {
|
|
61
|
+
return this.convertFromPixels(this.convertToPixels(value, from), to);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Converts the value `to pixel` from specified graphics unit.
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
67
|
+
public convertToPixels(value : number, from : PdfGraphicsUnit) : number {
|
|
68
|
+
let index : number = (from as number);
|
|
69
|
+
let result : number = (value * this.proportions[index]) as number;
|
|
70
|
+
return result;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Converts value, to specified graphics unit `from Pixel`.
|
|
74
|
+
* @private
|
|
75
|
+
*/
|
|
76
|
+
public convertFromPixels(value : number, to : PdfGraphicsUnit) : number {
|
|
77
|
+
let index : number = to as number;
|
|
78
|
+
let result : number = (value / this.proportions[index]) as number;
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* `Update proportions` matrix according to Graphics settings.
|
|
83
|
+
* @private
|
|
84
|
+
*/
|
|
85
|
+
private updateProportionsHelper(pixelPerInch : number) : void {
|
|
86
|
+
this.proportions = [
|
|
87
|
+
pixelPerInch / 2.54, // Centimeter
|
|
88
|
+
pixelPerInch / 6.0, // Pica
|
|
89
|
+
1, // Pixel
|
|
90
|
+
pixelPerInch / 72.0, // Point
|
|
91
|
+
pixelPerInch, // Inch
|
|
92
|
+
pixelPerInch / 300.0, // Document
|
|
93
|
+
pixelPerInch / 25.4 // Millimeter
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pdf implementation all modules
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export * from './actions/action';
|
|
6
|
+
export * from './actions/uri-action';
|
|
7
|
+
export * from './annotations/action-link-annotation';
|
|
8
|
+
export * from './annotations/annotation';
|
|
9
|
+
export * from './annotations/annotation-collection';
|
|
10
|
+
export * from './annotations/document-link-annotation';
|
|
11
|
+
export * from './annotations/link-annotation';
|
|
12
|
+
export * from './annotations/pdf-text-web-link';
|
|
13
|
+
export * from './annotations/uri-annotation';
|
|
14
|
+
export * from './collections/dictionary';
|
|
15
|
+
export * from './collections/utils';
|
|
16
|
+
export * from './document/pdf-catalog';
|
|
17
|
+
export * from './document/pdf-document';
|
|
18
|
+
export * from './document/pdf-document-base';
|
|
19
|
+
export * from './document/pdf-document-template';
|
|
20
|
+
export * from './document/pdf-viewer-preferences';
|
|
21
|
+
export * from './document/automatic-fields/pdf-numbers-convertor';
|
|
22
|
+
export * from './document/automatic-fields/pdf-page-number-field';
|
|
23
|
+
export * from './document/automatic-fields/automatic-field-info';
|
|
24
|
+
export * from './document/automatic-fields/automatic-field-info-collection';
|
|
25
|
+
export * from './document/automatic-fields/automatic-field';
|
|
26
|
+
export * from './document/automatic-fields/multiple-value-field';
|
|
27
|
+
export * from './document/automatic-fields/pdf-template-value-pair';
|
|
28
|
+
export * from './drawing/pdf-drawing';
|
|
29
|
+
export * from './general/pdf-cache-collection';
|
|
30
|
+
export * from './general/pdf-collection';
|
|
31
|
+
export * from './general/pdf-destination';
|
|
32
|
+
export * from './general/functions/pdf-function';
|
|
33
|
+
export * from './general/functions/pdf-sampled-function';
|
|
34
|
+
export * from './graphics/constants';
|
|
35
|
+
export * from './graphics/enum';
|
|
36
|
+
export * from './graphics/pdf-color';
|
|
37
|
+
export * from './graphics/pdf-graphics';
|
|
38
|
+
export * from './graphics/pdf-margins';
|
|
39
|
+
export * from './graphics/pdf-pen';
|
|
40
|
+
export * from './graphics/pdf-resources';
|
|
41
|
+
export * from './graphics/pdf-transformation-matrix';
|
|
42
|
+
export * from './graphics/pdf-transparency';
|
|
43
|
+
export * from './graphics/brushes/pdf-brush';
|
|
44
|
+
export * from './graphics/brushes/pdf-brushes';
|
|
45
|
+
export * from './graphics/brushes/pdf-solid-brush';
|
|
46
|
+
export * from './graphics/brushes/pdf-linear-gradient-brush';
|
|
47
|
+
export * from './graphics/brushes/pdf-gradient-brush';
|
|
48
|
+
export * from './graphics/brushes/pdf-tiling-brush';
|
|
49
|
+
export * from './graphics/brushes/pdf-color-blend';
|
|
50
|
+
export * from './graphics/brushes/pdf-blend';
|
|
51
|
+
export * from './graphics/figures/pdf-template';
|
|
52
|
+
export * from './graphics/figures/layout-element';
|
|
53
|
+
export * from './graphics/figures/path';
|
|
54
|
+
export * from './graphics/figures/arc';
|
|
55
|
+
export * from './graphics/figures/ellipse-part';
|
|
56
|
+
export * from './graphics/figures/rectangle-area';
|
|
57
|
+
export * from './graphics/figures/text-element';
|
|
58
|
+
export * from './graphics/figures/base/element-layouter';
|
|
59
|
+
export * from './graphics/figures/base/text-layouter';
|
|
60
|
+
export * from './graphics/fonts/enum';
|
|
61
|
+
export * from './graphics/fonts/pdf-font';
|
|
62
|
+
export * from './graphics/fonts/pdf-font-metrics';
|
|
63
|
+
export * from './graphics/fonts/pdf-standard-font';
|
|
64
|
+
export * from './graphics/fonts/pdf-standard-font-metrics-factory';
|
|
65
|
+
export * from './graphics/fonts/pdf-string-format';
|
|
66
|
+
export * from './graphics/fonts/string-layouter';
|
|
67
|
+
export * from './graphics/fonts/string-tokenizer';
|
|
68
|
+
export * from './graphics/fonts/pdf-true-type-font';
|
|
69
|
+
export * from './input-output/enum';
|
|
70
|
+
export * from './input-output/cross-table';
|
|
71
|
+
export * from './input-output/pdf-cross-table';
|
|
72
|
+
export * from './input-output/pdf-dictionary-properties';
|
|
73
|
+
export * from './input-output/pdf-main-object-collection';
|
|
74
|
+
export * from './input-output/pdf-operators';
|
|
75
|
+
export * from './input-output/pdf-stream-writer';
|
|
76
|
+
export * from './input-output/pdf-writer';
|
|
77
|
+
export * from './pages/enum';
|
|
78
|
+
export * from './pages/page-added-event-arguments';
|
|
79
|
+
export * from './pages/pdf-document-page-collection';
|
|
80
|
+
export * from './pages/pdf-page';
|
|
81
|
+
export * from './pages/pdf-page-base';
|
|
82
|
+
export * from './pages/pdf-page-layer';
|
|
83
|
+
export * from './pages/pdf-page-layer-collection';
|
|
84
|
+
export * from './pages/pdf-page-settings';
|
|
85
|
+
export * from './pages/pdf-page-size';
|
|
86
|
+
export * from './pages/pdf-page-template-element';
|
|
87
|
+
export * from './pages/pdf-section';
|
|
88
|
+
export * from './pages/pdf-section-collection';
|
|
89
|
+
export * from './pages/pdf-section-templates';
|
|
90
|
+
export * from './primitives/pdf-array';
|
|
91
|
+
export * from './primitives/pdf-dictionary';
|
|
92
|
+
export * from './primitives/pdf-name';
|
|
93
|
+
export * from './primitives/pdf-number';
|
|
94
|
+
export * from './primitives/pdf-reference';
|
|
95
|
+
export * from './primitives/pdf-stream';
|
|
96
|
+
export * from './primitives/pdf-string';
|
|
97
|
+
export * from './structured-elements/grid/styles/style';
|
|
98
|
+
export * from './structured-elements/grid/styles/pdf-borders';
|
|
99
|
+
export * from './structured-elements/grid/pdf-grid';
|
|
100
|
+
export * from './structured-elements/grid/pdf-grid-cell';
|
|
101
|
+
export * from './structured-elements/grid/pdf-grid-column';
|
|
102
|
+
export * from './structured-elements/grid/pdf-grid-row';
|
|
103
|
+
export * from './structured-elements/tables/light-tables/enum';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pdf implementation all modules
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export * from './actions/action';
|
|
6
|
+
export * from './actions/uri-action';
|
|
7
|
+
export * from './annotations/action-link-annotation';
|
|
8
|
+
export * from './annotations/annotation';
|
|
9
|
+
export * from './annotations/annotation-collection';
|
|
10
|
+
export * from './annotations/document-link-annotation';
|
|
11
|
+
export * from './annotations/link-annotation';
|
|
12
|
+
export * from './annotations/pdf-text-web-link';
|
|
13
|
+
export * from './annotations/uri-annotation';
|
|
14
|
+
export * from './collections/dictionary';
|
|
15
|
+
export * from './collections/utils';
|
|
16
|
+
export * from './document/pdf-catalog';
|
|
17
|
+
export * from './document/pdf-document';
|
|
18
|
+
export * from './document/pdf-document-base';
|
|
19
|
+
export * from './document/pdf-document-template';
|
|
20
|
+
export * from './document/pdf-viewer-preferences';
|
|
21
|
+
export * from './document/automatic-fields/pdf-numbers-convertor';
|
|
22
|
+
export * from './document/automatic-fields/pdf-page-number-field';
|
|
23
|
+
export * from './document/automatic-fields/automatic-field-info';
|
|
24
|
+
export * from './document/automatic-fields/automatic-field-info-collection';
|
|
25
|
+
export * from './document/automatic-fields/automatic-field';
|
|
26
|
+
export * from './document/automatic-fields/multiple-value-field';
|
|
27
|
+
export * from './document/automatic-fields/pdf-template-value-pair';
|
|
28
|
+
export * from './drawing/pdf-drawing';
|
|
29
|
+
export * from './general/pdf-cache-collection';
|
|
30
|
+
export * from './general/pdf-collection';
|
|
31
|
+
export * from './general/pdf-destination';
|
|
32
|
+
export * from './general/functions/pdf-function';
|
|
33
|
+
export * from './general/functions/pdf-sampled-function';
|
|
34
|
+
export * from './graphics/constants';
|
|
35
|
+
export * from './graphics/enum'
|
|
36
|
+
export * from './graphics/pdf-color';
|
|
37
|
+
export * from './graphics/pdf-graphics';
|
|
38
|
+
export * from './graphics/pdf-margins';
|
|
39
|
+
export * from './graphics/pdf-pen';
|
|
40
|
+
export * from './graphics/pdf-resources';
|
|
41
|
+
export * from './graphics/pdf-transformation-matrix';
|
|
42
|
+
export * from './graphics/pdf-transparency';
|
|
43
|
+
export * from './graphics/brushes/pdf-brush';
|
|
44
|
+
export * from './graphics/brushes/pdf-brushes';
|
|
45
|
+
export * from './graphics/brushes/pdf-solid-brush';
|
|
46
|
+
export * from './graphics/brushes/pdf-linear-gradient-brush';
|
|
47
|
+
export * from './graphics/brushes/pdf-gradient-brush';
|
|
48
|
+
export * from './graphics/brushes/pdf-tiling-brush';
|
|
49
|
+
export * from './graphics/brushes/pdf-color-blend';
|
|
50
|
+
export * from './graphics/brushes/pdf-blend';
|
|
51
|
+
export * from './graphics/figures/pdf-template';
|
|
52
|
+
export * from './graphics/figures/layout-element';
|
|
53
|
+
export * from './graphics/figures/path';
|
|
54
|
+
export * from './graphics/figures/arc';
|
|
55
|
+
export * from './graphics/figures/ellipse-part';
|
|
56
|
+
export * from './graphics/figures/rectangle-area';
|
|
57
|
+
export * from './graphics/figures/text-element';
|
|
58
|
+
export * from './graphics/figures/base/element-layouter';
|
|
59
|
+
export * from './graphics/figures/base/text-layouter';
|
|
60
|
+
export * from './graphics/fonts/enum';
|
|
61
|
+
export * from './graphics/fonts/pdf-font';
|
|
62
|
+
export * from './graphics/fonts/pdf-font-metrics';
|
|
63
|
+
export * from './graphics/fonts/pdf-standard-font';
|
|
64
|
+
export * from './graphics/fonts/pdf-standard-font-metrics-factory';
|
|
65
|
+
export * from './graphics/fonts/pdf-string-format';
|
|
66
|
+
export * from './graphics/fonts/string-layouter';
|
|
67
|
+
export * from './graphics/fonts/string-tokenizer';
|
|
68
|
+
export * from './graphics/fonts/pdf-true-type-font';
|
|
69
|
+
export * from './input-output/enum'
|
|
70
|
+
export * from './input-output/cross-table';
|
|
71
|
+
export * from './input-output/pdf-cross-table';
|
|
72
|
+
export * from './input-output/pdf-dictionary-properties';
|
|
73
|
+
export * from './input-output/pdf-main-object-collection';
|
|
74
|
+
export * from './input-output/pdf-operators';
|
|
75
|
+
export * from './input-output/pdf-stream-writer';
|
|
76
|
+
export * from './input-output/pdf-writer';
|
|
77
|
+
export * from './pages/enum';
|
|
78
|
+
export * from './pages/page-added-event-arguments';
|
|
79
|
+
export * from './pages/pdf-document-page-collection';
|
|
80
|
+
export * from './pages/pdf-page';
|
|
81
|
+
export * from './pages/pdf-page-base';
|
|
82
|
+
export * from './pages/pdf-page-layer';
|
|
83
|
+
export * from './pages/pdf-page-layer-collection';
|
|
84
|
+
export * from './pages/pdf-page-settings';
|
|
85
|
+
export * from './pages/pdf-page-size';
|
|
86
|
+
export * from './pages/pdf-page-template-element';
|
|
87
|
+
export * from './pages/pdf-section';
|
|
88
|
+
export * from './pages/pdf-section-collection';
|
|
89
|
+
export * from './pages/pdf-section-templates';
|
|
90
|
+
export * from './primitives/pdf-array';
|
|
91
|
+
export * from './primitives/pdf-dictionary';
|
|
92
|
+
export * from './primitives/pdf-name';
|
|
93
|
+
export * from './primitives/pdf-number';
|
|
94
|
+
export * from './primitives/pdf-reference';
|
|
95
|
+
export * from './primitives/pdf-stream';
|
|
96
|
+
export * from './primitives/pdf-string';
|
|
97
|
+
export * from './structured-elements/grid/styles/style';
|
|
98
|
+
export * from './structured-elements/grid/styles/pdf-borders';
|
|
99
|
+
export * from './structured-elements/grid/pdf-grid';
|
|
100
|
+
export * from './structured-elements/grid/pdf-grid-cell';
|
|
101
|
+
export * from './structured-elements/grid/pdf-grid-column';
|
|
102
|
+
export * from './structured-elements/grid/pdf-grid-row';
|
|
103
|
+
export * from './structured-elements/tables/light-tables/enum';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Writes data in BigEndian order.
|
|
3
|
+
*/
|
|
4
|
+
export declare class BigEndianWriter {
|
|
5
|
+
/**
|
|
6
|
+
* Size of Int32 type.
|
|
7
|
+
*/
|
|
8
|
+
readonly int32Size: number;
|
|
9
|
+
/**
|
|
10
|
+
* Size of Int16 type.
|
|
11
|
+
*/
|
|
12
|
+
readonly int16Size: number;
|
|
13
|
+
/**
|
|
14
|
+
* Size of long type.
|
|
15
|
+
*/
|
|
16
|
+
readonly int64Size: number;
|
|
17
|
+
/**
|
|
18
|
+
* Internal buffer.
|
|
19
|
+
*/
|
|
20
|
+
private buffer;
|
|
21
|
+
/**
|
|
22
|
+
* Internal buffer capacity.
|
|
23
|
+
*/
|
|
24
|
+
private bufferLength;
|
|
25
|
+
/**
|
|
26
|
+
* Current position.
|
|
27
|
+
*/
|
|
28
|
+
private internalPosition;
|
|
29
|
+
/**
|
|
30
|
+
* Gets data written to the writer.
|
|
31
|
+
*/
|
|
32
|
+
readonly data: number[];
|
|
33
|
+
readonly position: number;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new writer.
|
|
36
|
+
*/
|
|
37
|
+
constructor(capacity: number);
|
|
38
|
+
/**
|
|
39
|
+
* Writes short value.
|
|
40
|
+
*/
|
|
41
|
+
writeShort(value: number): void;
|
|
42
|
+
/**
|
|
43
|
+
* Writes int value.
|
|
44
|
+
*/
|
|
45
|
+
writeInt(value: number): void;
|
|
46
|
+
/**
|
|
47
|
+
* Writes u int value.
|
|
48
|
+
*/
|
|
49
|
+
writeUInt(value: number): void;
|
|
50
|
+
/**
|
|
51
|
+
* Writes string value.
|
|
52
|
+
*/
|
|
53
|
+
writeString(value: string): void;
|
|
54
|
+
/**
|
|
55
|
+
* Writes byte[] value.
|
|
56
|
+
*/
|
|
57
|
+
writeBytes(value: number[]): void;
|
|
58
|
+
private flush;
|
|
59
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Writes data in BigEndian order.
|
|
3
|
+
*/
|
|
4
|
+
export class BigEndianWriter {
|
|
5
|
+
//Constants
|
|
6
|
+
/**
|
|
7
|
+
* Size of Int32 type.
|
|
8
|
+
*/
|
|
9
|
+
public readonly int32Size : number = 4;
|
|
10
|
+
/**
|
|
11
|
+
* Size of Int16 type.
|
|
12
|
+
*/
|
|
13
|
+
public readonly int16Size : number = 2;
|
|
14
|
+
/**
|
|
15
|
+
* Size of long type.
|
|
16
|
+
*/
|
|
17
|
+
public readonly int64Size : number = 8;
|
|
18
|
+
//Fields
|
|
19
|
+
/**
|
|
20
|
+
* Internal buffer.
|
|
21
|
+
*/
|
|
22
|
+
private buffer : number[];
|
|
23
|
+
/**
|
|
24
|
+
* Internal buffer capacity.
|
|
25
|
+
*/
|
|
26
|
+
private bufferLength : number;
|
|
27
|
+
/**
|
|
28
|
+
* Current position.
|
|
29
|
+
*/
|
|
30
|
+
private internalPosition : number;
|
|
31
|
+
//Properties
|
|
32
|
+
/**
|
|
33
|
+
* Gets data written to the writer.
|
|
34
|
+
*/
|
|
35
|
+
public get data() : number[] {
|
|
36
|
+
if (this.buffer.length < this.bufferLength) {
|
|
37
|
+
let length : number = this.bufferLength - this.buffer.length;
|
|
38
|
+
for (let i : number = 0; i < length; i++) {
|
|
39
|
+
this.buffer.push(0);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return this.buffer;
|
|
43
|
+
}
|
|
44
|
+
/// <summary>
|
|
45
|
+
/// Gets position of the internal buffer.
|
|
46
|
+
/// </summary>
|
|
47
|
+
public get position() : number {
|
|
48
|
+
if (this.internalPosition === undefined || this.internalPosition === null) {
|
|
49
|
+
this.internalPosition = 0;
|
|
50
|
+
}
|
|
51
|
+
return this.internalPosition;
|
|
52
|
+
}
|
|
53
|
+
//Constructors
|
|
54
|
+
/**
|
|
55
|
+
* Creates a new writer.
|
|
56
|
+
*/
|
|
57
|
+
public constructor(capacity : number) {
|
|
58
|
+
this.bufferLength = capacity;
|
|
59
|
+
this.buffer = [];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Writes short value.
|
|
63
|
+
*/
|
|
64
|
+
public writeShort(value : number) : void {
|
|
65
|
+
let bytes : number[] = [((value & 0x0000ff00) >> 8), value & 0x000000ff];
|
|
66
|
+
this.flush(bytes);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Writes int value.
|
|
70
|
+
*/
|
|
71
|
+
public writeInt(value : number) : void {
|
|
72
|
+
let i1 : number = (value & 0xff000000) >> 24;
|
|
73
|
+
i1 = i1 < 0 ? 256 + i1 : i1;
|
|
74
|
+
let i2 : number = (value & 0x00ff0000) >> 16;
|
|
75
|
+
i2 = i2 < 0 ? 256 + i2 : i2;
|
|
76
|
+
let i3 : number = (value & 0x0000ff00) >> 8;
|
|
77
|
+
i3 = i3 < 0 ? 256 + i3 : i3;
|
|
78
|
+
let i4 : number = value & 0x000000ff;
|
|
79
|
+
i4 = i4 < 0 ? 256 + i4 : i4;
|
|
80
|
+
let bytes : number[] = [(value & 0xff000000) >> 24, (value & 0x00ff0000) >> 16, (value & 0x0000ff00) >> 8, value & 0x000000ff ];
|
|
81
|
+
this.flush(bytes);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Writes u int value.
|
|
85
|
+
*/
|
|
86
|
+
public writeUInt(value : number) : void {
|
|
87
|
+
let buff : number[] = [(value & 0xff000000) >> 24, (value & 0x00ff0000) >> 16, (value & 0x0000ff00) >> 8, value & 0x000000ff ];
|
|
88
|
+
this.flush(buff);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Writes string value.
|
|
92
|
+
*/
|
|
93
|
+
public writeString(value : string) : void {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
throw new Error('Argument Null Exception : value');
|
|
96
|
+
}
|
|
97
|
+
let bytes : number[] = [];
|
|
98
|
+
for (let i : number = 0; i < value.length; i++) {
|
|
99
|
+
bytes.push(value.charCodeAt(i));
|
|
100
|
+
}
|
|
101
|
+
this.flush(bytes);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Writes byte[] value.
|
|
105
|
+
*/
|
|
106
|
+
public writeBytes(value : number[]) : void {
|
|
107
|
+
this.flush(value);
|
|
108
|
+
}
|
|
109
|
+
// //Implementation
|
|
110
|
+
private flush(buff : number[]) : void {
|
|
111
|
+
if (buff === null) {
|
|
112
|
+
throw new Error('Argument Null Exception : buff');
|
|
113
|
+
}
|
|
114
|
+
let position : number = this.position;
|
|
115
|
+
for (let i : number = 0; i < buff.length; i++) {
|
|
116
|
+
this.buffer[position] = buff[i];
|
|
117
|
+
position++;
|
|
118
|
+
}
|
|
119
|
+
this.internalPosition += buff.length;
|
|
120
|
+
}
|
|
121
|
+
}
|