Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-pdfviewer

Package Overview
Dependencies
Maintainers
3
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-pdfviewer - npm Package Compare versions

Comparing version 17.3.27 to 17.3.28

15

CHANGELOG.md

@@ -9,2 +9,17 @@ # Changelog

- `#251151`, `#254032` – Improved the annotation selection behavior in code behind.
- `#254776`, `#255304` – Provided the support to set the custom JSON data for AJAX request.
- `#253341` – Provided the support to customize the label content during initial rendering of annotations.
- `#252421` – Provided the support to set the zoom mode value during initial loading.
#### Bug Fixes
- `#253926` – Resolved the memory leak while rendering the PDF documents.
## 17.3.27 (2019-11-12)
### PDF Viewer
#### New Features
- `#251151`, `#254032` – Provided the support for annotation selection in code behind.

@@ -11,0 +26,0 @@ - `#249245` – Provided the support for UI customization of annotation selector border and resizer.

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 17.3.27
* version : 17.3.28
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-pdfviewer@*",
"_id": "@syncfusion/ej2-pdfviewer@17.3.26",
"_id": "@syncfusion/ej2-pdfviewer@17.3.27",
"_inBundle": false,
"_integrity": "sha512-NfK+VU+xPzz0DeBtCHZbUJmNWqFNfp1cjVaLfj33Xhf4Lp06tjVXfEEhoxYEfpPh5pkHoH7ZmzOjugiUxP/dBA==",
"_integrity": "sha512-/lX1Um5FTD9oFzLRgxYaR/YezcsuQcSllqw9P3C9+EgZuj3X5V+D/Qcvftl8edNo38JFBkS7VIXczHFH2NY18A==",
"_location": "/@syncfusion/ej2-pdfviewer",

@@ -26,4 +26,4 @@ "_phantomChildren": {},

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.3.26.tgz",
"_shasum": "e6fe7b4f5a4cb73aae5fd866b955936bac81aaa8",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.3.27.tgz",
"_shasum": "ff92390b5abbccd9c72445d7edff8a2dde902bba",
"_spec": "@syncfusion/ej2-pdfviewer@*",

@@ -41,8 +41,8 @@ "_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included",

"@syncfusion/ej2-buttons": "~17.3.27",
"@syncfusion/ej2-calendars": "~17.3.27",
"@syncfusion/ej2-calendars": "~17.3.28",
"@syncfusion/ej2-data": "~17.3.27",
"@syncfusion/ej2-drawings": "~17.3.27",
"@syncfusion/ej2-dropdowns": "~17.3.27",
"@syncfusion/ej2-dropdowns": "~17.3.28",
"@syncfusion/ej2-inplace-editor": "~17.3.27",
"@syncfusion/ej2-inputs": "~17.3.27",
"@syncfusion/ej2-inputs": "~17.3.28",
"@syncfusion/ej2-lists": "~17.3.27",

@@ -52,3 +52,3 @@ "@syncfusion/ej2-navigations": "~17.3.27",

"@syncfusion/ej2-popups": "~17.3.27",
"@syncfusion/ej2-richtexteditor": "~17.3.27"
"@syncfusion/ej2-richtexteditor": "~17.3.28"
},

@@ -79,4 +79,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "17.3.27",
"version": "17.3.28",
"sideEffects": false
}

@@ -122,2 +122,15 @@ import { PdfViewer, PdfViewerBase, AnnotationType, TextMarkupAnnotation, ShapeAnnotation, StampAnnotation, StickyNotesAnnotation, IPopupAnnotation, MeasureAnnotation } from '../index';

*/
selectAnnotationId: string;
/**
* @private
*/
isAnnotationSelected: boolean;
/**
* @private
*/
annotationPageIndex: number;
private previousIndex;
/**
* @private
*/
constructor(pdfViewer: PdfViewer, viewerBase: PdfViewerBase);

@@ -135,6 +148,10 @@ /**

*/
storeAnnotationCollections(annotation: any): void;
storeAnnotationCollections(annotation: any, pageNumber: number): void;
/**
* @private
*/
checkAnnotationCollection(annotation: any): any;
/**
* @private
*/
updateAnnotationCollection(annotation: any): void;

