@syncfusion/ej2-pdfviewer
Advanced tools
Comparing version 18.2.54 to 18.2.56
@@ -5,2 +5,12 @@ # Changelog | ||
### PDF Viewer | ||
#### New Features | ||
- `#289233` - Provided the support to add expiration timing for cache. | ||
#### Bug Fixes | ||
- `#289417` - Now, the annotation toolbar position is maintained correctly. | ||
## 18.2.47 (2020-07-28) | ||
@@ -7,0 +17,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 18.2.54 | ||
* version : 18.2.56 | ||
* 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@18.2.47", | ||
"_id": "@syncfusion/ej2-pdfviewer@18.2.54", | ||
"_inBundle": false, | ||
"_integrity": "sha512-xWD/BpKuHUg3MBihZTkSw0zDjPxF9jkwTWLrG52VFqwtrfgvdmvqNIYLZOSd9PEeEvTSbUxj84aQDTgcz/pUIw==", | ||
"_integrity": "sha512-GQ8wqi8alKjLs4KrQ4rSmt37E4yWe2t/IxbEyUYEOlcRAaseFgXItyMl+G5biVG2hWw/0mzFVADlgtEzjWXGTw==", | ||
"_location": "/@syncfusion/ej2-pdfviewer", | ||
@@ -26,4 +26,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-18.2.47.tgz", | ||
"_shasum": "3f0cb207c6a69e68269f673dd1b050918fd61552", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-18.2.54.tgz", | ||
"_shasum": "c2a9f8cd16a5bb839fd47592ce76188a09839163", | ||
"_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.2.54", | ||
"@syncfusion/ej2-base": "~18.2.55", | ||
"@syncfusion/ej2-buttons": "~18.2.54", | ||
"@syncfusion/ej2-calendars": "~18.2.54", | ||
"@syncfusion/ej2-calendars": "~18.2.56", | ||
"@syncfusion/ej2-data": "~18.2.54", | ||
"@syncfusion/ej2-drawings": "~18.2.54", | ||
"@syncfusion/ej2-dropdowns": "~18.2.54", | ||
"@syncfusion/ej2-dropdowns": "~18.2.56", | ||
"@syncfusion/ej2-inplace-editor": "~18.2.54", | ||
"@syncfusion/ej2-inputs": "~18.2.54", | ||
"@syncfusion/ej2-inputs": "~18.2.56", | ||
"@syncfusion/ej2-lists": "~18.2.54", | ||
"@syncfusion/ej2-navigations": "~18.2.54", | ||
"@syncfusion/ej2-navigations": "~18.2.55", | ||
"@syncfusion/ej2-notifications": "~18.2.54", | ||
"@syncfusion/ej2-popups": "~18.2.54", | ||
"@syncfusion/ej2-richtexteditor": "~18.2.54" | ||
"@syncfusion/ej2-richtexteditor": "~18.2.56" | ||
}, | ||
@@ -78,4 +78,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "18.2.54", | ||
"version": "18.2.56", | ||
"sideEffects": false | ||
} |
@@ -501,2 +501,8 @@ import { PdfViewer, PdfViewerBase, AnnotationType, TextMarkupAnnotation, ShapeAnnotation, StampAnnotation, StickyNotesAnnotation, IPopupAnnotation, MeasureAnnotation, InkAnnotation } from '../index'; | ||
private updateAnnotationAllowedInteractions; | ||
private checkIsLockSettings; | ||
private checkLockSettings; | ||
/** | ||
* @private | ||
*/ | ||
restrictContextMenu(): boolean; | ||
private checkAllowedInteractionSettings; | ||
@@ -503,0 +509,0 @@ /** |
@@ -85,3 +85,3 @@ import { PdfAnnotationBase } from '../drawing/pdf-annotation'; | ||
*/ | ||
createCustomStampAnnotation(imageSource: any): void; | ||
createCustomStampAnnotation(imageSource: any, annotName?: string): void; | ||
/** | ||
@@ -106,3 +106,3 @@ * @private | ||
*/ | ||
renderCustomImage(position: any, pageIndex: any, image: any, currentDate: any, modifiedDate: any, RotationAngle: any, opacity: any, canvas?: any, isExistingStamp?: boolean, annotation?: any): void; | ||
renderCustomImage(position: any, pageIndex: any, image: any, currentDate: any, modifiedDate: any, RotationAngle: any, opacity: any, canvas?: any, isExistingStamp?: boolean, annotation?: any, annotName?: string): void; | ||
private retrieveRotationAngle; | ||
@@ -109,0 +109,0 @@ /** |
@@ -90,3 +90,5 @@ import { createElement, Browser } from '@syncfusion/ej2-base'; | ||
this.contextMenuObj.enableItems([this.pdfViewer.localeObj.getConstant('Cut'), this.pdfViewer.localeObj.getConstant('Copy'), this.pdfViewer.localeObj.getConstant('Paste'), this.pdfViewer.localeObj.getConstant('Delete Context')], true); | ||
this.pdfViewer.annotationModule.checkContextMenuDeleteItem(this.contextMenuObj); | ||
if (this.pdfViewer.annotationModule) { | ||
this.pdfViewer.annotationModule.checkContextMenuDeleteItem(this.contextMenuObj); | ||
} | ||
if (this.pdfViewer.textSelectionModule || this.pdfViewerBase.isShapeBasedAnnotationsEnabled()) { | ||
@@ -192,2 +194,5 @@ if (args.event) { | ||
} | ||
if (this.pdfViewer.annotationModule && this.pdfViewer.annotationModule.restrictContextMenu()) { | ||
args.cancel = true; | ||
} | ||
}; | ||
@@ -194,0 +199,0 @@ ContextMenu.prototype.contextMenuItems = function (args) { |
@@ -687,2 +687,15 @@ import { BaseEventArgs } from '@syncfusion/ej2-base'; | ||
/** | ||
* This event arguments provides the necessary information about bookmark click event. | ||
*/ | ||
export interface BookmarkClickEventArgs extends BaseEventArgs { | ||
/** | ||
* Page number of the bookmark in which click action is performed | ||
*/ | ||
pageNumber: number; | ||
/** | ||
* Position of the bookmark content | ||
*/ | ||
position: number; | ||
} | ||
/** | ||
* This event arguments provide the necessary information about text selection start event. | ||
@@ -689,0 +702,0 @@ */ |
@@ -421,2 +421,3 @@ import { PdfViewer, TextLayer, ContextMenu, Signature } from '../index'; | ||
private requestLists; | ||
private tilerequestLists; | ||
/** | ||
@@ -423,0 +424,0 @@ * @private |
@@ -236,2 +236,3 @@ import { createElement, Browser } from '@syncfusion/ej2-base'; | ||
this.goToBookmark(pageIndex, Y); | ||
this.pdfViewer.fireBookmarkClick(pageIndex + 1, Y); | ||
}; | ||
@@ -238,0 +239,0 @@ /** |
@@ -287,3 +287,2 @@ // tslint:disable-next-line:max-line-length | ||
textele.setOffsetWithRespectToBounds(.5, .5, 'Absolute'); | ||
textele.rotateAngle = angle; | ||
// tslint:disable-next-line | ||
@@ -290,0 +289,0 @@ textele.offsetX; |
@@ -24,2 +24,5 @@ // tslint:disable-next-line:max-line-length | ||
element.style.strokeWidth = obj.thickness; | ||
if (obj.shapeAnnotationType === 'Image') { | ||
element.style.strokeWidth = 0; | ||
} | ||
element.style.strokeDashArray = obj.borderDashArray; | ||
@@ -26,0 +29,0 @@ element.style.opacity = obj.opacity; |
@@ -599,2 +599,7 @@ import { Browser } from '@syncfusion/ej2-base'; | ||
break; | ||
case 'ink': | ||
if (currentData.Value && currentData.Value !== '') { | ||
this.renderExistingAnnnot(currentData, index, printContainer); | ||
} | ||
break; | ||
} | ||
@@ -970,3 +975,3 @@ return currentField; | ||
var bounds = void 0; | ||
if (data.Bounds) { | ||
if (data.Bounds && data.Name !== 'ink') { | ||
bounds = data.Bounds; | ||
@@ -990,2 +995,3 @@ } | ||
this.pdfViewer.add(annot); | ||
data.Bounds = annot.bounds; | ||
// tslint:disable-next-line | ||
@@ -992,0 +998,0 @@ var canvass = document.getElementById(this.pdfViewer.element.id + '_annotationCanvas_' + currentPage); |
@@ -547,5 +547,12 @@ import { Browser } from '@syncfusion/ej2-base'; | ||
if ((viewPortWidth < pageWidth) && this.pdfViewer.tileRenderingSettings.enableTileRendering) { | ||
pageDivs[i].width = pageWidth * this.pdfViewerBase.getZoomFactor(); | ||
// tslint:disable-next-line:max-line-length | ||
pageDivs[i].height = this.pdfViewerBase.pageSize[pageNumber].height * this.pdfViewerBase.getZoomFactor(); | ||
if (this.pdfViewer.restrictZoomRequest) { | ||
pageDivs[i].style.width = pageWidth * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
// tslint:disable-next-line:max-line-length | ||
pageDivs[i].style.height = this.pdfViewerBase.pageSize[pageNumber].height * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
} | ||
else { | ||
pageDivs[i].width = pageWidth * this.pdfViewerBase.getZoomFactor(); | ||
// tslint:disable-next-line:max-line-length | ||
pageDivs[i].height = this.pdfViewerBase.pageSize[pageNumber].height * this.pdfViewerBase.getZoomFactor(); | ||
} | ||
} | ||
@@ -651,3 +658,3 @@ } | ||
var canvas = this.pdfViewerBase.getElement('_pageCanvas_' + i); | ||
if (canvas) { | ||
if (canvas && !this.pdfViewer.restrictZoomRequest) { | ||
canvas.id = this.pdfViewer.element.id + '_oldCanvas_' + i; | ||
@@ -662,2 +669,6 @@ canvas.style.backgroundColor = '#fff'; | ||
} | ||
else { | ||
// tslint:disable-next-line:max-line-length | ||
this.pdfViewerBase.renderPageCanvas(this.pdfViewerBase.getElement('_pageDiv_' + i), this.pdfViewerBase.pageSize[i].width * this.zoomFactor, this.pdfViewerBase.pageSize[i].height * this.zoomFactor, i, 'none'); | ||
} | ||
} | ||
@@ -664,0 +675,0 @@ this.isRerenderCanvasCreated = true; |
@@ -1,2 +0,2 @@ | ||
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, L10n, Collection, Complex, isBlazor } 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, CursorType, ContextMenuItem, DynamicStampItem, SignStampItem, StandardBusinessStampItem, FormFieldType, AllowedInteraction } 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, AnnotationMouseLeaveEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs, DownloadStartEventArgs, DownloadEndEventArgs, ExtractTextCompletedEventArgs, PrintStartEventArgs, PrintEndEventArgs } from './index';import { TextSearchStartEventArgs, TextSearchCompleteEventArgs, TextSearchHighlightEventArgs } from './index';import { PdfAnnotationBase, ZOrderPageTable } from './drawing/pdf-annotation';import { PdfAnnotationBaseModel } from './drawing/pdf-annotation-model';import { Drawing, ClipBoardObject } from './drawing/drawing';import { Selector } from './drawing/selector';import { SelectorModel } from './drawing/selector-model';import { PointModel, IElement, Rect } from '@syncfusion/ej2-drawings';import { renderAdornerLayer } from './drawing/dom-util';import { ThumbnailClickEventArgs } from './index';import { ValidateFormFieldsArgs } from './base';import { AddSignatureEventArgs, RemoveSignatureEventArgs, MoveSignatureEventArgs, SignaturePropertiesChangeEventArgs, ResizeSignatureEventArgs, SignatureSelectEventArgs } from './base'; | ||
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, L10n, Collection, Complex, isBlazor } 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, CursorType, ContextMenuItem, DynamicStampItem, SignStampItem, StandardBusinessStampItem, FormFieldType, AllowedInteraction } 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, AnnotationMouseLeaveEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs, DownloadStartEventArgs, DownloadEndEventArgs, ExtractTextCompletedEventArgs, PrintStartEventArgs, PrintEndEventArgs } from './index';import { TextSearchStartEventArgs, TextSearchCompleteEventArgs, TextSearchHighlightEventArgs } from './index';import { PdfAnnotationBase, ZOrderPageTable } from './drawing/pdf-annotation';import { PdfAnnotationBaseModel } from './drawing/pdf-annotation-model';import { Drawing, ClipBoardObject } from './drawing/drawing';import { Selector } from './drawing/selector';import { SelectorModel } from './drawing/selector-model';import { PointModel, IElement, Rect } from '@syncfusion/ej2-drawings';import { renderAdornerLayer } from './drawing/dom-util';import { ThumbnailClickEventArgs } from './index';import { ValidateFormFieldsArgs, BookmarkClickEventArgs } from './base';import { AddSignatureEventArgs, RemoveSignatureEventArgs, MoveSignatureEventArgs, SignaturePropertiesChangeEventArgs, ResizeSignatureEventArgs, SignatureSelectEventArgs } from './base'; | ||
import {IAjaxHeaders} from "./pdfviewer"; | ||
@@ -2650,2 +2650,9 @@ import {ComponentModel} from '@syncfusion/ej2-base'; | ||
/** | ||
* Triggers an event when the bookmark is clicked in the bookmark panel of PDF Viewer. | ||
* @event | ||
* @blazorProperty 'BookmarkClick' | ||
*/ | ||
bookmarkClick?: EmitType<BookmarkClickEventArgs>; | ||
/** | ||
* Triggers an event when the text selection is started. | ||
@@ -2652,0 +2659,0 @@ * @event |
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 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30985237
206610