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 18.1.36-beta to 18.1.42

18

CHANGELOG.md

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

- `#268975` - Exposed the event for notifying page mouse over action.
- `#264529` - Exposed the volume calibrate annotation depth value in annotationSelect event arguments and provide options to edit the depth value.
- `#263297`, `#268677` - Provided the options to enable and disable the tile rendering mode.
- `#263473` - Provided the isLock options to individual annotation object level.
#### Bug Fixes
- `#269004` – The typo errors in PDF Viewer JSON objects has been resolved.
- `#266218`, `#266559` - The import/export form fields are now working properly for the form fields data contains special characters.
- `#268505` - Download is now working properly for different culture settings.
- `#268109` - The updated label content is now preserved properly in the exported annotation data.
## 18.1.36-beta (2020-03-19)
### PDF Viewer
#### New Features
- `#235592` - Provided the support for setting the lower zoomfactor value to the PDF Viewer control.

@@ -11,0 +29,0 @@ - `#259521` - Provided the support for importing the form fields data from JSON object.

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 18.1.36-beta
* version : 18.1.42
* Copyright Syncfusion Inc. 2001 - 2020. 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.4.50",
"_id": "@syncfusion/ej2-pdfviewer@18.1.36",
"_inBundle": false,
"_integrity": "sha512-42UzICtlj0gmpsd/NfQaGBtPiwuW2MH7rqZxlsu+1vTH/nfr3aF6Wd9ToxvVpzdZzwQ5TVA7QQ6zXMyglkArnA==",
"_integrity": "sha512-GDj5QfE3nTLWk0aufL80+Eva3nB3M6s4n86cG+WBlzVeDYRSoLj64B4XhoWgRYjDap2G3UFOeX1rCpz9Cm1fMw==",
"_location": "/@syncfusion/ej2-pdfviewer",

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

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.4.50.tgz",
"_shasum": "3ba845d2b324ac3fa2698a090e27246c82774c99",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-18.1.36.tgz",
"_shasum": "b837252943d5bfe3049ed3cefd92225cd07c8c9c",
"_spec": "@syncfusion/ej2-pdfviewer@*",

@@ -39,15 +39,15 @@ "_where": "/jenkins/workspace/automation_release_18.1.0.1-52JLNOGRCDHXRVQM3W564VPLFCPHWUYDYU3I3DVRABSR7F6AIFYQ/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~18.1.36-beta",
"@syncfusion/ej2-buttons": "~18.1.36-beta",
"@syncfusion/ej2-calendars": "~18.1.36-beta",
"@syncfusion/ej2-data": "~18.1.36-beta",
"@syncfusion/ej2-drawings": "~18.1.36-beta",
"@syncfusion/ej2-dropdowns": "~18.1.36-beta",
"@syncfusion/ej2-inplace-editor": "~18.1.36-beta",
"@syncfusion/ej2-inputs": "~18.1.36-beta",
"@syncfusion/ej2-lists": "~18.1.36-beta",
"@syncfusion/ej2-navigations": "~18.1.36-beta",
"@syncfusion/ej2-notifications": "~18.1.36-beta",
"@syncfusion/ej2-popups": "~18.1.36-beta",
"@syncfusion/ej2-richtexteditor": "~18.1.36-beta"
"@syncfusion/ej2-base": "~18.1.42",
"@syncfusion/ej2-buttons": "~18.1.42",
"@syncfusion/ej2-calendars": "~18.1.42",
"@syncfusion/ej2-data": "~18.1.42",
"@syncfusion/ej2-drawings": "~18.1.42",
"@syncfusion/ej2-dropdowns": "~18.1.42",
"@syncfusion/ej2-inplace-editor": "~18.1.42",
"@syncfusion/ej2-inputs": "~18.1.42",
"@syncfusion/ej2-lists": "~18.1.42",
"@syncfusion/ej2-navigations": "~18.1.42",
"@syncfusion/ej2-notifications": "~18.1.42",
"@syncfusion/ej2-popups": "~18.1.42",
"@syncfusion/ej2-richtexteditor": "~18.1.42"
},

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

"typings": "index.d.ts",
"version": "18.1.36-beta",
"version": "18.1.42",
"sideEffects": false
}

