@grapecity-software/gcdocs.pdfviewer 7.1.0
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/CHANGELOG.md +2886 -0
- package/README.md +390 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +19 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/main.js +54 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1224 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/AnnotationBase.html +349 -0
- package/docs/classes/ButtonWidget.html +512 -0
- package/docs/classes/ChoiceWidget.html +487 -0
- package/docs/classes/CircleAnnotation.html +425 -0
- package/docs/classes/DsPdfViewer.html +4095 -0
- package/docs/classes/FileAttachmentAnnotation.html +422 -0
- package/docs/classes/FreeTextAnnotation.html +405 -0
- package/docs/classes/GcPdfSearcher.html +362 -0
- package/docs/classes/GcPdfViewer.html +3923 -0
- package/docs/classes/HighlightAnnotation.html +390 -0
- package/docs/classes/InkAnnotation.html +400 -0
- package/docs/classes/LineAnnotation.html +422 -0
- package/docs/classes/LinkAnnotation.html +390 -0
- package/docs/classes/MarkupAnnotation.html +407 -0
- package/docs/classes/PolyLineAnnotation.html +406 -0
- package/docs/classes/PolygonAnnotation.html +406 -0
- package/docs/classes/PopupAnnotation.html +393 -0
- package/docs/classes/RedactAnnotation.html +439 -0
- package/docs/classes/SignatureAnnotation.html +398 -0
- package/docs/classes/SoundAnnotation.html +438 -0
- package/docs/classes/SquareAnnotation.html +397 -0
- package/docs/classes/SquigglyAnnotation.html +390 -0
- package/docs/classes/StampAnnotation.html +400 -0
- package/docs/classes/StrikeOutAnnotation.html +390 -0
- package/docs/classes/TextAnnotation.html +404 -0
- package/docs/classes/TextWidget.html +465 -0
- package/docs/classes/UnderlineAnnotation.html +390 -0
- package/docs/classes/ViewerOptions.html +1243 -0
- package/docs/classes/WidgetAnnotation.html +454 -0
- package/docs/enums/AnnotationTypeCode.html +196 -0
- package/docs/enums/ModificationType.html +86 -0
- package/docs/enums/SharedAccessMode.html +79 -0
- package/docs/enums/TextAlignmentType.html +66 -0
- package/docs/index.html +222 -0
- package/docs/interfaces/IGCEventBus.html +106 -0
- package/docs/types/AnnotationMarkedStateType.html +126 -0
- package/docs/types/AnnotationReviewStateType.html +126 -0
- package/docs/types/AnnotationStateModel.html +126 -0
- package/docs/types/AnnotationTypeName.html +126 -0
- package/docs/types/BusEventName.html +126 -0
- package/docs/types/DocumentListItem.html +146 -0
- package/docs/types/FieldAppearanceRenderingType.html +130 -0
- package/docs/types/FormFieldMapping.html +126 -0
- package/docs/types/FormFillerSettings.html +257 -0
- package/docs/types/GcProps.html +237 -0
- package/docs/types/InputFieldMapping.html +175 -0
- package/docs/types/JsCancelEventArgs.html +137 -0
- package/docs/types/JsEventArgs.html +133 -0
- package/docs/types/JsExecutionConfig.html +165 -0
- package/docs/types/KeyboardShortcutDefinition.html +149 -0
- package/docs/types/KeyboardShortcutTool.html +126 -0
- package/docs/types/LineEndStyle.html +126 -0
- package/docs/types/LinkDestinationType.html +126 -0
- package/docs/types/LinkType.html +126 -0
- package/docs/types/LogLevel.html +128 -0
- package/docs/types/ModificationsState.html +145 -0
- package/docs/types/NamedAction.html +127 -0
- package/docs/types/OpenAction.html +148 -0
- package/docs/types/OpenParameters.html +126 -0
- package/docs/types/OptionalContentConfig.html +195 -0
- package/docs/types/OptionalContentGroup.html +194 -0
- package/docs/types/PageLayout.html +126 -0
- package/docs/types/PageMode.html +126 -0
- package/docs/types/PageModification.html +137 -0
- package/docs/types/PageStructureChange.html +139 -0
- package/docs/types/PageViewport.html +221 -0
- package/docs/types/PdfOrganizerSettings.html +147 -0
- package/docs/types/ReplyToolSettings.html +196 -0
- package/docs/types/RotationInit.html +155 -0
- package/docs/types/RulerLine.html +146 -0
- package/docs/types/SaveSettings.html +191 -0
- package/docs/types/ScrollPageIntoViewOptions.html +126 -0
- package/docs/types/SharedDocumentInfo.html +139 -0
- package/docs/types/SignToolSettings.html +437 -0
- package/docs/types/SignatureInfo.html +158 -0
- package/docs/types/SignatureInformation.html +145 -0
- package/docs/types/StampCategory.html +159 -0
- package/docs/types/StructTreeContent.html +144 -0
- package/docs/types/StructTreeNode.html +141 -0
- package/docs/types/StructureChanges.html +142 -0
- package/docs/types/SupportApiSettings.html +199 -0
- package/docs/types/TextMarkupContextMenuSettings.html +139 -0
- package/docs/types/ToolbarButtonKey.html +126 -0
- package/docs/types/UndoChangeName.html +126 -0
- package/docs/types/UserAccess.html +133 -0
- package/docs/types/ViewerFeatureName.html +128 -0
- package/docs/types/ViewerPreferences.html +178 -0
- package/docs/types/WidgetFieldTypeName.html +129 -0
- package/docs.html +19 -0
- package/gcpdfviewer.js +2 -0
- package/gcpdfviewer.worker.js +2 -0
- package/index.html +43 -0
- package/localization/en-pdf-viewer.json +1587 -0
- package/localization/en-viewer-base.json +73 -0
- package/localization/localization_example.html +55 -0
- package/package.json +27 -0
- package/resources/bcmaps/78-EUC-H.bin +0 -0
- package/resources/bcmaps/78-EUC-V.bin +0 -0
- package/resources/bcmaps/78-H.bin +0 -0
- package/resources/bcmaps/78-RKSJ-H.bin +0 -0
- package/resources/bcmaps/78-RKSJ-V.bin +0 -0
- package/resources/bcmaps/78-V.bin +0 -0
- package/resources/bcmaps/78ms-RKSJ-H.bin +0 -0
- package/resources/bcmaps/78ms-RKSJ-V.bin +0 -0
- package/resources/bcmaps/83pv-RKSJ-H.bin +0 -0
- package/resources/bcmaps/90ms-RKSJ-H.bin +0 -0
- package/resources/bcmaps/90ms-RKSJ-V.bin +0 -0
- package/resources/bcmaps/90msp-RKSJ-H.bin +0 -0
- package/resources/bcmaps/90msp-RKSJ-V.bin +0 -0
- package/resources/bcmaps/90pv-RKSJ-H.bin +0 -0
- package/resources/bcmaps/90pv-RKSJ-V.bin +0 -0
- package/resources/bcmaps/Add-H.bin +0 -0
- package/resources/bcmaps/Add-RKSJ-H.bin +0 -0
- package/resources/bcmaps/Add-RKSJ-V.bin +0 -0
- package/resources/bcmaps/Add-V.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-0.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-1.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-2.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-3.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-4.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-5.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-6.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-UCS2.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-0.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-1.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-2.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-3.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-4.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-5.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-UCS2.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-0.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-1.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-2.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-3.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-4.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-5.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-6.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-UCS2.bin +0 -0
- package/resources/bcmaps/Adobe-Korea1-0.bin +0 -0
- package/resources/bcmaps/Adobe-Korea1-1.bin +0 -0
- package/resources/bcmaps/Adobe-Korea1-2.bin +0 -0
- package/resources/bcmaps/Adobe-Korea1-UCS2.bin +0 -0
- package/resources/bcmaps/B5-H.bin +0 -0
- package/resources/bcmaps/B5-V.bin +0 -0
- package/resources/bcmaps/B5pc-H.bin +0 -0
- package/resources/bcmaps/B5pc-V.bin +0 -0
- package/resources/bcmaps/CNS-EUC-H.bin +0 -0
- package/resources/bcmaps/CNS-EUC-V.bin +0 -0
- package/resources/bcmaps/CNS1-H.bin +0 -0
- package/resources/bcmaps/CNS1-V.bin +0 -0
- package/resources/bcmaps/CNS2-H.bin +0 -0
- package/resources/bcmaps/CNS2-V.bin +3 -0
- package/resources/bcmaps/ETHK-B5-H.bin +0 -0
- package/resources/bcmaps/ETHK-B5-V.bin +0 -0
- package/resources/bcmaps/ETen-B5-H.bin +0 -0
- package/resources/bcmaps/ETen-B5-V.bin +0 -0
- package/resources/bcmaps/ETenms-B5-H.bin +3 -0
- package/resources/bcmaps/ETenms-B5-V.bin +0 -0
- package/resources/bcmaps/EUC-H.bin +0 -0
- package/resources/bcmaps/EUC-V.bin +0 -0
- package/resources/bcmaps/Ext-H.bin +0 -0
- package/resources/bcmaps/Ext-RKSJ-H.bin +0 -0
- package/resources/bcmaps/Ext-RKSJ-V.bin +0 -0
- package/resources/bcmaps/Ext-V.bin +0 -0
- package/resources/bcmaps/GB-EUC-H.bin +0 -0
- package/resources/bcmaps/GB-EUC-V.bin +0 -0
- package/resources/bcmaps/GB-H.bin +4 -0
- package/resources/bcmaps/GB-V.bin +0 -0
- package/resources/bcmaps/GBK-EUC-H.bin +0 -0
- package/resources/bcmaps/GBK-EUC-V.bin +0 -0
- package/resources/bcmaps/GBK2K-H.bin +0 -0
- package/resources/bcmaps/GBK2K-V.bin +0 -0
- package/resources/bcmaps/GBKp-EUC-H.bin +0 -0
- package/resources/bcmaps/GBKp-EUC-V.bin +0 -0
- package/resources/bcmaps/GBT-EUC-H.bin +0 -0
- package/resources/bcmaps/GBT-EUC-V.bin +0 -0
- package/resources/bcmaps/GBT-H.bin +0 -0
- package/resources/bcmaps/GBT-V.bin +0 -0
- package/resources/bcmaps/GBTpc-EUC-H.bin +0 -0
- package/resources/bcmaps/GBTpc-EUC-V.bin +0 -0
- package/resources/bcmaps/GBpc-EUC-H.bin +0 -0
- package/resources/bcmaps/GBpc-EUC-V.bin +0 -0
- package/resources/bcmaps/H.bin +0 -0
- package/resources/bcmaps/HKdla-B5-H.bin +0 -0
- package/resources/bcmaps/HKdla-B5-V.bin +0 -0
- package/resources/bcmaps/HKdlb-B5-H.bin +0 -0
- package/resources/bcmaps/HKdlb-B5-V.bin +0 -0
- package/resources/bcmaps/HKgccs-B5-H.bin +0 -0
- package/resources/bcmaps/HKgccs-B5-V.bin +0 -0
- package/resources/bcmaps/HKm314-B5-H.bin +0 -0
- package/resources/bcmaps/HKm314-B5-V.bin +0 -0
- package/resources/bcmaps/HKm471-B5-H.bin +0 -0
- package/resources/bcmaps/HKm471-B5-V.bin +0 -0
- package/resources/bcmaps/HKscs-B5-H.bin +0 -0
- package/resources/bcmaps/HKscs-B5-V.bin +0 -0
- package/resources/bcmaps/Hankaku.bin +0 -0
- package/resources/bcmaps/Hiragana.bin +0 -0
- package/resources/bcmaps/KSC-EUC-H.bin +0 -0
- package/resources/bcmaps/KSC-EUC-V.bin +0 -0
- package/resources/bcmaps/KSC-H.bin +0 -0
- package/resources/bcmaps/KSC-Johab-H.bin +0 -0
- package/resources/bcmaps/KSC-Johab-V.bin +0 -0
- package/resources/bcmaps/KSC-V.bin +0 -0
- package/resources/bcmaps/KSCms-UHC-H.bin +0 -0
- package/resources/bcmaps/KSCms-UHC-HW-H.bin +0 -0
- package/resources/bcmaps/KSCms-UHC-HW-V.bin +0 -0
- package/resources/bcmaps/KSCms-UHC-V.bin +0 -0
- package/resources/bcmaps/KSCpc-EUC-H.bin +0 -0
- package/resources/bcmaps/KSCpc-EUC-V.bin +0 -0
- package/resources/bcmaps/Katakana.bin +0 -0
- package/resources/bcmaps/LICENSE +36 -0
- package/resources/bcmaps/NWP-H.bin +0 -0
- package/resources/bcmaps/NWP-V.bin +0 -0
- package/resources/bcmaps/RKSJ-H.bin +0 -0
- package/resources/bcmaps/RKSJ-V.bin +0 -0
- package/resources/bcmaps/Roman.bin +0 -0
- package/resources/bcmaps/UniCNS-UCS2-H.bin +0 -0
- package/resources/bcmaps/UniCNS-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniGB-UCS2-H.bin +0 -0
- package/resources/bcmaps/UniGB-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniGB-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniGB-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniGB-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniGB-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniGB-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniGB-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UCS2-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UCS2-HW-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UCS2-HW-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniJISPro-UCS2-HW-V.bin +0 -0
- package/resources/bcmaps/UniJISPro-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniJISPro-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniJISX0213-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniJISX0213-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniJISX02132004-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniJISX02132004-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniKS-UCS2-H.bin +0 -0
- package/resources/bcmaps/UniKS-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniKS-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniKS-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniKS-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniKS-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniKS-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniKS-UTF8-V.bin +0 -0
- package/resources/bcmaps/V.bin +0 -0
- package/resources/bcmaps/WP-Symbol.bin +0 -0
- package/resources/standard_fonts/FoxitDingbats.pfb +0 -0
- package/resources/standard_fonts/FoxitFixed.pfb +0 -0
- package/resources/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/resources/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSans.pfb +0 -0
- package/resources/standard_fonts/FoxitSansBold.pfb +0 -0
- package/resources/standard_fonts/FoxitSansBoldItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSansItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSerif.pfb +0 -0
- package/resources/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/resources/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSymbol.pfb +0 -0
- package/resources/standard_fonts/LICENSE_FOXIT +27 -0
- package/resources/standard_fonts/LICENSE_LIBERATION +102 -0
- package/resources/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/resources/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/resources/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/resources/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/resources/standard_fonts/README.md +11 -0
- package/themes/dark-yellow.css +1 -0
- package/themes/dark-yellow.jscss +7 -0
- package/themes/dark.css +1 -0
- package/themes/dark.jscss +7 -0
- package/themes/gc-blue.css +1 -0
- package/themes/gc-blue.jscss +7 -0
- package/themes/light-blue.css +1 -0
- package/themes/light-blue.jscss +7 -0
- package/themes/light.css +1 -0
- package/themes/light.jscss +7 -0
- package/themes/viewer.css +1 -0
- package/themes/viewer.jscss +7 -0
- package/typings/AcroForm/AcroForm.d.ts +3 -0
- package/typings/AcroForm/index.d.ts +4 -0
- package/typings/AcroForm/state.d.ts +4 -0
- package/typings/AcroForm/types.d.ts +15 -0
- package/typings/Annotations/AnnotationPropertyDescriptors.d.ts +88 -0
- package/typings/Annotations/AnnotationState.d.ts +5 -0
- package/typings/Annotations/AnnotationTypes.d.ts +353 -0
- package/typings/Annotations/Annotations.d.ts +151 -0
- package/typings/Annotations/Editors/CalloutLineEditor.d.ts +19 -0
- package/typings/Annotations/Editors/CancelableEditorBase.d.ts +34 -0
- package/typings/Annotations/Editors/ChoiceOptionsEditor.d.ts +21 -0
- package/typings/Annotations/Editors/ColorEditor/ColorEditor.d.ts +13 -0
- package/typings/Annotations/Editors/ColorEditor/Localization.d.ts +2 -0
- package/typings/Annotations/Editors/ColorEditor/StandardPalette.d.ts +3 -0
- package/typings/Annotations/Editors/ColorEditor/types.d.ts +21 -0
- package/typings/Annotations/Editors/FileEditor.d.ts +42 -0
- package/typings/Annotations/Editors/FloatEditor.d.ts +43 -0
- package/typings/Annotations/Editors/ImageFileEditor.d.ts +37 -0
- package/typings/Annotations/Editors/JsCodeAreaEditor.d.ts +18 -0
- package/typings/Annotations/Editors/KeyValuePairEditor.d.ts +20 -0
- package/typings/Annotations/Editors/LinkAnnotationHelper.d.ts +18 -0
- package/typings/Annotations/Editors/LinkDestTypeEditor.d.ts +18 -0
- package/typings/Annotations/Editors/MediaFileEditor.d.ts +7 -0
- package/typings/Annotations/Editors/MediaPosterFileEditor.d.ts +9 -0
- package/typings/Annotations/Editors/NullableIntEditor.d.ts +39 -0
- package/typings/Annotations/Editors/ParentIdEditor.d.ts +22 -0
- package/typings/Annotations/Editors/PlaceholderEditorStub.d.ts +15 -0
- package/typings/Annotations/Editors/PreserveStampSizeAspectToggle.d.ts +15 -0
- package/typings/Annotations/Editors/SelectFileHelper.d.ts +24 -0
- package/typings/Annotations/Editors/SoundFileEditor.d.ts +41 -0
- package/typings/Annotations/Editors/TextAreaEditor.d.ts +23 -0
- package/typings/Annotations/Elements/CheckBoxElement.d.ts +2 -0
- package/typings/Annotations/Elements/RadioButtonElement.d.ts +2 -0
- package/typings/Annotations/RichMediaAnnotation.d.ts +41 -0
- package/typings/Annotations/index.d.ts +4 -0
- package/typings/Annotations/state.d.ts +4 -0
- package/typings/Annotations/types.d.ts +63 -0
- package/typings/Articles/Articles.d.ts +19 -0
- package/typings/Articles/index.d.ts +4 -0
- package/typings/Articles/state.d.ts +4 -0
- package/typings/Articles/types.d.ts +24 -0
- package/typings/Attachments/Attachments.d.ts +17 -0
- package/typings/Attachments/index.d.ts +3 -0
- package/typings/Attachments/state.d.ts +4 -0
- package/typings/Attachments/types.d.ts +7 -0
- package/typings/Contents/Contents.d.ts +13 -0
- package/typings/Contents/index.d.ts +4 -0
- package/typings/Contents/state.d.ts +4 -0
- package/typings/Contents/types.d.ts +16 -0
- package/typings/ContextMenu/ContextMenuProvider.d.ts +48 -0
- package/typings/ContextMenu/DropdownMenu.d.ts +121 -0
- package/typings/ContextMenu/GcDocumentContextMenu.d.ts +80 -0
- package/typings/ContextMenu/Positioner.d.ts +58 -0
- package/typings/ContextMenu/constants.d.ts +22 -0
- package/typings/ContextMenu/essentials.d.ts +41 -0
- package/typings/ContextMenu/types.d.ts +2 -0
- package/typings/Core/ExternalPdfManager.d.ts +24 -0
- package/typings/Core/GcPdfViewerDataLoader.d.ts +24 -0
- package/typings/DataStorage/DataStorage.d.ts +20 -0
- package/typings/Dialogs/ConfirmationDialog.d.ts +17 -0
- package/typings/Dialogs/ProgressDialog.d.ts +37 -0
- package/typings/Dialogs/Types.d.ts +22 -0
- package/typings/DocumentListPanel.d.ts +39 -0
- package/typings/DsPdfViewer.d.ts +5 -0
- package/typings/FloatingBar/FloatingBar.d.ts +20 -0
- package/typings/FloatingBar/types.d.ts +7 -0
- package/typings/FloatingSearchBar/FloatingSearchBar.d.ts +42 -0
- package/typings/FloatingSearchBar/types.d.ts +3 -0
- package/typings/FormFiller/Controls/CheckBoxControl.d.ts +7 -0
- package/typings/FormFiller/Controls/ChoiceControl.d.ts +11 -0
- package/typings/FormFiller/Controls/CombTextControl.d.ts +7 -0
- package/typings/FormFiller/Controls/ControlBase.d.ts +32 -0
- package/typings/FormFiller/Controls/DateTimeControl.d.ts +7 -0
- package/typings/FormFiller/Controls/DateTimeHelper.d.ts +18 -0
- package/typings/FormFiller/Controls/EmailControl.d.ts +7 -0
- package/typings/FormFiller/Controls/PasswordControl.d.ts +7 -0
- package/typings/FormFiller/Controls/RadioControl.d.ts +7 -0
- package/typings/FormFiller/Controls/SearchControl.d.ts +7 -0
- package/typings/FormFiller/Controls/TelControl.d.ts +7 -0
- package/typings/FormFiller/Controls/TextControl.d.ts +7 -0
- package/typings/FormFiller/Controls/UrlControl.d.ts +7 -0
- package/typings/FormFiller/FieldRow.d.ts +27 -0
- package/typings/FormFiller/FormFiller.d.ts +32 -0
- package/typings/FormFiller/FormFillerDialog.d.ts +28 -0
- package/typings/FormFiller/Validator.d.ts +9 -0
- package/typings/FormFiller/types.d.ts +48 -0
- package/typings/GcPdfDocument.d.ts +65 -0
- package/typings/GcPdfDocumentView.d.ts +22 -0
- package/typings/GcPdfViewer.d.ts +464 -0
- package/typings/GcPdfViewerStateStorage.d.ts +24 -0
- package/typings/Keyboard/KeyboardWorker.d.ts +52 -0
- package/typings/Keyboard/ShortcutsConfig.d.ts +10 -0
- package/typings/Layers/Layers.d.ts +17 -0
- package/typings/Layers/index.d.ts +1 -0
- package/typings/Layers/state.d.ts +0 -0
- package/typings/Layers/types.d.ts +8 -0
- package/typings/LeftSidebar.d.ts +33 -0
- package/typings/Models/EventArgs.d.ts +38 -0
- package/typings/Models/GcMeasurementTypes.d.ts +29 -0
- package/typings/Models/PluginTypes.d.ts +23 -0
- package/typings/Models/ViewerTypes.d.ts +279 -0
- package/typings/Password/GcPdfPasswordDialog.d.ts +31 -0
- package/typings/PdfDocumentViewer/PdfDocumentViewer.d.ts +11 -0
- package/typings/PdfOrganizer/PdfOrganizerDialog.d.ts +83 -0
- package/typings/PdfOrganizer/types.d.ts +17 -0
- package/typings/Polyfills/ArrayPolyfills.d.ts +1 -0
- package/typings/Polyfills/CanvasToBlob.d.ts +0 -0
- package/typings/Polyfills/closest.d.ts +0 -0
- package/typings/Print/GcPdfPrintProgress.d.ts +17 -0
- package/typings/Print/GcPdfPrintService.d.ts +7 -0
- package/typings/Properties/DocumentInformation.d.ts +22 -0
- package/typings/Properties/PropertiesDialog.d.ts +39 -0
- package/typings/ReplyTool/AuthorLabel.d.ts +8 -0
- package/typings/ReplyTool/ReplyTool.d.ts +90 -0
- package/typings/ReplyTool/types.d.ts +25 -0
- package/typings/RightSidebar/GcRightSidebar.d.ts +42 -0
- package/typings/RightSidebar/types.d.ts +2 -0
- package/typings/Search/GcPdfSearcher.d.ts +98 -0
- package/typings/Search/IPdfSearcher.d.ts +5 -0
- package/typings/Search/SearchPanel.d.ts +16 -0
- package/typings/Search/SearchPanelBase.d.ts +35 -0
- package/typings/Search/SearchUtils.d.ts +24 -0
- package/typings/Search/SearchWorker.d.ts +37 -0
- package/typings/Search/TextSelectionBoundsTester.d.ts +10 -0
- package/typings/Search/api.d.ts +12 -0
- package/typings/Search/index.d.ts +5 -0
- package/typings/Search/types.d.ts +135 -0
- package/typings/Security/DocumentSecuritySummary.d.ts +19 -0
- package/typings/SharedDocuments/ShareDialog.d.ts +55 -0
- package/typings/SharedDocuments/SharedChangeIndicator.d.ts +5 -0
- package/typings/SharedDocuments/SharedDocumentsPanel.d.ts +26 -0
- package/typings/SharedDocuments/types.d.ts +73 -0
- package/typings/SignTool/CanvasRuler.d.ts +21 -0
- package/typings/SignTool/DrawTool.d.ts +41 -0
- package/typings/SignTool/ImageTool.d.ts +51 -0
- package/typings/SignTool/SignToolDialog.d.ts +97 -0
- package/typings/SignTool/SignToolStorage.d.ts +17 -0
- package/typings/SignTool/SignaturePad/SignaturePad.d.ts +76 -0
- package/typings/SignTool/SignaturePad/throttle.d.ts +1 -0
- package/typings/SignTool/SignaturePad/types.d.ts +30 -0
- package/typings/SignTool/TypeTool.d.ts +52 -0
- package/typings/SignTool/types.d.ts +62 -0
- package/typings/StructureTree/StructureTree.d.ts +31 -0
- package/typings/StructureTree/index.d.ts +1 -0
- package/typings/StructureTree/state.d.ts +0 -0
- package/typings/StructureTree/types.d.ts +7 -0
- package/typings/Styles/StaticIcons.d.ts +1 -0
- package/typings/Styles/pdfSvgIcons.d.ts +155 -0
- package/typings/SupportApi/Connection/ClientMessage.d.ts +61 -0
- package/typings/SupportApi/Connection/Message.d.ts +3 -0
- package/typings/SupportApi/Connection/PersistentConnection.d.ts +33 -0
- package/typings/SupportApi/Connection/ServerMessage.d.ts +25 -0
- package/typings/SupportApi/DocumentOptions.d.ts +14 -0
- package/typings/SupportApi/ISupportApi.d.ts +44 -0
- package/typings/SupportApi/ISupportApiBase.d.ts +30 -0
- package/typings/SupportApi/LocalDocumentModification.d.ts +23 -0
- package/typings/SupportApi/RenderParams.d.ts +7 -0
- package/typings/SupportApi/SignatureInfo.d.ts +0 -0
- package/typings/SupportApi/SupportApiImpl.d.ts +88 -0
- package/typings/SupportApi/Wasm/IWasmModule.d.ts +22 -0
- package/typings/SupportApi/Wasm/WasmModule.d.ts +2 -0
- package/typings/SupportApi/Wasm/WasmSupportApi.d.ts +38 -0
- package/typings/SupportApi/types.d.ts +43 -0
- package/typings/Thumbnails/GcRangedThumbsPane.d.ts +17 -0
- package/typings/Thumbnails/GcThumbView.d.ts +50 -0
- package/typings/Thumbnails/GcThumbnailViewer.d.ts +46 -0
- package/typings/Thumbnails/Thumbnails.d.ts +18 -0
- package/typings/Thumbnails/index.d.ts +1 -0
- package/typings/Toolbar/PdfToolbarLayout.d.ts +9 -0
- package/typings/Toolbar/SecondToolbar/SecondToolbar.d.ts +25 -0
- package/typings/Toolbar/SecondToolbar/SecondToolbarControl.d.ts +31 -0
- package/typings/Toolbar/SecondToolbar/SecondToolbarRenderer.d.ts +5 -0
- package/typings/Toolbar/SecondToolbar/types.d.ts +9 -0
- package/typings/Toolbar/ToolbarItems.d.ts +71 -0
- package/typings/Toolbar/controls/AddStampDropdown.d.ts +61 -0
- package/typings/Toolbar/controls/Zoom.d.ts +42 -0
- package/typings/Utils/AnnotationsSvgFactory.d.ts +34 -0
- package/typings/Utils/AudioOscilloscopeVisualizer.d.ts +23 -0
- package/typings/Utils/AudioUtils.d.ts +12 -0
- package/typings/Utils/BackgroundUtilsWorker.d.ts +6 -0
- package/typings/Utils/BrowserUtils.d.ts +20 -0
- package/typings/Utils/ColorUtils.d.ts +7 -0
- package/typings/Utils/CombFieldBehavior.d.ts +58 -0
- package/typings/Utils/DomUtils.d.ts +21 -0
- package/typings/Utils/DownloadUtil.d.ts +2 -0
- package/typings/Utils/DrawingPanel.d.ts +11 -0
- package/typings/Utils/DropFileAreaHelper.d.ts +25 -0
- package/typings/Utils/EditableComboBoxBehavior.d.ts +17 -0
- package/typings/Utils/EncodingUtils.d.ts +9 -0
- package/typings/Utils/Exceptions.d.ts +5 -0
- package/typings/Utils/GcEditableTextBehavior.d.ts +48 -0
- package/typings/Utils/GcMeasurement.d.ts +37 -0
- package/typings/Utils/GestureEventsDispatcher.d.ts +40 -0
- package/typings/Utils/MathUtils.d.ts +17 -0
- package/typings/Utils/MeasurementUtils.d.ts +4 -0
- package/typings/Utils/PromiseUtils.d.ts +24 -0
- package/typings/Utils/ResizableDialogBehavior.d.ts +1 -0
- package/typings/Utils/RichMediaAnnotationPlayer.d.ts +60 -0
- package/typings/Utils/ScrollUtils.d.ts +20 -0
- package/typings/Utils/SearchUtils.d.ts +20 -0
- package/typings/Utils/SelectionRangeUtils.d.ts +2 -0
- package/typings/Utils/SharedRef.d.ts +17 -0
- package/typings/Utils/StampImagesAwaiter.d.ts +15 -0
- package/typings/Utils/SupportApiUtils.d.ts +4 -0
- package/typings/Utils/TooltipPopup.d.ts +6 -0
- package/typings/Utils/UrlUtils.d.ts +17 -0
- package/typings/Utils/ViewerUtils.d.ts +68 -0
- package/typings/Utils/index.d.ts +1 -0
- package/typings/ViewerOptions.d.ts +316 -0
- package/typings/XFA/XfaApiImpl.d.ts +19 -0
- package/typings/XFA/XfaForm.d.ts +7 -0
- package/typings/XFA/XfaNode.d.ts +5 -0
- package/typings/httpClient.d.ts +15 -0
- package/typings/index.d.ts +10 -0
- package/typings/plugin.d.ts +646 -0
- package/typings/vendor/i18next.d.ts +1022 -0
- package/typings/vendor/js-viewer-core/api/PluginModel.d.ts +246 -0
- package/typings/vendor/js-viewer-core/api/ReportViewerCmd.d.ts +72 -0
- package/typings/vendor/js-viewer-core/api/index.d.ts +3 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/ContinuousView.d.ts +37 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/Page.d.ts +17 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/SinglePageView.d.ts +30 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/View.d.ts +15 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/Zoomer.d.ts +12 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/index.d.ts +3 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/moveTool.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/state.d.ts +7 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/types.d.ts +214 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/zoomUtils.d.ts +26 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/ErrorView.d.ts +26 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/View.d.ts +22 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/index.d.ts +3 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/state.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/types.d.ts +21 -0
- package/typings/vendor/js-viewer-core/components/NotificationManager/NotificationManager.d.ts +19 -0
- package/typings/vendor/js-viewer-core/components/NotificationManager/index.d.ts +1 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/MenuView.d.ts +32 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/SideBarView.d.ts +39 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/TopBottomPanelView.d.ts +9 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/index.d.ts +5 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/state.d.ts +13 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/types.d.ts +47 -0
- package/typings/vendor/js-viewer-core/components/ProgressDialog/View.d.ts +19 -0
- package/typings/vendor/js-viewer-core/components/ProgressDialog/index.d.ts +3 -0
- package/typings/vendor/js-viewer-core/components/ProgressDialog/state.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/ProgressDialog/types.d.ts +26 -0
- package/typings/vendor/js-viewer-core/components/ThumbnailsPanel/ThumbnailsPanel.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/ThumbnailsPanel/index.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/ThumbnailsPanel/state.d.ts +6 -0
- package/typings/vendor/js-viewer-core/components/ThumbnailsPanel/types.d.ts +37 -0
- package/typings/vendor/js-viewer-core/components/Toolbar/Toolbar.d.ts +97 -0
- package/typings/vendor/js-viewer-core/components/Toolbar/controls/Zoom.d.ts +23 -0
- package/typings/vendor/js-viewer-core/components/Toolbar/index.d.ts +1 -0
- package/typings/vendor/js-viewer-core/components/index.d.ts +8 -0
- package/typings/vendor/js-viewer-core/components/utils.d.ts +6 -0
- package/typings/vendor/js-viewer-core/control/CancellationToken.d.ts +36 -0
- package/typings/vendor/js-viewer-core/control/EventFan.d.ts +35 -0
- package/typings/vendor/js-viewer-core/control/ReactStateBinder.d.ts +24 -0
- package/typings/vendor/js-viewer-core/control/ReportViewer.d.ts +227 -0
- package/typings/vendor/js-viewer-core/control/SessionState.d.ts +61 -0
- package/typings/vendor/js-viewer-core/control/Store.d.ts +37 -0
- package/typings/vendor/js-viewer-core/control/Toolbar.d.ts +53 -0
- package/typings/vendor/js-viewer-core/control/ViewerState.d.ts +67 -0
- package/typings/vendor/js-viewer-core/control/historyStore.d.ts +0 -0
- package/typings/vendor/js-viewer-core/control/index.d.ts +7 -0
- package/typings/vendor/js-viewer-core/features/search/SearchPanel.d.ts +21 -0
- package/typings/vendor/js-viewer-core/features/search/api.d.ts +18 -0
- package/typings/vendor/js-viewer-core/features/search/index.d.ts +8 -0
- package/typings/vendor/js-viewer-core/features/search/types.d.ts +117 -0
- package/typings/vendor/js-viewer-core/index.d.ts +6 -0
- package/typings/vendor/js-viewer-core/styles/svgIcons.d.ts +30 -0
- package/typings/vendor/react/global.d.ts +151 -0
- package/typings/vendor/react/react-dom.d.ts +100 -0
- package/typings/vendor/react/react.d.ts +3152 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { RichMediaAnnotation } from "../Annotations/RichMediaAnnotation";
|
|
2
|
+
export declare function exitPictureInPictureMode(videoElement: HTMLVideoElement): Promise<void>;
|
|
3
|
+
export declare function requestPictureInPictureMode(videoElement: HTMLVideoElement): Promise<boolean>;
|
|
4
|
+
export declare class RichMediaAnnotationPlayer {
|
|
5
|
+
container: HTMLElement;
|
|
6
|
+
richMediaAnnotation: RichMediaAnnotation;
|
|
7
|
+
viewer: any;
|
|
8
|
+
private _initialized;
|
|
9
|
+
private _html5MediaElement;
|
|
10
|
+
private _unregisterViewerStateChange?;
|
|
11
|
+
private _intersectionObserver?;
|
|
12
|
+
private _audioOscilloscopeVisualizer?;
|
|
13
|
+
private _streamVideoElement?;
|
|
14
|
+
constructor(container: HTMLElement, richMediaAnnotation: RichMediaAnnotation, viewer: any);
|
|
15
|
+
get activationCondition(): "XA" | "PO" | "PV";
|
|
16
|
+
get deactivationCondition(): "XD" | "PC" | "PI";
|
|
17
|
+
get annotationPageIndex(): number;
|
|
18
|
+
get fileSpec(): {
|
|
19
|
+
content: Uint8Array;
|
|
20
|
+
filename: string;
|
|
21
|
+
};
|
|
22
|
+
get isFlash(): boolean;
|
|
23
|
+
get isMp3(): boolean;
|
|
24
|
+
get isAudio(): boolean;
|
|
25
|
+
get mimeType(): string;
|
|
26
|
+
get isWindowed(): boolean;
|
|
27
|
+
get lowerFileName(): string;
|
|
28
|
+
get paused(): boolean;
|
|
29
|
+
togglePlayback(): void;
|
|
30
|
+
play(): void;
|
|
31
|
+
protected get richMediaAnnotationElement(): HTMLElement | undefined;
|
|
32
|
+
protected onPlaybackStarted(): void;
|
|
33
|
+
protected onPlaybackStopped(): void;
|
|
34
|
+
get isPlaybackActivated(): boolean;
|
|
35
|
+
stop(): void;
|
|
36
|
+
pause(): void;
|
|
37
|
+
private onViewerStateChange;
|
|
38
|
+
get in17n(): any;
|
|
39
|
+
onContentClick(): void;
|
|
40
|
+
private initializeInternal;
|
|
41
|
+
showClickToActivateTooltip(): void;
|
|
42
|
+
hideClickToActivateTooltip(): void;
|
|
43
|
+
private pauseHtml5Media;
|
|
44
|
+
private stopHtml5Media;
|
|
45
|
+
private _ensureHtml5MediaElement;
|
|
46
|
+
onEnterPictureInPicture(): void;
|
|
47
|
+
onLeavePictureInPicture(): void;
|
|
48
|
+
private playHtml5Media;
|
|
49
|
+
private tryExitPipMode;
|
|
50
|
+
private removeCustomPiP;
|
|
51
|
+
private createCustomPiP;
|
|
52
|
+
private tryEnterPipMode;
|
|
53
|
+
private static stopSwf;
|
|
54
|
+
private static playSwf;
|
|
55
|
+
private static playSwfInternal;
|
|
56
|
+
private get isEditAnnotationsMode();
|
|
57
|
+
private disposeIfNecessary;
|
|
58
|
+
private disposeViewerStateChange;
|
|
59
|
+
private disposeIntersectionObserver;
|
|
60
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare function scrollIntoView(element: HTMLElement, spot: {
|
|
2
|
+
left?: number;
|
|
3
|
+
top?: number;
|
|
4
|
+
}, skipOverflowHiddenElements?: boolean, parent?: any | null): void;
|
|
5
|
+
export declare class GcDebounceScroll {
|
|
6
|
+
state: {
|
|
7
|
+
down: boolean;
|
|
8
|
+
lastScrollTop: number;
|
|
9
|
+
};
|
|
10
|
+
private _debounceScrollHandler?;
|
|
11
|
+
private _requestAnimationFrame;
|
|
12
|
+
private _scrollContainer;
|
|
13
|
+
private _cancelUnhandledScrolls;
|
|
14
|
+
private _cancelledScrollValue;
|
|
15
|
+
constructor(scrollContainer: HTMLElement, callback: Function, restoreCancelledScrollCallback?: Function | null | undefined);
|
|
16
|
+
setScrollContainer(scrollContainer: any): void;
|
|
17
|
+
set cancelUnhandledScrolls(cancel: boolean);
|
|
18
|
+
get cancelUnhandledScrolls(): boolean;
|
|
19
|
+
destroy(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare function isTextPartsOnTheSameLine(first: {
|
|
2
|
+
transform: number[];
|
|
3
|
+
dir: 'ltr' | 'rtl';
|
|
4
|
+
}, next: {
|
|
5
|
+
transform: number[];
|
|
6
|
+
dir: 'ltr' | 'rtl';
|
|
7
|
+
}): boolean;
|
|
8
|
+
declare const CharacterType: {
|
|
9
|
+
SPACE: number;
|
|
10
|
+
ALPHA_LETTER: number;
|
|
11
|
+
PUNCT: number;
|
|
12
|
+
HAN_LETTER: number;
|
|
13
|
+
KATAKANA_LETTER: number;
|
|
14
|
+
HIRAGANA_LETTER: number;
|
|
15
|
+
HALFWIDTH_KATAKANA_LETTER: number;
|
|
16
|
+
THAI_LETTER: number;
|
|
17
|
+
};
|
|
18
|
+
declare function normalize(text: any): any;
|
|
19
|
+
declare function getCharacterType(charCode: any): number;
|
|
20
|
+
export { CharacterType, getCharacterType, normalize };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataStorage } from "../DataStorage/DataStorage";
|
|
2
|
+
export declare class SharedRef {
|
|
3
|
+
viewer: any;
|
|
4
|
+
moment: any;
|
|
5
|
+
i18n: any;
|
|
6
|
+
static onViewerInitialize(viewer: any, moment: any): void;
|
|
7
|
+
static get(instanceId: string, getAny?: boolean): SharedRef;
|
|
8
|
+
static dispose(instanceId: string): void;
|
|
9
|
+
static get moment(): any;
|
|
10
|
+
static get i18n(): any;
|
|
11
|
+
static set i18n(i18n: any);
|
|
12
|
+
static get count(): number;
|
|
13
|
+
constructor(viewer: any, moment: any, i18n: any);
|
|
14
|
+
get storage(): DataStorage;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
releaseResources(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import PdfReportPlugin from "../plugin";
|
|
2
|
+
export declare class StampImagesAwaiter {
|
|
3
|
+
private plugin;
|
|
4
|
+
private _loadedImagesInfoHash;
|
|
5
|
+
constructor(plugin: PdfReportPlugin);
|
|
6
|
+
onAnnotationImageLoaded(info: {
|
|
7
|
+
id: string;
|
|
8
|
+
fileId: string;
|
|
9
|
+
fileName: string;
|
|
10
|
+
fileLength: number;
|
|
11
|
+
filePropName?: string;
|
|
12
|
+
}): void;
|
|
13
|
+
private _applyLoadedImagesInfo;
|
|
14
|
+
private setStampAnnotationFile;
|
|
15
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SaveSettings } from "../Models/ViewerTypes";
|
|
2
|
+
import { ModificationsState } from "../SharedDocuments/types";
|
|
3
|
+
import { LocalDocumentModification } from "../SupportApi/LocalDocumentModification";
|
|
4
|
+
export declare function collectModifiedFiles(documentModification: LocalDocumentModification | ModificationsState, saveSettings?: SaveSettings): string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function hideTooltipPopup(container: HTMLElement): void;
|
|
2
|
+
export declare function showTooltipPopup(container: HTMLElement, message: string, theme?: {
|
|
3
|
+
textColor?: string;
|
|
4
|
+
borderColor?: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
}, timeoutMs?: number): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function findBaseScriptUrl(): string;
|
|
2
|
+
export declare function makeAbsoluteUrl(relativeUrl: string, baseUrl?: string): string;
|
|
3
|
+
export declare function getFilenameFromUrl(url: string): string;
|
|
4
|
+
export declare function removeNullCharacters(str: any): any;
|
|
5
|
+
export declare enum LinkTarget {
|
|
6
|
+
NONE = 0,
|
|
7
|
+
SELF = 1,
|
|
8
|
+
BLANK = 2,
|
|
9
|
+
PARENT = 3,
|
|
10
|
+
TOP = 4
|
|
11
|
+
}
|
|
12
|
+
export declare function addLinkAttributes(link: HTMLAnchorElement, params: {
|
|
13
|
+
url: string;
|
|
14
|
+
target: LinkTarget;
|
|
15
|
+
rel: string;
|
|
16
|
+
}): void;
|
|
17
|
+
export declare function createObjectURL(data: any, contentType: string, forceDataSchema?: boolean): string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { AnnotationBase, StampAnnotation } from "../Annotations/AnnotationTypes";
|
|
2
|
+
import { DataStorage } from "../DataStorage/DataStorage";
|
|
3
|
+
import { SharedRef } from "./SharedRef";
|
|
4
|
+
export declare function generateUid(caller?: string): string;
|
|
5
|
+
export declare function updateInitialRectPosition(annotation: AnnotationBase, newXY?: number[]): void;
|
|
6
|
+
export declare function resetStampAspectRatio(imageData: Uint8Array, viewer: any, pageIndex: number, originalNode: StampAnnotation, imageDpi?: number, select?: boolean): Promise<{
|
|
7
|
+
pageIndex: number;
|
|
8
|
+
annotation: AnnotationBase;
|
|
9
|
+
} | null>;
|
|
10
|
+
export declare function isTypedArray(arr: any): boolean;
|
|
11
|
+
export declare function mergeObject(destinationObj: any, sourceVal: any, preserveNonEmpty?: boolean, copyUndefined?: boolean): any;
|
|
12
|
+
export declare function cloneObject(obj: any): any;
|
|
13
|
+
export declare function getTransformMatrix(viewBox: number[], rotation: number, scaleX: number, scaleY: number, ignoreRotate?: boolean): number[];
|
|
14
|
+
export declare function adjustCoordinates(realViewBox: number[], point: number[], rotation: number, inverse?: boolean, fromBottomLeft?: boolean, scale?: number): number[];
|
|
15
|
+
export declare function getAxialAlignedBoundingBox(r: any, m: any): number[];
|
|
16
|
+
export declare function applyTransform(p: number[], m: number[]): number[];
|
|
17
|
+
export declare function applyInverseTransform(p: number[], m: number[]): number[];
|
|
18
|
+
export declare function inverseTransform(m: number[]): number[];
|
|
19
|
+
export declare function convertToViewportPoint(x: number, y: number, transform: number[]): number[];
|
|
20
|
+
export declare function convertToPdfPoint(x: number, y: number, transform: number[]): number[];
|
|
21
|
+
export declare function changeRectangleOrigin(bounds: number[], viewBox: number[], destOrigin?: 'TopLeft' | 'BottomLeft', normalize?: boolean): number[];
|
|
22
|
+
export declare function changeOriginToBottom(top: number, view: number[]): number;
|
|
23
|
+
export declare function changeOriginToTop(bottom: number, view: number[]): number;
|
|
24
|
+
export declare function pdfDateStringToDate(input?: string | Date): Date | null;
|
|
25
|
+
export declare function formatRelativeDate(date: Date | null, in17n: any): any;
|
|
26
|
+
export declare function humanReadableFileSize(size: number, in17n: any): string;
|
|
27
|
+
export declare function getDefaultUserName(): string;
|
|
28
|
+
export declare function getActiveUserName(options?: any): string;
|
|
29
|
+
export declare function setActiveUserName(userName: string, setBy: 'annotation_editor' | 'user'): void;
|
|
30
|
+
export declare function attachHeadJs(src: string, id?: string, ownerDoc?: ShadowRoot | Document): Promise<any>;
|
|
31
|
+
export declare function stripHtmlTags(s: any): string;
|
|
32
|
+
export declare function cleanseRichText(text?: string): string;
|
|
33
|
+
export declare function attachHeadCss(css: any, id?: string, ownerDoc?: ShadowRoot | Document): void;
|
|
34
|
+
export declare function detachHeadJs(id: string, ownerDoc?: ShadowRoot | Document): void;
|
|
35
|
+
export declare function detachHeadCss(id: string, ownerDoc?: ShadowRoot | Document): void;
|
|
36
|
+
export declare function moveInkLists(inkLists: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
}[][], deltaX: number, deltaY: number): void;
|
|
40
|
+
export declare function getAccentTextColor(): string;
|
|
41
|
+
export declare function sortedIndex(array: number[], value: number): number;
|
|
42
|
+
export declare function isEditorModeEnabled(container: HTMLElement): boolean;
|
|
43
|
+
export declare function logMessage(msg: string): void;
|
|
44
|
+
export declare function logError(msg: any): void;
|
|
45
|
+
export declare function setInputCheckedState(element: HTMLInputElement, isChecked: boolean, linkService: any, fieldValue: string): void;
|
|
46
|
+
export declare function updateInputCheckedAppearance(input: HTMLInputElement, isChecked?: boolean, checkedButtonValue?: string | null): void;
|
|
47
|
+
export declare function updateAnnotationContentPosition(node: AnnotationBase, diffx?: number, diffy?: number): void;
|
|
48
|
+
export declare function clearAnnotationRotate(contentElement: HTMLElement): void;
|
|
49
|
+
export declare function applyAnnotationRotate2(contentElement: HTMLElement, data: AnnotationBase, force?: boolean): void;
|
|
50
|
+
export declare function applyAnnotationRotate(contentElement: HTMLElement, data: AnnotationBase, force?: boolean): void;
|
|
51
|
+
export declare function insertFirst(parent: HTMLElement, insertElem: HTMLElement): void;
|
|
52
|
+
export declare function initAnnotationRotateSupport(container: HTMLElement, data: AnnotationBase, element: HTMLElement | string): void;
|
|
53
|
+
export declare function calcRotationRectangles(node: AnnotationBase, rotationAngle: number, knownInitialRect?: number[]): void;
|
|
54
|
+
export declare function findRotationInit(rect: number[], angleDeg: number): number[];
|
|
55
|
+
export declare function updateRotationInit(annotation: AnnotationBase): void;
|
|
56
|
+
export declare function isAnnotationAllowsSelectTextBehind(annotationElement?: HTMLElement | null): boolean;
|
|
57
|
+
export declare function getStandardizedLanguageKey(lng: string | undefined, fallbackLng?: string | undefined): string;
|
|
58
|
+
export declare function injectSerializableFile(annotation: AnnotationBase, storage: DataStorage, filePrefix?: string): void;
|
|
59
|
+
export declare function generateRichMediaPoster(annotation: AnnotationBase, sharedRef: SharedRef, args?: {
|
|
60
|
+
filePropName?: "posterFile" | "file";
|
|
61
|
+
knownFileId?: string;
|
|
62
|
+
width?: number;
|
|
63
|
+
height?: number;
|
|
64
|
+
foreColor?: string;
|
|
65
|
+
backColor?: string;
|
|
66
|
+
drawBackOnly?: boolean;
|
|
67
|
+
}): Promise<void>;
|
|
68
|
+
export declare function setImageFileFromCanvas(canvas: HTMLCanvasElement, annotation: AnnotationBase, sharedRef: SharedRef, filePropName?: "posterFile" | "file", disposeCanvas?: boolean, knownFileId?: string | undefined): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { findSelfOrAncestor, findElementIndex, getEventTarget, classListContains } from './DomUtils';
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import { WidgetAnnotation, GcProps, LineAnnotation, CircleAnnotation, SquareAnnotation, RedactAnnotation, TextAnnotation, InkAnnotation, PolyLineAnnotation, PolygonAnnotation, FreeTextAnnotation, FileAttachmentAnnotation, SoundAnnotation, ButtonWidget, ChoiceWidget, TextWidget, StampAnnotation, AnnotationBase, SignatureAnnotation, LinkAnnotation, PopupAnnotation, HighlightAnnotation, UnderlineAnnotation, SquigglyAnnotation, StrikeOutAnnotation, AnnotationTypeName } from "./Annotations/AnnotationTypes";
|
|
2
|
+
import { RichMediaAnnotation } from "./Annotations/RichMediaAnnotation";
|
|
3
|
+
import { ValidationCallerType } from "./FormFiller/types";
|
|
4
|
+
import { DocumentListItem, FieldAppearanceRenderingType, JsExecutionConfig, KeyboardShortcutDefinition, OpenParameters, OptionalContentConfig, StampCategory, ViewerFeatureName } from "./Models/ViewerTypes";
|
|
5
|
+
import { LogLevel } from "./SharedDocuments/types";
|
|
6
|
+
import { ISupportApiBase } from "./SupportApi/ISupportApiBase";
|
|
7
|
+
export type ReplyToolSettings = {
|
|
8
|
+
readOnly?: boolean;
|
|
9
|
+
allowAddNote?: boolean;
|
|
10
|
+
allowChangeUserName?: boolean;
|
|
11
|
+
allowAddReply?: boolean;
|
|
12
|
+
allowDelete?: boolean;
|
|
13
|
+
allowStatus?: boolean;
|
|
14
|
+
allowChangeOtherUser?: boolean;
|
|
15
|
+
allowDeleteOtherUser?: boolean;
|
|
16
|
+
allowStatusOtherUser?: boolean;
|
|
17
|
+
allowAddReplyOtherUser?: boolean;
|
|
18
|
+
autoExpandOnCommentAdd?: boolean;
|
|
19
|
+
annotationFocusColor?: string;
|
|
20
|
+
useColoredIcons?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type SupportApiSettings = {
|
|
23
|
+
apiUrl: string;
|
|
24
|
+
implementation: ISupportApiBase;
|
|
25
|
+
token?: string;
|
|
26
|
+
legacyServer?: boolean;
|
|
27
|
+
requestInit?: RequestInit;
|
|
28
|
+
webSocketUrl?: string | false;
|
|
29
|
+
reconnectInterval?: number;
|
|
30
|
+
suppressInfoMessages?: boolean;
|
|
31
|
+
suppressErrorMessages?: boolean;
|
|
32
|
+
docBaseUrl?: string;
|
|
33
|
+
};
|
|
34
|
+
export type TextMarkupContextMenuSettings = {
|
|
35
|
+
colors: {
|
|
36
|
+
value: string;
|
|
37
|
+
displayName: string;
|
|
38
|
+
}[] | {
|
|
39
|
+
"highlight": {
|
|
40
|
+
value: string;
|
|
41
|
+
displayName: string;
|
|
42
|
+
}[];
|
|
43
|
+
"underline": {
|
|
44
|
+
value: string;
|
|
45
|
+
displayName: string;
|
|
46
|
+
}[];
|
|
47
|
+
"strikeout": {
|
|
48
|
+
value: string;
|
|
49
|
+
displayName: string;
|
|
50
|
+
}[];
|
|
51
|
+
"squiggly": {
|
|
52
|
+
value: string;
|
|
53
|
+
displayName: string;
|
|
54
|
+
}[];
|
|
55
|
+
} | false;
|
|
56
|
+
};
|
|
57
|
+
export declare class ViewerOptions {
|
|
58
|
+
constructor(options?: Partial<ViewerOptions>);
|
|
59
|
+
customIcons?: {
|
|
60
|
+
[iconKey: string]: Element | string;
|
|
61
|
+
};
|
|
62
|
+
disableHistory: boolean;
|
|
63
|
+
editorDefaults: {
|
|
64
|
+
fontNames?: {
|
|
65
|
+
value: string;
|
|
66
|
+
name: string;
|
|
67
|
+
}[];
|
|
68
|
+
hideFloatingBar?: boolean;
|
|
69
|
+
rememberLastValues?: boolean;
|
|
70
|
+
lastValueKeys?: string[];
|
|
71
|
+
printResolution?: number;
|
|
72
|
+
resizeHandleSize?: number;
|
|
73
|
+
moveHandleSize?: number;
|
|
74
|
+
dotHandleSize?: number;
|
|
75
|
+
standardFontDataUrl?: string;
|
|
76
|
+
stickyNote: {
|
|
77
|
+
color?: string;
|
|
78
|
+
contents?: string;
|
|
79
|
+
};
|
|
80
|
+
lineAnnotation?: Partial<LineAnnotation>;
|
|
81
|
+
circleAnnotation?: Partial<CircleAnnotation>;
|
|
82
|
+
squareAnnotation?: Partial<SquareAnnotation>;
|
|
83
|
+
linkAnnotation?: Partial<LinkAnnotation>;
|
|
84
|
+
redactAnnotation?: Partial<RedactAnnotation>;
|
|
85
|
+
inkAnnotation?: Partial<InkAnnotation>;
|
|
86
|
+
polyLineAnnotation?: Partial<PolyLineAnnotation>;
|
|
87
|
+
polygonAnnotation?: Partial<PolygonAnnotation>;
|
|
88
|
+
textAnnotation?: Partial<TextAnnotation>;
|
|
89
|
+
freeTextAnnotation?: Partial<FreeTextAnnotation>;
|
|
90
|
+
fileAttachmentAnnotation?: Partial<FileAttachmentAnnotation>;
|
|
91
|
+
richMediaAnnotation?: Partial<RichMediaAnnotation>;
|
|
92
|
+
soundAnnotation?: Partial<SoundAnnotation>;
|
|
93
|
+
stampAnnotation?: Partial<StampAnnotation>;
|
|
94
|
+
highlightAnnotation?: Partial<HighlightAnnotation>;
|
|
95
|
+
underlineAnnotation?: Partial<UnderlineAnnotation>;
|
|
96
|
+
squigglyAnnotation?: Partial<SquigglyAnnotation>;
|
|
97
|
+
strikeOutAnnotation?: Partial<StrikeOutAnnotation>;
|
|
98
|
+
popupAnnotation?: Partial<PopupAnnotation>;
|
|
99
|
+
checkBoxButton?: Partial<ButtonWidget>;
|
|
100
|
+
radioButton?: Partial<ButtonWidget>;
|
|
101
|
+
pushButton?: Partial<ButtonWidget>;
|
|
102
|
+
resetButton?: Partial<ButtonWidget>;
|
|
103
|
+
submitButton?: Partial<ButtonWidget>;
|
|
104
|
+
comboChoice?: Partial<ChoiceWidget>;
|
|
105
|
+
listBoxChoice?: Partial<ChoiceWidget>;
|
|
106
|
+
passwordField?: Partial<TextWidget>;
|
|
107
|
+
textArea?: Partial<TextWidget>;
|
|
108
|
+
textField?: Partial<TextWidget>;
|
|
109
|
+
signatureField?: Partial<SignatureAnnotation>;
|
|
110
|
+
combTextField?: Partial<TextWidget>;
|
|
111
|
+
};
|
|
112
|
+
allowedTools: {
|
|
113
|
+
viewer?: 'all' | 'annotations' | 'fields' | string[];
|
|
114
|
+
annotationEditor?: 'all' | 'annotations' | 'fields' | string[];
|
|
115
|
+
formEditor?: 'all' | 'annotations' | 'fields' | string[];
|
|
116
|
+
};
|
|
117
|
+
fieldsAppearance: {
|
|
118
|
+
radioButton?: FieldAppearanceRenderingType;
|
|
119
|
+
checkBoxButton?: FieldAppearanceRenderingType;
|
|
120
|
+
pushButton?: FieldAppearanceRenderingType;
|
|
121
|
+
};
|
|
122
|
+
lockOpenTimeout: number;
|
|
123
|
+
snapAlignment: true | false | {
|
|
124
|
+
tolerance: number | {
|
|
125
|
+
horizontal: number | false;
|
|
126
|
+
vertical: number | false;
|
|
127
|
+
};
|
|
128
|
+
margin: false | true | number | {
|
|
129
|
+
horizontal: number | boolean;
|
|
130
|
+
vertical: number | boolean;
|
|
131
|
+
};
|
|
132
|
+
center: false | true | {
|
|
133
|
+
horizontal: boolean;
|
|
134
|
+
vertical: boolean;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
useNativeContextMenu: boolean;
|
|
138
|
+
onBeforeOpenContextMenu?: Function;
|
|
139
|
+
onBeforeCloseContextMenu?: Function;
|
|
140
|
+
showContextMenuOnSelection?: "Auto" | "On" | "Off" | boolean;
|
|
141
|
+
textMarkupContextMenu?: TextMarkupContextMenuSettings | false;
|
|
142
|
+
optionalContentConfig?: OptionalContentConfig;
|
|
143
|
+
replyTool?: ReplyToolSettings;
|
|
144
|
+
userName?: string;
|
|
145
|
+
baseUrl?: string;
|
|
146
|
+
buttons?: string[] | "all" | 'none';
|
|
147
|
+
caret?: true | false | {
|
|
148
|
+
caretBlinkTime: number;
|
|
149
|
+
caretStopBlinkTime: number;
|
|
150
|
+
color: string;
|
|
151
|
+
width: number;
|
|
152
|
+
allowForPan: boolean;
|
|
153
|
+
};
|
|
154
|
+
sharing?: {
|
|
155
|
+
disallowUnknownUsers?: boolean;
|
|
156
|
+
knownUserNames?: string[];
|
|
157
|
+
presenceColors?: {
|
|
158
|
+
[userName: string]: string;
|
|
159
|
+
};
|
|
160
|
+
presenceMode: 'on' | 'others' | 'off' | true | false;
|
|
161
|
+
};
|
|
162
|
+
coordinatesPrecision: number;
|
|
163
|
+
coordinatesOrigin?: 'TopLeft' | 'BottomLeft';
|
|
164
|
+
disableFeatures?: ViewerFeatureName[];
|
|
165
|
+
ignoreInitialView?: boolean;
|
|
166
|
+
disablePageLabels?: boolean;
|
|
167
|
+
externalLinkTarget?: 'blank' | 'self' | 'parent' | 'top' | 'none';
|
|
168
|
+
formFiller?: FormFillerSettings;
|
|
169
|
+
jsExecutionConfig?: JsExecutionConfig;
|
|
170
|
+
pdfOrganizer?: PdfOrganizerSettings;
|
|
171
|
+
enableXfa?: boolean;
|
|
172
|
+
secondToolbar?: {
|
|
173
|
+
render?: (toolbarKey: string) => any[] | null;
|
|
174
|
+
};
|
|
175
|
+
signTool?: SignToolSettings;
|
|
176
|
+
language?: 'en' | string;
|
|
177
|
+
maxCanvasPixels?: number;
|
|
178
|
+
userData: any;
|
|
179
|
+
useFloatingSearchBar: boolean;
|
|
180
|
+
useCanvasForSelection: any;
|
|
181
|
+
renderInteractiveForms: boolean;
|
|
182
|
+
keepFileData: boolean;
|
|
183
|
+
renderer: 'canvas' | 'svg';
|
|
184
|
+
friendlyFileName?: string;
|
|
185
|
+
file?: string | any;
|
|
186
|
+
onInitialized?: (viewer: any) => void;
|
|
187
|
+
openParameters?: OpenParameters;
|
|
188
|
+
password: string;
|
|
189
|
+
supportApiPassword?: string;
|
|
190
|
+
restoreViewStateOnLoad?: false | true | {
|
|
191
|
+
trackViewMode?: boolean;
|
|
192
|
+
trackMouseMode?: boolean;
|
|
193
|
+
trackScale?: boolean;
|
|
194
|
+
trackPageRotation?: boolean;
|
|
195
|
+
trackFullScreen?: boolean;
|
|
196
|
+
trackTheme?: boolean;
|
|
197
|
+
trackSidebar?: boolean;
|
|
198
|
+
trackSidebarWidth?: boolean;
|
|
199
|
+
trackFile?: boolean;
|
|
200
|
+
};
|
|
201
|
+
documentListUrl: string | DocumentListItem[];
|
|
202
|
+
workerSrc: string;
|
|
203
|
+
zoomOptions?: {
|
|
204
|
+
minZoom?: number;
|
|
205
|
+
maxZoom?: number;
|
|
206
|
+
dropdownZoomFactorValues?: number[];
|
|
207
|
+
};
|
|
208
|
+
zoomByMouseWheel: {
|
|
209
|
+
always: boolean;
|
|
210
|
+
ctrlKey: boolean;
|
|
211
|
+
metaKey: boolean;
|
|
212
|
+
};
|
|
213
|
+
theme: string | false;
|
|
214
|
+
themes: string[];
|
|
215
|
+
requireTheme?: "light" | "dark" | "viewer" | "light-blue" | "themes/dark-yellow" | "gc-blue" | null;
|
|
216
|
+
hideAnnotationPopups?: AnnotationTypeName | 'All' | 'None' | boolean;
|
|
217
|
+
hideAnnotationTypes?: AnnotationTypeName[] | 'All' | 'None' | boolean;
|
|
218
|
+
cMapUrl?: string;
|
|
219
|
+
cMapPacked?: boolean;
|
|
220
|
+
stamp: {
|
|
221
|
+
dpi?: number;
|
|
222
|
+
stampCategories?: StampCategory[] | boolean;
|
|
223
|
+
selectedImageUrl?: string;
|
|
224
|
+
};
|
|
225
|
+
supportApi?: string | SupportApiSettings;
|
|
226
|
+
logLevel?: LogLevel;
|
|
227
|
+
shortcuts: {
|
|
228
|
+
[keyCode: string]: KeyboardShortcutDefinition | KeyboardShortcutDefinition[];
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
export type RulerLine = {
|
|
232
|
+
color?: string;
|
|
233
|
+
position?: number;
|
|
234
|
+
size?: number;
|
|
235
|
+
type?: 'solid' | 'dashed';
|
|
236
|
+
};
|
|
237
|
+
export type InputFieldMapping = {
|
|
238
|
+
hidden?: boolean;
|
|
239
|
+
nolabel?: boolean;
|
|
240
|
+
orderindex?: number;
|
|
241
|
+
rowcustomcss?: string;
|
|
242
|
+
validator?: (fieldValue: string | string[], field: WidgetAnnotation, args: {
|
|
243
|
+
caller: ValidationCallerType;
|
|
244
|
+
}) => boolean | string;
|
|
245
|
+
};
|
|
246
|
+
export type FormFieldMapping = InputFieldMapping & GcProps;
|
|
247
|
+
export type SignToolSettings = {
|
|
248
|
+
dialogLocation?: 'Center' | 'Top' | 'Right' | 'Bottom' | 'Left' | {
|
|
249
|
+
x: number;
|
|
250
|
+
y: number;
|
|
251
|
+
};
|
|
252
|
+
hideTabs?: boolean;
|
|
253
|
+
hideToolbar?: boolean;
|
|
254
|
+
hideDialogTitle?: boolean;
|
|
255
|
+
hideSaveSignature?: boolean;
|
|
256
|
+
hideDialogFooter?: boolean;
|
|
257
|
+
tabs?: ('Type' | 'Draw' | 'Image')[];
|
|
258
|
+
selectedTab?: 'Type' | 'Draw' | 'Image';
|
|
259
|
+
title?: string;
|
|
260
|
+
penColor?: string;
|
|
261
|
+
penWidth?: number;
|
|
262
|
+
text?: string;
|
|
263
|
+
textColor?: string;
|
|
264
|
+
fontSize?: number;
|
|
265
|
+
fontName?: string;
|
|
266
|
+
fontNames?: string[];
|
|
267
|
+
italic?: boolean;
|
|
268
|
+
bold?: boolean;
|
|
269
|
+
hasImage?: boolean;
|
|
270
|
+
saveSignature?: boolean;
|
|
271
|
+
annotationType?: 'stamp' | 'signature';
|
|
272
|
+
convertToContent?: boolean;
|
|
273
|
+
subject?: string;
|
|
274
|
+
pageIndex?: number;
|
|
275
|
+
canvasSize?: {
|
|
276
|
+
width: number;
|
|
277
|
+
height: number;
|
|
278
|
+
};
|
|
279
|
+
autoResizeCanvas?: boolean;
|
|
280
|
+
location?: 'Center' | 'Top' | 'Right' | 'Bottom' | 'Left' | 'TopLeft' | 'TopRight' | 'BottomRight' | 'BottomLeft' | {
|
|
281
|
+
x: number;
|
|
282
|
+
y: number;
|
|
283
|
+
};
|
|
284
|
+
destinationScale?: number;
|
|
285
|
+
ruler?: {
|
|
286
|
+
Draw: RulerLine[] | false;
|
|
287
|
+
Type: RulerLine[] | false;
|
|
288
|
+
Image: RulerLine[] | false;
|
|
289
|
+
} | false;
|
|
290
|
+
beforeShow?: (signatureDialog: any) => boolean;
|
|
291
|
+
afterShow?: (signatureDialog: any) => void;
|
|
292
|
+
beforeAdd?: (activeTool: any, signatureDialog: any) => boolean;
|
|
293
|
+
afterAdd?: (result: {
|
|
294
|
+
pageIndex: number;
|
|
295
|
+
annotation: AnnotationBase;
|
|
296
|
+
}) => void;
|
|
297
|
+
beforeHide?: (signatureDialog: any) => boolean;
|
|
298
|
+
};
|
|
299
|
+
export type FormFillerSettings = {
|
|
300
|
+
applyAfterFailedValidation?: 'confirm' | 'reject' | 'apply' | Function;
|
|
301
|
+
layout?: 'Auto' | 'OneColumn' | 'TwoColumns';
|
|
302
|
+
title?: string;
|
|
303
|
+
validator?: (fieldValue: string | string[], field: WidgetAnnotation, args: {
|
|
304
|
+
caller: ValidationCallerType;
|
|
305
|
+
}) => boolean | string;
|
|
306
|
+
onInitialize?: (formFiller: any) => void;
|
|
307
|
+
beforeApplyChanges?: (formFiller: any) => boolean;
|
|
308
|
+
beforeFieldChange?: (field: WidgetAnnotation, formFiller: any) => boolean;
|
|
309
|
+
mappings: {
|
|
310
|
+
[fieldName: string]: FormFieldMapping;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
export type PdfOrganizerSettings = {
|
|
314
|
+
layout?: 'Auto' | 'OneColumn' | 'TwoColumns';
|
|
315
|
+
title?: string;
|
|
316
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import GcPdfViewer from "../GcPdfViewer";
|
|
2
|
+
import { XfaForm } from "./XfaForm";
|
|
3
|
+
import { XfaNode } from "./XfaNode";
|
|
4
|
+
export declare class XfaApiImpl {
|
|
5
|
+
viewer: GcPdfViewer;
|
|
6
|
+
private _form;
|
|
7
|
+
constructor(viewer: GcPdfViewer);
|
|
8
|
+
get host(): XfaApiImpl;
|
|
9
|
+
get form(): XfaForm;
|
|
10
|
+
get soPrintFunctions(): any;
|
|
11
|
+
resolveNode(nodeName: string): XfaNode;
|
|
12
|
+
alert(cMsg: string | any, nIcon?: number, nType?: number, cTitle?: string, oDoc?: any, oCheckbox?: any): number;
|
|
13
|
+
messageBox(cMsg: string | any, nIcon?: number, nType?: number, cTitle?: string, oDoc?: any, oCheckbox?: any): number;
|
|
14
|
+
print(): void;
|
|
15
|
+
resetData(): void;
|
|
16
|
+
setFocus(xfaNode: XfaNode): void;
|
|
17
|
+
beep(param: number): void;
|
|
18
|
+
execMenuItem(menuItem: string): Promise<any>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import 'whatwg-fetch';
|
|
2
|
+
export type TypedResponse<T> = {
|
|
3
|
+
ok: true;
|
|
4
|
+
status: number;
|
|
5
|
+
response: T;
|
|
6
|
+
} | {
|
|
7
|
+
ok: false;
|
|
8
|
+
requestError: string;
|
|
9
|
+
};
|
|
10
|
+
export type IHttpClient = {
|
|
11
|
+
getJson: <TR>(uri: string) => Promise<TypedResponse<TR>>;
|
|
12
|
+
postJson: <TR>(uri: string, data: unknown) => Promise<TypedResponse<TR>>;
|
|
13
|
+
getText: (uri: string) => Promise<TypedResponse<string>>;
|
|
14
|
+
};
|
|
15
|
+
export declare function createHttpClient(baseUri: string, authToken: string): IHttpClient;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'core-js/es/set';
|
|
2
|
+
import 'core-js/es/map';
|
|
3
|
+
import 'core-js/web/';
|
|
4
|
+
import 'blob-polyfill';
|
|
5
|
+
import { GcPdfViewer } from './GcPdfViewer';
|
|
6
|
+
export { GcPdfViewer };
|
|
7
|
+
export { ViewerOptions } from './ViewerOptions';
|
|
8
|
+
import { DsPdfViewer } from './DsPdfViewer';
|
|
9
|
+
export { DsPdfViewer };
|
|
10
|
+
export default GcPdfViewer;
|