@@ -147,4 +164,10 @@ /**

selectAnnotation(annotationId: string | object): void;
/**
* @private
*/
selectAnnotationFromCodeBehind(): void;
private findRenderPageList;
private getPageNumberFromAnnotationCollections;
private getAnnotationsFromAnnotationCollections;
private getTextMarkupAnnotations;
/**

@@ -151,0 +174,0 @@ * @private

@@ -201,2 +201,6 @@ import { PdfViewer, PdfViewerBase, AnnotationType as AnnotType, ICommentsCollection, IReviewCollection } from '../..';

saveImportedFreeTextAnnotations(shapeAnnotations: any, pageNumber: number): void;
/**
* @private
*/
updateFreeTextAnnotationCollections(shapeAnnotations: any, pageNumber: number): void;
}

@@ -163,3 +163,3 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';

bottom: annotation.Bounds.Bottom
}, annotName: annotation.Name, shapeAnnotationType: 'FreeText',
}, annotName: annotation.AnnotName, shapeAnnotationType: 'FreeText',
// tslint:disable-next-line

@@ -175,3 +175,3 @@ pageIndex: pageNumber, opacity: annotation.Opacity, fontColor: annotation.FontColor, fontSize: annotation.FontSize,

if (isImportAction) {
annot.id = annotation.Name;
annot.id = annotation.AnnotName;
}

@@ -734,3 +734,3 @@ var addedAnnot = this.pdfViewer.add(annot);

bottom: annotation.Bounds.Bottom
}, annotName: annotation.Name, shapeAnnotationType: 'FreeText',
}, annotName: annotation.AnnotName, shapeAnnotationType: 'FreeText',
// tslint:disable-next-line

@@ -746,4 +746,41 @@ pageIndex: pageNumber, opacity: annotation.Opacity, fontColor: annotation.FontColor, fontSize: annotation.FontSize,

};
/**
* @private
*/
// tslint:disable-next-line
FreeTextAnnotation.prototype.updateFreeTextAnnotationCollections = function (shapeAnnotations, pageNumber) {
// tslint:disable-next-line
var annotation = shapeAnnotations;
if (annotation.AnnotType) {
var vertexPoints = null;
if (annotation.VertexPoints) {
vertexPoints = [];
for (var j = 0; j < annotation.VertexPoints.length; j++) {
var point = { x: annotation.VertexPoints[j].X, y: annotation.VertexPoints[j].Y };
vertexPoints.push(point);
}
}
// tslint:disable-next-line
var annot = void 0;
annot = {
author: annotation.Author, modifiedDate: annotation.ModifiedDate, subject: annotation.Subject, id: 'freetext',
rotateAngle: annotation.Rotate, dynamicText: annotation.MarkupText, strokeColor: annotation.StrokeColor,
thickness: annotation.Thickness, fillColor: annotation.FillColor,
bounds: {
x: annotation.Bounds.X, y: annotation.Bounds.Y, left: annotation.Bounds.X, top: annotation.Bounds.Y,
width: annotation.Bounds.Width, height: annotation.Bounds.Height, right: annotation.Bounds.Right,
bottom: annotation.Bounds.Bottom
}, annotationId: annotation.AnnotName, shapeAnnotationType: 'FreeText',
// tslint:disable-next-line
pageIndex: pageNumber, opacity: annotation.Opacity, fontColor: annotation.FontColor, fontSize: annotation.FontSize,
fontFamily: annotation.FontFamily, notes: annotation.MarkupText,
// tslint:disable-next-line
comments: this.pdfViewer.annotationModule.getAnnotationComments(annotation.Comments, annotation, annotation.Author), review: { state: annotation.State, stateModel: annotation.StateModel, modifiedDate: annotation.ModifiedDate, author: annotation.Author },
font: { isBold: annotation.Font.Bold, isItalic: annotation.Font.Italic, isStrikeout: annotation.Font.Strikeout, isUnderline: annotation.Font.Underline }, pageNumber: pageNumber
};
return annot;
}
};
return FreeTextAnnotation;
}());
export { FreeTextAnnotation };

@@ -286,2 +286,6 @@ import { PdfViewer, PdfViewerBase, IRectangle, AnnotationType as AnnotType } from '../../index';