@@ -166,7 +166,3 @@ // tslint:disable-next-line:max-line-length

if (textElement_2 && !isNullOrUndefined(textElement_2.content)) {
var length_1 = findPointsLength([
{ x: obj.bounds.x, y: obj.bounds.y },
{ x: obj.bounds.x + obj.bounds.width, y: obj.bounds.y + obj.bounds.height }
]);
radius = measure.setConversion((length_1 / 2) * measure.pixelToPointFactor, obj);
radius = measure.setConversion((obj.bounds.width / 2) * measure.pixelToPointFactor, obj);
textElement_2.content = radius;

@@ -173,0 +169,0 @@ if (textElement_2.childNodes.length === 2) {

@@ -243,2 +243,3 @@ import { PdfViewer } from '../pdfviewer/pdfviewer';

paste(obj: PdfAnnotationBaseModel[], index: number): void;
private calculateCopyPosition;
/**

@@ -245,0 +246,0 @@ * @private

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

updateFreeTextProperties(annotation: any): void;
private updateAnnotationComments;
/**

@@ -459,2 +460,3 @@ * @private

private checkOverlappedCollections;
private orderTextMarkupBounds;
/**

@@ -461,0 +463,0 @@ * @private

@@ -141,13 +141,31 @@ import { PdfViewer, PdfViewerBase, AnnotationType as AnnotType, ICommentsCollection, IReviewCollection } from '../..';

private selectionEnd;
private isBold;
private isItalic;
private isUnderline;
private isStrikethrough;
private textAlign;
/**
* @private
*/
isBold: boolean;
/**
* @private
*/
isItalic: boolean;
/**
* @private
*/
isUnderline: boolean;
/**
* @private
*/
isStrikethrough: boolean;
/**
* @private
*/
textAlign: string;
private defaultText;
constructor(pdfviewer: PdfViewer, pdfViewerBase: PdfViewerBase);
private updateTextProperties;
/**
* @private
*/
updateTextProperties(): void;
/**
* @private
*/
renderFreeTextAnnotations(shapeAnnotations: any, pageNumber: number, isImportAction?: boolean): void;

@@ -154,0 +172,0 @@ /**

@@ -35,5 +35,17 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';

this.selectionEnd = 0;
/**
* @private
*/
this.isBold = false;
/**
* @private
*/
this.isItalic = false;
/**
* @private
*/
this.isUnderline = false;
/**
* @private
*/
this.isStrikethrough = false;

@@ -67,2 +79,5 @@ this.pdfViewer = pdfviewer;

}
/**
* @private
*/
FreeTextAnnotation.prototype.updateTextProperties = function () {

@@ -472,3 +487,3 @@ this.defautWidth = this.pdfViewer.freeTextSettings.width ? this.pdfViewer.freeTextSettings.width : 151;

shapeAnnotationType: 'FreeText', pageIndex: pageIndex, fontColor: this.fontColor, fontSize: this.fontSize,
fontFamily: this.fontFamily, opacity: this.opacity, comments: [], textAlign: 'Left',
fontFamily: this.fontFamily, opacity: this.opacity, comments: [], textAlign: this.textAlign,
// tslint:disable-next-line:max-line-length

@@ -475,0 +490,0 @@ font: { isBold: this.isBold, isItalic: this.isItalic, isStrikeout: this.isStrikethrough, isUnderline: this.isUnderline },

@@ -26,6 +26,6 @@ import { createElement } from '@syncfusion/ej2-base';

var annotationY = data.annotationLocation;
if (hyperlinks.length > 0 && hyperlinksBounds.length > 0) {
if (hyperlinks && hyperlinks.length > 0 && hyperlinksBounds.length > 0) {
this.renderWebLink(hyperlinks, hyperlinksBounds, pageIndex);
}
if (linkAnnotation.length > 0 && linkPage.length > 0) {
if (linkAnnotation && linkAnnotation.length > 0 && linkPage.length > 0) {
this.renderDocumentLink(linkAnnotation, linkPage, annotationY, pageIndex);

@@ -32,0 +32,0 @@ }

@@ -204,4 +204,7 @@ import { PdfViewer, PdfViewerBase, IRectangle, AnnotationType as AnnotType, ShapeLabelSettingsModel } from '../../index';

measureShapeCount: number;
/**
* @private
*/
volumeDepth: number;
private ratio;
private volumeDepth;
private scaleRatioString;

@@ -208,0 +211,0 @@ private scaleRatioDialog;

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

fontColor: annotation.FontColor, labelBorderColor: annotation.LabelBorderColor, fontSize: annotation.FontSize,
labelBounds: annotation.LabelBounds, annotationSelectorSettings: annotation.AnnotationSelectorSettings
labelBounds: annotation.LabelBounds, annotationSelectorSettings: annotation.AnnotationSelectorSettings,
annotationSettings: annotationObject.annotationSettings
};

@@ -120,0 +121,0 @@ var addedAnnot = this.pdfViewer.add(annot);

import { BaseEventArgs } from '@syncfusion/ej2-base';
import { AnnotationType } from './index';
import { ShapeLabelSettingsModel } from '../pdfviewer-model';
import { ShapeLabelSettingsModel, DocumentTextCollectionSettingsModel } from '../pdfviewer-model';
/**

@@ -567,4 +567,25 @@ * Exports types used by PDF viewer.

annotationBounds: any;
/**
* Defines the mouseover x position with respect to page container.
*/
pageX: number;
/**
* Defines the mouseover y position with respect to page container.
*/
pageY: number;
}
/**
* This event arguments provides the necessary information about page mouseovers event.
*/
export interface PageMouseoverEventArgs extends BaseEventArgs {
/**
* Mouseover x position with respect to page container.
*/
pageX: number;
/**
* Mouseover y position with respect to page container.
*/
pageY: number;
}
/**
* This event arguments provides the necessary information about annotation select event.

@@ -723,3 +744,3 @@ */

*/
documentTextCollection: any;
documentTextCollection: DocumentTextCollectionSettingsModel[][];
}

@@ -726,0 +747,0 @@ /**

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

isMinimumZoom: boolean;
/**
* @private
*/
documentLoaded: boolean;
constructor(viewer: PdfViewer);

@@ -403,0 +407,0 @@ /**

@@ -54,4 +54,2 @@ import { createElement, isNullOrUndefined, Browser } from '@syncfusion/ej2-base';

var textContent = textContents[i];
textContent = textContent.replace(/</g, '&lt;');
textContent = textContent.replace(/>/g, '&gt;');
textDiv.textContent = textContent.replace(/&nbsp;/g, ' ');

@@ -499,3 +497,8 @@ // tslint:disable-next-line

if (_this.pdfViewer.element) {
_this.pdfViewer.element.removeChild(popupElement_1);
try {
_this.pdfViewer.element.removeChild(popupElement_1);
}
catch (error) {
popupElement_1.parentElement.removeChild(popupElement_1);
}
}

@@ -502,0 +505,0 @@ if (_this.pdfViewer.textSearchModule) {

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

if (this.pdfViewerBase.pageCount > 0) {
if ((this.previousZoomFactor !== this.zoomFactor)) {
if ((this.previousZoomFactor !== this.zoomFactor) && !this.pdfViewerBase.documentLoaded) {
if (!this.isPinchZoomed) {

@@ -533,3 +533,3 @@ this.magnifyPages();

var pageDivs = document.querySelectorAll('canvas[id*="' + this.pdfViewer.element.id + '_pageCanvas_"]');
var viewportWidth = 816;
var viewPortWidth = 816;
for (var i = 0; i < pageDivs.length; i++) {

@@ -539,3 +539,3 @@ // tslint:disable-next-line:radix

var pageWidth = this.pdfViewerBase.pageSize[pageNumber].width;
if (viewportWidth < pageWidth) {
if ((viewPortWidth < pageWidth) && this.pdfViewer.tileRenderingSettings.enableTileRendering) {
pageDivs[i].width = pageWidth * this.pdfViewerBase.getZoomFactor();

@@ -542,0 +542,0 @@ // tslint:disable-next-line:max-line-length

@@ -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, ZoomMode, PrintMode } 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, AnnotationMoveEventArgs, AnnotationDoubleClickEventArgs, AnnotationMouseoverEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs, DownloadStartEventArgs, DownloadEndEventArgs, ExtractTextCompletedEventArgs } 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 { ValidateFormFieldsArgs } from './base';import { AddSignatureEventArgs, RemoveSignatureEventArgs, MoveSignatureEventArgs, SignaturePropertiesChangeEventArgs, ResizeSignatureEventArgs } from './base';
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, PrintMode } 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, AnnotationMoveEventArgs, AnnotationDoubleClickEventArgs, AnnotationMouseoverEventArgs, PageMouseoverEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs, DownloadStartEventArgs, DownloadEndEventArgs, ExtractTextCompletedEventArgs } 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 { ValidateFormFieldsArgs } from './base';import { AddSignatureEventArgs, RemoveSignatureEventArgs, MoveSignatureEventArgs, SignaturePropertiesChangeEventArgs, ResizeSignatureEventArgs } from './base';
import {IAjaxHeaders} from "./pdfviewer";

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

/**
* Interface for a class DocumentTextCollectionSettings
*/
export interface DocumentTextCollectionSettingsModel {
/**
* specifies the text data of the document.
*/
textData?: TextDataSettingsModel[];
/**
* specifies the page text of the document.
*/
pageText?: string;
/**
* specifies the page size of the document.
*/
pageSize?: number;
}
/**
* Interface for a class TextDataSettings
*/
export interface TextDataSettingsModel {
/**
* specifies the bounds of the rectangle.
*/
bounds?: RectangleBoundsModel;
/**
* specifies the text of the document.
*/
text?: string;
}
/**
* Interface for a class RectangleBounds
*/
export interface RectangleBoundsModel {
/**
* specifies the size of the rectangle.
*/
size?: number;
/**
* specifies the x co-ordinate of the upper-left corner of the rectangle.
*/
x?: number;
/**
* specifies the y co-ordinate of the upper-left corner of the rectangle.
*/
y?: number;
/**
* specifies the width of the rectangle.
*/
width?: number;
/**
* specifies the height of the rectangle.
*/
height?: number;
/**
* specifies the left value of the rectangle.
*/
left?: number;
/**
* specifies the top value of the rectangle.
*/
top?: number;
/**
* specifies the right of the rectangle.
*/
right?: number;
/**
* specifies the bottom value of the rectangle.
*/
bottom?: number;
/**
* Returns true if height and width of the rectangle is zero.
* @default 'false'
*/
isEmpty?: boolean;
}
/**
* Interface for a class TileRenderingSettings
*/
export interface TileRenderingSettingsModel {
/**
* Enable or disables tile rendering mode in the PDF Viewer.
*/
enableTileRendering?: boolean;
/**
* specifies the tileX count of the render Page.
*/
x?: number;
/**
* specifies the tileY count of the render Page.
*/
y?: number;
}
/**
* Interface for a class PdfViewer

@@ -1860,2 +1979,14 @@ */

/**
* Sets the initial loading zoom value from 10 to 400 in PdfViewer Control.
* @default 0
*/
zoomValue?: number;
/**
* Enable or disable the zoom optimization mode in PDF Viewer.
* @default true
*/
enableZoomOptimization?: boolean;
/**
* Enable or disables the get the document text collections.

@@ -2034,2 +2165,7 @@ * @default false

/**
* Defines the tile rendering settings.
*/
tileRenderingSettings?: TileRenderingSettingsModel;
/**
* Defines the collection of selected items, size and position of the selector

@@ -2196,2 +2332,8 @@ * @default {}

/**
* Triggers when mouse over the page.
* @event
*/
pageMouseover?: EmitType<PageMouseoverEventArgs>;
/**
* Triggers when an imported annotations started in the PDF document.

@@ -2198,0 +2340,0 @@ * @event

import { PdfViewer, PdfViewerBase } from '../index';
import { DocumentTextCollectionSettingsModel } from '../pdfviewer-model';
/**

@@ -47,3 +48,3 @@ * TextSearch module

*/
documentTextCollection: any;
documentTextCollection: DocumentTextCollectionSettingsModel[][];
/**

@@ -50,0 +51,0 @@ * @private

@@ -44,7 +44,2 @@ import { createElement, Browser, isNullOrUndefined } from '@syncfusion/ej2-base';

*/
// tslint:disable-next-line
this.documentTextCollection = [];
/**
* @private
*/
this.isTextRetrieved = false;

@@ -314,5 +309,8 @@ this.isTextSearched = false;

if (this.documentTextCollection.length !== 0) {
if (this.documentTextCollection[pageIndex] && this.documentTextCollection[pageIndex][pageIndex]) {
// tslint:disable-next-line
var documentIndex = this.documentTextCollection[pageIndex][pageIndex];
var pageTextData = documentIndex.pageText ? documentIndex.pageText : documentIndex.PageText;
if (this.documentTextCollection[pageIndex] && documentIndex) {
// tslint:disable-next-line:max-line-length
this.getSearchTextContent(pageIndex, this.searchString, this.documentTextCollection[pageIndex][pageIndex].PageText, textContents, isSinglePageSearch, this.documentTextCollection[pageIndex]);
this.getSearchTextContent(pageIndex, this.searchString, pageTextData, textContents, isSinglePageSearch, this.documentTextCollection[pageIndex]);
}

@@ -795,9 +793,14 @@ }

var proxy = this;
var viewportWidth = 816;
var viewportHeight = this.pdfViewer.element.clientHeight;
var viewPortWidth = 816;
var viewPortHeight = this.pdfViewer.element.clientHeight;
var pageWidth = this.pdfViewerBase.pageSize[pageIndex].width;
var pageHeight = this.pdfViewerBase.pageSize[pageIndex].height;
var tileCount = this.pdfViewerBase.getTileCount(pageWidth);
var noTileX = viewportWidth >= pageWidth ? 1 : tileCount;
var noTileY = viewportWidth >= pageWidth ? 1 : tileCount;
var noTileX = viewPortWidth >= pageWidth ? 1 : tileCount;
var noTileY = viewPortWidth >= pageWidth ? 1 : tileCount;
var tileSettings = this.pdfViewer.tileRenderingSettings;
if (tileSettings.enableTileRendering && tileSettings.x > 0 && tileSettings.y > 0) {
noTileX = viewPortWidth >= pageWidth ? 1 : tileSettings.x;
noTileY = viewPortWidth >= pageWidth ? 1 : tileSettings.y;
}
for (var x = 0; x < noTileX; x++) {

@@ -807,3 +810,4 @@ for (var y = 0; y < noTileY; y++) {

// tslint:disable-next-line:max-line-length
jsonObject = { xCoordinate: 0, yCoordinate: 0, pageNumber: pageIndex, viwePortWidth: viewportWidth, viewportHeight: viewportHeight, documentId: proxy.pdfViewerBase.getDocumentId(), hashId: proxy.pdfViewerBase.hashId, zoomFactor: proxy.pdfViewerBase.getZoomFactor(), tilecount: tileCount, action: 'RenderPdfPages', elementId: proxy.pdfViewer.element.id, uniqueId: proxy.pdfViewerBase.documentId };
jsonObject = { xCoordinate: 0, yCoordinate: 0, pageNumber: pageIndex, viewPortWidth: viewPortWidth, viewPortHeight: viewPortHeight, documentId: proxy.pdfViewerBase.getDocumentId(), hashId: proxy.pdfViewerBase.hashId, zoomFactor: proxy.pdfViewerBase.getZoomFactor(), tilecount: tileCount, action: 'RenderPdfPages', elementId: proxy.pdfViewer.element.id, uniqueId: proxy.pdfViewerBase.documentId,
tileXCount: noTileX, tileYCount: noTileY };
if (this.pdfViewerBase.jsonDocumentId) {

@@ -834,3 +838,3 @@ // tslint:disable-next-line

var pageNumber = (data.pageNumber !== undefined) ? data.pageNumber : pageIndex;
if (viewportWidth >= pageWidth) {
if (viewPortWidth >= pageWidth) {
proxy.pdfViewerBase.storeWinData(data, pageNumber);

@@ -837,0 +841,0 @@ }

@@ -186,2 +186,4 @@ import { PdfViewer, PdfViewerBase, Toolbar } from '../index';

private handleFreeTextEditor;
private updateFontFamily;
private updateFontFamilyIcon;
/**

@@ -188,0 +190,0 @@ * @private

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

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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