saveImportedMeasureAnnotations(annotation: any, pageNumber: number): any;
/**
* @private
*/
updateMeasureAnnotationCollections(annotation: any, pageNumber: number): any;
}

@@ -190,2 +190,6 @@ import { PdfViewer, PdfViewerBase, IRectangle, ICommentsCollection, IReviewCollection, AnnotationType as AnnotType, LineHeadStyle } from '../../index';

saveImportedShapeAnnotations(annotation: any, pageNumber: number): any;
/**
* @private
*/
updateShapeAnnotationCollections(annotation: any, pageNumber: number): any;
}

@@ -582,4 +582,43 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';

};
/**
* @private
*/
// tslint:disable-next-line
ShapeAnnotation.prototype.updateShapeAnnotationCollections = function (annotation, pageNumber) {
// tslint:disable-next-line
var annotationObject = null;
var vertexPoints = null;
if (annotation.VertexPoints) {
vertexPoints = [];
for (var j = 0; j < annotation.VertexPoints.length; j++) {
var point = { x: annotation.VertexPoints[j].X, y: annotation.VertexPoints[j].Y };
vertexPoints.push(point);
}
}
if (annotation.Bounds && annotation.EnableShapeLabel === true) {
// tslint:disable-next-line:max-line-length
annotation.LabelBounds = this.pdfViewer.annotationModule.inputElementModule.calculateLabelBoundsFromLoadedDocument(annotation.Bounds);
// tslint:disable-next-line:max-line-length
annotation.LabelBorderColor = annotation.LabelBorderColor ? annotation.LabelBorderColor : annotation.StrokeColor;
annotation.FontColor = annotation.FontColor ? annotation.FontColor : annotation.StrokeColor;
annotation.LabelFillColor = annotation.LabelFillColor ? annotation.LabelFillColor : annotation.FillColor;
annotation.FontSize = annotation.FontSize ? annotation.FontSize : 16;
}
// tslint:disable-next-line:max-line-length
annotationObject = {
id: 'shape', shapeAnnotationType: annotation.ShapeAnnotationType, author: annotation.Author, modifiedDate: annotation.ModifiedDate, subject: annotation.Subject,
// tslint:disable-next-line:max-line-length
note: annotation.Note, strokeColor: annotation.StrokeColor, fillColor: annotation.FillColor, opacity: annotation.Opacity, thickness: annotation.Thickness, rectangleDifference: annotation.RectangleDifference,
borderStyle: annotation.BorderStyle, borderDashArray: annotation.BorderDashArray, rotateAngle: annotation.RotateAngle, isCloudShape: annotation.IsCloudShape,
// tslint:disable-next-line:max-line-length
cloudIntensity: annotation.CloudIntensity, vertexPoints: vertexPoints, lineHeadStart: annotation.LineHeadStart, lineHeadEnd: annotation.LineHeadEnd, isLocked: annotation.IsLocked, comments: this.pdfViewer.annotationModule.getAnnotationComments(annotation.Comments, annotation, annotation.Author), review: { state: annotation.State, stateModel: annotation.StateModel, modifiedDate: annotation.ModifiedDate, author: annotation.Author }, annotationId: annotation.AnnotName,
bounds: { left: annotation.Bounds.X, top: annotation.Bounds.Y, width: annotation.Bounds.Width, height: annotation.Bounds.Height, right: annotation.Bounds.Right, bottom: annotation.Bounds.Bottom },
labelContent: annotation.LabelContent, enableShapeLabel: annotation.EnableShapeLabel, labelFillColor: annotation.LabelFillColor,
labelBorderColor: annotation.LabelBorderColor, fontColor: annotation.FontColor, fontSize: annotation.FontSize,
labelBounds: annotation.LabelBounds, pageNumber: pageNumber
};
return annotationObject;
};
return ShapeAnnotation;
}());
export { ShapeAnnotation };

@@ -123,3 +123,7 @@ import { PdfAnnotationBase } from '../../diagram/pdf-annotation';

saveImportedStampAnnotations(annotation: any, pageNumber: number): any;
/**
* @private
*/
updateStampAnnotationCollections(annotation: any, pageNumber: number): any;
}
export {};

@@ -104,5 +104,10 @@ import { PdfViewerBase, PdfViewer } from '../index';

createRequestForComments(): void;
private renderAnnotationCollections;
/**
* @private
*/
updateCollections(annotation: any): void;
/**
* @private
*/
renderAnnotationComments(data: any, pageIndex: number): void;

@@ -231,2 +236,6 @@ /**

*/
updateStickyNotesAnnotationCollections(annotation: any, pageNumber: number): any;
/**
* @private
*/
clear(): void;

@@ -233,0 +242,0 @@ /**

@@ -251,3 +251,7 @@ import { PdfViewer, PdfViewerBase, IRectangle, ICommentsCollection, IReviewCollection } from '../index';

*/
updateTextMarkupAnnotationCollections(annotation: any, pageNumber: number): any;
/**
* @private
*/
clear(): void;
}

@@ -49,2 +49,3 @@ import { PdfViewer } from '../index';

private sendRequest;
private addExtraData;
private stateChange;

@@ -51,0 +52,0 @@ private error;

@@ -51,2 +51,3 @@ /**

this.httpRequest.setRequestHeader('Content-Type', this.contentType);
jsonObj = this.addExtraData(jsonObj);
this.setCustomAjaxHeaders();

@@ -58,2 +59,10 @@ if (this.responseType !== null) {

};
AjaxHandler.prototype.addExtraData = function (jsonObject) {
this.pdfViewer.viewerBase.ajaxData = '';
this.pdfViewer.fireAjaxRequestInitiate(jsonObject);
if (this.pdfViewer.viewerBase.ajaxData && this.pdfViewer.viewerBase.ajaxData !== '') {
jsonObject = this.pdfViewer.viewerBase.ajaxData;
}
return jsonObject;
};
AjaxHandler.prototype.stateChange = function (proxy) {

@@ -60,0 +69,0 @@ var status = proxy.httpRequest.status;

@@ -389,1 +389,10 @@ import { BaseEventArgs } from '@syncfusion/ej2-base';

}
/**
* This event arguments provides the necessary information about data.
*/
export interface AjaxRequestInitiateEventArgs extends BaseEventArgs {
/**
* Specified the data to be sent in to server.
*/
JsonData: any;
}

@@ -62,3 +62,7 @@ import { createElement, Browser } from '@syncfusion/ej2-base';

var annotationData = atob(importFile);
_this.pdfViewerBase.importAnnotations(JSON.parse(annotationData));
if (annotationData) {
// tslint:disable-next-line
var jsonData = JSON.parse(annotationData);
_this.pdfViewerBase.importAnnotations(jsonData);
}
}

@@ -65,0 +69,0 @@ };

@@ -329,2 +329,18 @@ import { PdfViewer, TextLayer, ContextMenu, Signature } from '../index';

currentSignatureAnnot: any;
/**
* @private
*/
isInitialPageMode: boolean;
/**
* @private
*/
ajaxData: any;
/**
* @private
*/
documentAnnotationCollections: any;
/**
* @private
*/
annotationRenderredList: number[];
constructor(viewer: PdfViewer);

@@ -458,3 +474,3 @@ /**

*/
onWindowResize: () => void;
onWindowResize: (event?: MouseEvent) => void;
/**

@@ -514,2 +530,6 @@ * @private

private onPageRender;
/**
* @private
*/
renderAnnotations(pageIndex: number): void;
private renderTextContent;

@@ -715,2 +735,3 @@ private renderPageContainer;

private checkAnnotationCommentsCollections;
private selectAnnotationCollections;
private saveImportedAnnotations;

@@ -717,0 +738,0 @@ private savePageAnnotations;

@@ -58,1 +58,5 @@ /**

}
/**
* set the ZoomMode on rendering
*/
export declare type ZoomMode = 'Default' | 'FitToWidth' | 'FitToPage';

@@ -438,6 +438,14 @@ import { Browser } from '@syncfusion/ej2-base';

Magnification.prototype.rerenderMagnifiedPages = function () {
if (this.pdfViewerBase.isInitialLoaded || this.pdfViewerBase.isDocumentLoaded) {
if ((this.pdfViewerBase.isInitialLoaded || this.pdfViewerBase.isDocumentLoaded) && !this.pdfViewerBase.isInitialPageMode) {
this.renderInSeparateThread(this.reRenderPageNumber);
this.isPagesZoomed = false;
}
else if (this.pdfViewerBase.isInitialPageMode) {
this.pageRerenderCount = 0;
this.pdfViewerBase.renderedPagesList = [];
this.pdfViewerBase.pinchZoomStorage = [];
this.isMagnified = false;
this.pdfViewerBase.pageViewScrollChanged(this.reRenderPageNumber);
this.pdfViewerBase.isInitialPageMode = false;
}
};

@@ -444,0 +452,0 @@ Magnification.prototype.renderInSeparateThread = function (pageNumber) {

@@ -1,2 +0,2 @@

import { Component, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, L10n, Collection, Complex } from '@syncfusion/ej2-base';import { ModuleDeclaration, isNullOrUndefined, Property, Event, EmitType } from '@syncfusion/ej2-base';import { PdfViewerBase } from './index';import { Navigation } from './index';import { Magnification } from './index';import { Toolbar } from './index';import { ToolbarItem } from './index';import { LinkTarget, InteractionMode, AnnotationType, AnnotationToolbarItem, LineHeadStyle, ContextMenuAction, FontStyle, TextAlignment, AnnotationResizerShape, AnnotationResizerLocation } from './base/types';import { Annotation } from './index';import { LinkAnnotation } from './index';import { ThumbnailView } from './index';import { BookmarkView } from './index';import { TextSelection } from './index';import { TextSearch } from './index';import { FormFields } from './index';import { Print, CalibrationUnit } from './index';import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs, HyperlinkMouseOverArgs, ImportStartEventArgs, ImportSuccessEventArgs, ImportFailureEventArgs, ExportStartEventArgs, ExportSuccessEventArgs, ExportFailureEventArgs } from './index';import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs, AnnotationResizeEventArgs, AnnotationSelectEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs } from './index';import { PdfAnnotationBase, ZOrderPageTable } from '../diagram/pdf-annotation';import { PdfAnnotationBaseModel } from '../diagram/pdf-annotation-model';import { Drawing, ClipBoardObject } from '../diagram/drawing';import { Selector } from '../diagram/selector';import { SelectorModel } from '../diagram/selector-model';import { PointModel, IElement, Rect } from '@syncfusion/ej2-drawings';import { renderAdornerLayer } from '../diagram/dom-util';import { ThumbnailClickEventArgs } from './index';
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, L10n, Collection, Complex } from '@syncfusion/ej2-base';import { ModuleDeclaration, isNullOrUndefined, Property, Event, EmitType } from '@syncfusion/ej2-base';import { PdfViewerBase } from './index';import { Navigation } from './index';import { Magnification } from './index';import { Toolbar } from './index';import { ToolbarItem } from './index';import { LinkTarget, InteractionMode, AnnotationType, AnnotationToolbarItem, LineHeadStyle, ContextMenuAction, FontStyle, TextAlignment, AnnotationResizerShape, AnnotationResizerLocation, ZoomMode } from './base/types';import { Annotation } from './index';import { LinkAnnotation } from './index';import { ThumbnailView } from './index';import { BookmarkView } from './index';import { TextSelection } from './index';import { TextSearch } from './index';import { FormFields } from './index';import { Print, CalibrationUnit } from './index';import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs, HyperlinkMouseOverArgs, ImportStartEventArgs, ImportSuccessEventArgs, ImportFailureEventArgs, ExportStartEventArgs, ExportSuccessEventArgs, ExportFailureEventArgs, AjaxRequestInitiateEventArgs } from './index';import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs, AnnotationResizeEventArgs, AnnotationSelectEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs } from './index';import { PdfAnnotationBase, ZOrderPageTable } from '../diagram/pdf-annotation';import { PdfAnnotationBaseModel } from '../diagram/pdf-annotation-model';import { Drawing, ClipBoardObject } from '../diagram/drawing';import { Selector } from '../diagram/selector';import { SelectorModel } from '../diagram/selector-model';import { PointModel, IElement, Rect } from '@syncfusion/ej2-drawings';import { renderAdornerLayer } from '../diagram/dom-util';import { ThumbnailClickEventArgs } from './index';
import {IAjaxHeaders} from "./pdfviewer";

@@ -454,2 +454,7 @@ import {ComponentModel} from '@syncfusion/ej2-base';

/**
* specifies the default content of the label.
*/
labelContent?: string;
}

@@ -1244,2 +1249,8 @@

/**
* Specifies the rendering mode in the PDF Viewer.
* @default Default
*/
zoomMode?: ZoomMode;
/**
* Defines the settings of the PdfViewer toolbar.

@@ -1568,18 +1579,15 @@ */

/**
* Triggers when the property of the annotation is changed in the page of the PDF document.
* Triggers before the data send in to the server.
* @event
* @private
*/
annotations?: PdfAnnotationBaseModel[];
ajaxRequestInitiate?: EmitType<AjaxRequestInitiateEventArgs>;
/**
* tool denots the current tool
* @event
* PDF document annotation collection.
* @private
*/
tool?: string;
annotations?: PdfAnnotationBaseModel[];
/**
* the objects for drawing tool
* @event
* store the drawing objects.
* @private

@@ -1586,0 +1594,0 @@ */

@@ -11,3 +11,3 @@ import { Component, INotifyPropertyChanged, ChildProperty, L10n } from '@syncfusion/ej2-base';

import { ToolbarItem } from './index';
import { LinkTarget, InteractionMode, AnnotationType, AnnotationToolbarItem, LineHeadStyle, ContextMenuAction, FontStyle, TextAlignment, AnnotationResizerShape, AnnotationResizerLocation } from './base/types';
import { LinkTarget, InteractionMode, AnnotationType, AnnotationToolbarItem, LineHeadStyle, ContextMenuAction, FontStyle, TextAlignment, AnnotationResizerShape, AnnotationResizerLocation, ZoomMode } from './base/types';
import { Annotation } from './index';

@@ -21,3 +21,3 @@ import { LinkAnnotation } from './index';

import { Print, CalibrationUnit } from './index';
import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs, HyperlinkMouseOverArgs, ImportStartEventArgs, ImportSuccessEventArgs, ImportFailureEventArgs, ExportStartEventArgs, ExportSuccessEventArgs, ExportFailureEventArgs } from './index';
import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs, HyperlinkMouseOverArgs, ImportStartEventArgs, ImportSuccessEventArgs, ImportFailureEventArgs, ExportStartEventArgs, ExportSuccessEventArgs, ExportFailureEventArgs, AjaxRequestInitiateEventArgs } from './index';
import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs, AnnotationResizeEventArgs, AnnotationSelectEventArgs } from './index';

@@ -390,2 +390,6 @@ import { TextSelectionStartEventArgs, TextSelectionEndEventArgs } from './index';

fontFamily: string;
/**
* specifies the default content of the label.
*/
labelContent: string;
}

@@ -1063,2 +1067,7 @@ /**

/**
* Specifies the rendering mode in the PDF Viewer.
* @default Default
*/
zoomMode: ZoomMode;
/**
* Defines the settings of the PdfViewer toolbar.

@@ -1446,7 +1455,8 @@ */

/**
* @private
* Triggers before the data send in to the server.
* @event
*/
ajaxRequestInitiate: EmitType<AjaxRequestInitiateEventArgs>;
/**
* Triggers when the property of the annotation is changed in the page of the PDF document.
* @event
* PDF document annotation collection.
* @private

@@ -1458,16 +1468,7 @@ */

*/
/**
* tool denots the current tool
* @event
* @private
*/
tool: string;
/**
* store the drawing objects.
* @private
*/
/**
* the objects for drawing tool
* @event
* @private
*/
drawingObject: PdfAnnotationBaseModel;

@@ -1482,2 +1483,7 @@ constructor(options?: PdfViewerModel, element?: string | HTMLElement);

getLocaleConstants(): Object;
/**
* To modify the Json Data in ajax request.
* @returns void
*/
setJsonData(jsonData: any): void;
onPropertyChanged(newProp: PdfViewerModel, oldProp: PdfViewerModel): void;

@@ -1568,2 +1574,6 @@ getPersistData(): string;

*/
fireAjaxRequestInitiate(JsonData: any): void;
/**
* @private
*/
fireDocumentLoad(): void;

@@ -1570,0 +1580,0 @@ /**

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc