ng2-pdf-viewer
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -606,5 +606,6 @@ (function (global, factory) { | ||
.then(function (page) { | ||
var rotation = _this._rotation || page.rotate; | ||
var viewportWidth = page.getViewport({ | ||
scale: _this._zoom, | ||
rotation: _this._rotation | ||
rotation: rotation | ||
}).width * PdfViewerComponent_1.CSS_UNITS; | ||
@@ -617,3 +618,3 @@ var scale = _this._zoom; | ||
viewportWidth > _this.pdfViewerContainer.nativeElement.clientWidth)) { | ||
scale = _this.getScale(page.getViewport({ scale: 1, rotation: _this._rotation }) | ||
scale = _this.getScale(page.getViewport({ scale: 1, rotation: rotation }) | ||
.width); | ||
@@ -620,0 +621,0 @@ stickToPage = !_this._stickToPage; |
@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("ng2-pdf-viewer",["exports","@angular/core"],t):t((e=e||self)["ng2-pdf-viewer"]={},e.ng.core)}(this,(function(e,t){"use strict"; | ||
and limitations under the License. | ||
***************************************************************************** */function n(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}var o,i,r,a=function(e){var t,n=new e.EventBus(!0);return(t=n).on("documentload",(function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)})),t.on("pagerendered",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagerendered",!0,!0,{pageNumber:e.pageNumber,cssTransform:e.cssTransform}),e.source.div.dispatchEvent(t)})),t.on("textlayerrendered",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e.pageNumber}),e.source.textLayerDiv.dispatchEvent(t)})),t.on("pagechanging",(function(e){var t=document.createEvent("UIEvents");t.initEvent("pagechanging",!0,!0),t.pageNumber=e.pageNumber,e.source.container.dispatchEvent(t)})),t.on("pagesinit",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesinit",!0,!0,null),e.source.container.dispatchEvent(t)})),t.on("pagesloaded",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e.pagesCount}),e.source.container.dispatchEvent(t)})),t.on("scalechange",(function(e){var t=document.createEvent("UIEvents");t.initEvent("scalechange",!0,!0),t.scale=e.scale,t.presetValue=e.presetValue,e.source.container.dispatchEvent(t)})),t.on("updateviewarea",(function(e){var t=document.createEvent("UIEvents");t.initEvent("updateviewarea",!0,!0),t.location=e.location,e.source.container.dispatchEvent(t)})),t.on("find",(function(e){if(e.source!==window){var t=document.createEvent("CustomEvent");t.initCustomEvent("find"+e.type,!0,!0,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious}),window.dispatchEvent(t)}})),t.on("attachmentsloaded",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e.attachmentsCount}),e.source.container.dispatchEvent(t)})),t.on("sidebarviewchanged",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("sidebarviewchanged",!0,!0,{view:e.view}),e.source.outerContainer.dispatchEvent(t)})),t.on("pagemode",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagemode",!0,!0,{mode:e.mode}),e.source.pdfViewer.container.dispatchEvent(t)})),t.on("namedaction",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e.action}),e.source.pdfViewer.container.dispatchEvent(t)})),t.on("presentationmodechanged",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("presentationmodechanged",!0,!0,{active:e.active,switchInProgress:e.switchInProgress}),window.dispatchEvent(t)})),t.on("outlineloaded",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e.outlineCount}),e.source.container.dispatchEvent(t)})),n};function s(){return"undefined"==typeof window}s()||(o=require("pdfjs-dist/build/pdf"),i=require("pdfjs-dist/web/pdf_viewer"),o.verbosity=o.VerbosityLevel.ERRORS),(r=e.RenderTextMode||(e.RenderTextMode={}))[r.DISABLED=0]="DISABLED",r[r.ENABLED=1]="ENABLED",r[r.ENHANCED=2]="ENHANCED";var d=function(){function r(n){var i;(this.element=n,this.isVisible=!1,this._cMapsUrl=void 0!==o?"https://unpkg.com/pdfjs-dist@"+o.version+"/cmaps/":null,this._renderText=!0,this._renderTextMode=e.RenderTextMode.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.isInitialized=!1,this.afterLoadComplete=new t.EventEmitter,this.pageRendered=new t.EventEmitter,this.textLayerRendered=new t.EventEmitter,this.onError=new t.EventEmitter,this.onProgress=new t.EventEmitter,this.pageChange=new t.EventEmitter(!0),s())||(i=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/"+o.version+"/pdf.worker.min.js",o.GlobalWorkerOptions.workerSrc=i)}var d;return d=r,Object.defineProperty(r.prototype,"cMapsUrl",{set:function(e){this._cMapsUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"page",{set:function(e){e=parseInt(e,10)||1,this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,this.pageChange.emit(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"renderText",{set:function(e){this._renderText=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"renderTextMode",{set:function(e){this._renderTextMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"originalSize",{set:function(e){this._originalSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showAll",{set:function(e){this._showAll=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"stickToPage",{set:function(e){this._stickToPage=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"zoom",{get:function(){return this._zoom},set:function(e){e<=0||(this._zoom=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rotation",{set:function(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"externalLinkTarget",{set:function(e){this._externalLinkTarget=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"autoresize",{set:function(e){this._canAutoResize=Boolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fitToPage",{set:function(e){this._fitToPage=Boolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showBorders",{set:function(e){this._showBorders=Boolean(e)},enumerable:!0,configurable:!0}),r.getLinkTarget=function(e){switch(e){case"blank":return o.LinkTarget.BLANK;case"none":return o.LinkTarget.NONE;case"self":return o.LinkTarget.SELF;case"parent":return o.LinkTarget.PARENT;case"top":return o.LinkTarget.TOP}return null},r.setExternalLinkTarget=function(e){var t=d.getLinkTarget(e);null!==t&&(o.externalLinkTarget=t)},r.prototype.ngAfterViewChecked=function(){var e=this;if(!this.isInitialized){var t=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=t?!1===this.isVisible&&null!=t&&(this.isVisible=!0,setTimeout((function(){e.ngOnInit(),e.ngOnChanges({src:e.src})}))):this.isVisible=!1}},r.prototype.ngOnInit=function(){!s()&&this.isVisible&&(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())},r.prototype.ngOnDestroy=function(){this._pdf&&this._pdf.destroy()},r.prototype.onPageResize=function(){var e=this;this._canAutoResize&&this._pdf&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){e.updateSize()}),100))},Object.defineProperty(r.prototype,"pdfLinkService",{get:function(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pdfViewer",{get:function(){return this.getCurrentViewer()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pdfFindController",{get:function(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){if(!s()&&this.isVisible)if("src"in t)this.loadPDF();else if(this._pdf){if("renderText"in t?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,this.resetPdfDocument()):"showAll"in t&&this.resetPdfDocument(),"page"in t){if(t.page.currentValue===this._latestScrolledPage)return;this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page})}this.update()}},r.prototype.updateSize=function(){var e=this,t=this.getCurrentViewer();this._pdf.getPage(t.currentPageNumber).then((function(n){var o=n.getViewport({scale:e._zoom,rotation:e._rotation}).width*d.CSS_UNITS,i=e._zoom,r=!0;(!e._originalSize||e._fitToPage&&o>e.pdfViewerContainer.nativeElement.clientWidth)&&(i=e.getScale(n.getViewport({scale:1,rotation:e._rotation}).width),r=!e._stickToPage),t._setScale(i,r)}))},r.prototype.clear=function(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._pdf.destroy(),this._pdf=null,this.pdfMultiPageViewer.setDocument(null),this.pdfSinglePageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null,null),this.pdfSinglePageLinkService.setDocument(null,null),this.pdfMultiPageFindController.setDocument(null),this.pdfSinglePageFindController.setDocument(null))},r.prototype.setupMultiPageViewer=function(){var t=this;o.disableTextLayer=!this._renderText,d.setExternalLinkTarget(this._externalLinkTarget);var n=a(i);n.on("pagerendered",(function(e){t.pageRendered.emit(e)})),n.on("pagechanging",(function(e){t.pageScrollTimeout&&clearTimeout(t.pageScrollTimeout),t.pageScrollTimeout=setTimeout((function(){t._latestScrolledPage=e.pageNumber,t.pageChange.emit(e.pageNumber)}),100)})),n.on("textlayerrendered",(function(e){t.textLayerRendered.emit(e)})),this.pdfMultiPageLinkService=new i.PDFLinkService({eventBus:n}),this.pdfMultiPageFindController=new i.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:n});var r={eventBus:n,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfMultiPageFindController};this.pdfMultiPageViewer=new i.PDFViewer(r),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)},r.prototype.setupSinglePageViewer=function(){var t=this;o.disableTextLayer=!this._renderText,d.setExternalLinkTarget(this._externalLinkTarget);var n=a(i);n.on("pagechanging",(function(e){e.pageNumber!=t._page&&(t.page=e.pageNumber)})),n.on("pagerendered",(function(e){t.pageRendered.emit(e)})),n.on("textlayerrendered",(function(e){t.textLayerRendered.emit(e)})),this.pdfSinglePageLinkService=new i.PDFLinkService({eventBus:n}),this.pdfSinglePageFindController=new i.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:n});var r={eventBus:n,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfSinglePageFindController};this.pdfSinglePageViewer=new i.PDFSinglePageViewer(r),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page},r.prototype.getValidPageNumber=function(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e},r.prototype.getDocumentParams=function(){var e=typeof this.src;if(!this._cMapsUrl)return this.src;var t={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===e?t.url=this.src:"object"===e&&(void 0!==this.src.byteLength?t.data=this.src:Object.assign(t,this.src)),t},r.prototype.loadPDF=function(){var e=this;if(this.src)if(this.lastLoaded!==this.src){this.clear(),this.loadingTask=o.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=function(t){e.onProgress.emit(t)};var t=this.src;this.loadingTask.promise.then((function(n){e._pdf=n,e.lastLoaded=t,e.afterLoadComplete.emit(n),e.pdfMultiPageViewer||(e.setupMultiPageViewer(),e.setupSinglePageViewer()),e.resetPdfDocument(),e.update()}),(function(t){e.onError.emit(t)}))}else this.update()},r.prototype.update=function(){this.page=this._page,this.render()},r.prototype.render=function(){var e=this;this._page=this.getValidPageNumber(this._page);var t=this.getCurrentViewer();0===this._rotation&&t.pagesRotation===this._rotation||setTimeout((function(){t.pagesRotation=e._rotation})),this._stickToPage&&setTimeout((function(){t.currentPageNumber=e._page})),this.updateSize()},r.prototype.getScale=function(e){var t=this.pdfViewerContainer.nativeElement.clientWidth-(this._showBorders?2*d.BORDER_WIDTH:0);return 0===t||0===e?1:this._zoom*(t/e)/d.CSS_UNITS},r.prototype.getCurrentViewer=function(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer},r.prototype.resetPdfDocument=function(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))},r.CSS_UNITS=96/72,r.BORDER_WIDTH=9,r.ctorParameters=function(){return[{type:t.ElementRef}]},n([t.ViewChild("pdfViewerContainer")],r.prototype,"pdfViewerContainer",void 0),n([t.Output("after-load-complete")],r.prototype,"afterLoadComplete",void 0),n([t.Output("page-rendered")],r.prototype,"pageRendered",void 0),n([t.Output("text-layer-rendered")],r.prototype,"textLayerRendered",void 0),n([t.Output("error")],r.prototype,"onError",void 0),n([t.Output("on-progress")],r.prototype,"onProgress",void 0),n([t.Output()],r.prototype,"pageChange",void 0),n([t.Input()],r.prototype,"src",void 0),n([t.Input("c-maps-url")],r.prototype,"cMapsUrl",null),n([t.Input("page")],r.prototype,"page",null),n([t.Input("render-text")],r.prototype,"renderText",null),n([t.Input("render-text-mode")],r.prototype,"renderTextMode",null),n([t.Input("original-size")],r.prototype,"originalSize",null),n([t.Input("show-all")],r.prototype,"showAll",null),n([t.Input("stick-to-page")],r.prototype,"stickToPage",null),n([t.Input("zoom")],r.prototype,"zoom",null),n([t.Input("rotation")],r.prototype,"rotation",null),n([t.Input("external-link-target")],r.prototype,"externalLinkTarget",null),n([t.Input("autoresize")],r.prototype,"autoresize",null),n([t.Input("fit-to-page")],r.prototype,"fitToPage",null),n([t.Input("show-borders")],r.prototype,"showBorders",null),n([t.HostListener("window:resize",[])],r.prototype,"onPageResize",null),r=d=n([t.Component({selector:"pdf-viewer",template:'\n <div #pdfViewerContainer class="ng2-pdf-viewer-container">\n <div class="pdfViewer"></div>\n </div>\n ',styles:['.ng2-pdf-viewer-container{overflow-x:auto;position:relative;height:100%}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::-moz-selection,:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{background-color:#000;content:"";display:block;position:absolute;height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute;border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #333;border-radius:2px;padding:.6em;margin-left:5px;cursor:pointer;font:message-box;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup h1{font-size:1em;border-bottom:1px solid #000;margin:0;padding-bottom:.2em}:host ::ng-deep .annotationLayer .popup p{margin:0;padding-top:.2em}:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer{padding-bottom:10px}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid rgba(0,0,0,.01);background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;-webkit-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.removePageBorders{padding-bottom:0}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle;margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAA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deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}']})],r)}(),p=function(){function e(){}return e=n([t.NgModule({declarations:[d],exports:[d]})],e)}();e.PdfViewerComponent=d,e.PdfViewerModule=p,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */function n(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}var o,i,r,a=function(e){var t,n=new e.EventBus(!0);return(t=n).on("documentload",(function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)})),t.on("pagerendered",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagerendered",!0,!0,{pageNumber:e.pageNumber,cssTransform:e.cssTransform}),e.source.div.dispatchEvent(t)})),t.on("textlayerrendered",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e.pageNumber}),e.source.textLayerDiv.dispatchEvent(t)})),t.on("pagechanging",(function(e){var t=document.createEvent("UIEvents");t.initEvent("pagechanging",!0,!0),t.pageNumber=e.pageNumber,e.source.container.dispatchEvent(t)})),t.on("pagesinit",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesinit",!0,!0,null),e.source.container.dispatchEvent(t)})),t.on("pagesloaded",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e.pagesCount}),e.source.container.dispatchEvent(t)})),t.on("scalechange",(function(e){var t=document.createEvent("UIEvents");t.initEvent("scalechange",!0,!0),t.scale=e.scale,t.presetValue=e.presetValue,e.source.container.dispatchEvent(t)})),t.on("updateviewarea",(function(e){var t=document.createEvent("UIEvents");t.initEvent("updateviewarea",!0,!0),t.location=e.location,e.source.container.dispatchEvent(t)})),t.on("find",(function(e){if(e.source!==window){var t=document.createEvent("CustomEvent");t.initCustomEvent("find"+e.type,!0,!0,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious}),window.dispatchEvent(t)}})),t.on("attachmentsloaded",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e.attachmentsCount}),e.source.container.dispatchEvent(t)})),t.on("sidebarviewchanged",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("sidebarviewchanged",!0,!0,{view:e.view}),e.source.outerContainer.dispatchEvent(t)})),t.on("pagemode",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagemode",!0,!0,{mode:e.mode}),e.source.pdfViewer.container.dispatchEvent(t)})),t.on("namedaction",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e.action}),e.source.pdfViewer.container.dispatchEvent(t)})),t.on("presentationmodechanged",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("presentationmodechanged",!0,!0,{active:e.active,switchInProgress:e.switchInProgress}),window.dispatchEvent(t)})),t.on("outlineloaded",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e.outlineCount}),e.source.container.dispatchEvent(t)})),n};function s(){return"undefined"==typeof window}s()||(o=require("pdfjs-dist/build/pdf"),i=require("pdfjs-dist/web/pdf_viewer"),o.verbosity=o.VerbosityLevel.ERRORS),(r=e.RenderTextMode||(e.RenderTextMode={}))[r.DISABLED=0]="DISABLED",r[r.ENABLED=1]="ENABLED",r[r.ENHANCED=2]="ENHANCED";var d=function(){function r(n){var i;(this.element=n,this.isVisible=!1,this._cMapsUrl=void 0!==o?"https://unpkg.com/pdfjs-dist@"+o.version+"/cmaps/":null,this._renderText=!0,this._renderTextMode=e.RenderTextMode.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.isInitialized=!1,this.afterLoadComplete=new t.EventEmitter,this.pageRendered=new t.EventEmitter,this.textLayerRendered=new t.EventEmitter,this.onError=new t.EventEmitter,this.onProgress=new t.EventEmitter,this.pageChange=new t.EventEmitter(!0),s())||(i=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/"+o.version+"/pdf.worker.min.js",o.GlobalWorkerOptions.workerSrc=i)}var d;return d=r,Object.defineProperty(r.prototype,"cMapsUrl",{set:function(e){this._cMapsUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"page",{set:function(e){e=parseInt(e,10)||1,this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,this.pageChange.emit(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"renderText",{set:function(e){this._renderText=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"renderTextMode",{set:function(e){this._renderTextMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"originalSize",{set:function(e){this._originalSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showAll",{set:function(e){this._showAll=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"stickToPage",{set:function(e){this._stickToPage=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"zoom",{get:function(){return this._zoom},set:function(e){e<=0||(this._zoom=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rotation",{set:function(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"externalLinkTarget",{set:function(e){this._externalLinkTarget=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"autoresize",{set:function(e){this._canAutoResize=Boolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fitToPage",{set:function(e){this._fitToPage=Boolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showBorders",{set:function(e){this._showBorders=Boolean(e)},enumerable:!0,configurable:!0}),r.getLinkTarget=function(e){switch(e){case"blank":return o.LinkTarget.BLANK;case"none":return o.LinkTarget.NONE;case"self":return o.LinkTarget.SELF;case"parent":return o.LinkTarget.PARENT;case"top":return o.LinkTarget.TOP}return null},r.setExternalLinkTarget=function(e){var t=d.getLinkTarget(e);null!==t&&(o.externalLinkTarget=t)},r.prototype.ngAfterViewChecked=function(){var e=this;if(!this.isInitialized){var t=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=t?!1===this.isVisible&&null!=t&&(this.isVisible=!0,setTimeout((function(){e.ngOnInit(),e.ngOnChanges({src:e.src})}))):this.isVisible=!1}},r.prototype.ngOnInit=function(){!s()&&this.isVisible&&(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())},r.prototype.ngOnDestroy=function(){this._pdf&&this._pdf.destroy()},r.prototype.onPageResize=function(){var e=this;this._canAutoResize&&this._pdf&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){e.updateSize()}),100))},Object.defineProperty(r.prototype,"pdfLinkService",{get:function(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pdfViewer",{get:function(){return this.getCurrentViewer()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pdfFindController",{get:function(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){if(!s()&&this.isVisible)if("src"in t)this.loadPDF();else if(this._pdf){if("renderText"in t?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,this.resetPdfDocument()):"showAll"in t&&this.resetPdfDocument(),"page"in t){if(t.page.currentValue===this._latestScrolledPage)return;this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page})}this.update()}},r.prototype.updateSize=function(){var e=this,t=this.getCurrentViewer();this._pdf.getPage(t.currentPageNumber).then((function(n){var o=e._rotation||n.rotate,i=n.getViewport({scale:e._zoom,rotation:o}).width*d.CSS_UNITS,r=e._zoom,a=!0;(!e._originalSize||e._fitToPage&&i>e.pdfViewerContainer.nativeElement.clientWidth)&&(r=e.getScale(n.getViewport({scale:1,rotation:o}).width),a=!e._stickToPage),t._setScale(r,a)}))},r.prototype.clear=function(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._pdf.destroy(),this._pdf=null,this.pdfMultiPageViewer.setDocument(null),this.pdfSinglePageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null,null),this.pdfSinglePageLinkService.setDocument(null,null),this.pdfMultiPageFindController.setDocument(null),this.pdfSinglePageFindController.setDocument(null))},r.prototype.setupMultiPageViewer=function(){var t=this;o.disableTextLayer=!this._renderText,d.setExternalLinkTarget(this._externalLinkTarget);var n=a(i);n.on("pagerendered",(function(e){t.pageRendered.emit(e)})),n.on("pagechanging",(function(e){t.pageScrollTimeout&&clearTimeout(t.pageScrollTimeout),t.pageScrollTimeout=setTimeout((function(){t._latestScrolledPage=e.pageNumber,t.pageChange.emit(e.pageNumber)}),100)})),n.on("textlayerrendered",(function(e){t.textLayerRendered.emit(e)})),this.pdfMultiPageLinkService=new i.PDFLinkService({eventBus:n}),this.pdfMultiPageFindController=new i.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:n});var r={eventBus:n,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfMultiPageFindController};this.pdfMultiPageViewer=new i.PDFViewer(r),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)},r.prototype.setupSinglePageViewer=function(){var t=this;o.disableTextLayer=!this._renderText,d.setExternalLinkTarget(this._externalLinkTarget);var n=a(i);n.on("pagechanging",(function(e){e.pageNumber!=t._page&&(t.page=e.pageNumber)})),n.on("pagerendered",(function(e){t.pageRendered.emit(e)})),n.on("textlayerrendered",(function(e){t.textLayerRendered.emit(e)})),this.pdfSinglePageLinkService=new i.PDFLinkService({eventBus:n}),this.pdfSinglePageFindController=new i.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:n});var r={eventBus:n,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfSinglePageFindController};this.pdfSinglePageViewer=new i.PDFSinglePageViewer(r),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page},r.prototype.getValidPageNumber=function(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e},r.prototype.getDocumentParams=function(){var e=typeof this.src;if(!this._cMapsUrl)return this.src;var t={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===e?t.url=this.src:"object"===e&&(void 0!==this.src.byteLength?t.data=this.src:Object.assign(t,this.src)),t},r.prototype.loadPDF=function(){var e=this;if(this.src)if(this.lastLoaded!==this.src){this.clear(),this.loadingTask=o.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=function(t){e.onProgress.emit(t)};var t=this.src;this.loadingTask.promise.then((function(n){e._pdf=n,e.lastLoaded=t,e.afterLoadComplete.emit(n),e.pdfMultiPageViewer||(e.setupMultiPageViewer(),e.setupSinglePageViewer()),e.resetPdfDocument(),e.update()}),(function(t){e.onError.emit(t)}))}else this.update()},r.prototype.update=function(){this.page=this._page,this.render()},r.prototype.render=function(){var e=this;this._page=this.getValidPageNumber(this._page);var t=this.getCurrentViewer();0===this._rotation&&t.pagesRotation===this._rotation||setTimeout((function(){t.pagesRotation=e._rotation})),this._stickToPage&&setTimeout((function(){t.currentPageNumber=e._page})),this.updateSize()},r.prototype.getScale=function(e){var t=this.pdfViewerContainer.nativeElement.clientWidth-(this._showBorders?2*d.BORDER_WIDTH:0);return 0===t||0===e?1:this._zoom*(t/e)/d.CSS_UNITS},r.prototype.getCurrentViewer=function(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer},r.prototype.resetPdfDocument=function(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))},r.CSS_UNITS=96/72,r.BORDER_WIDTH=9,r.ctorParameters=function(){return[{type:t.ElementRef}]},n([t.ViewChild("pdfViewerContainer")],r.prototype,"pdfViewerContainer",void 0),n([t.Output("after-load-complete")],r.prototype,"afterLoadComplete",void 0),n([t.Output("page-rendered")],r.prototype,"pageRendered",void 0),n([t.Output("text-layer-rendered")],r.prototype,"textLayerRendered",void 0),n([t.Output("error")],r.prototype,"onError",void 0),n([t.Output("on-progress")],r.prototype,"onProgress",void 0),n([t.Output()],r.prototype,"pageChange",void 0),n([t.Input()],r.prototype,"src",void 0),n([t.Input("c-maps-url")],r.prototype,"cMapsUrl",null),n([t.Input("page")],r.prototype,"page",null),n([t.Input("render-text")],r.prototype,"renderText",null),n([t.Input("render-text-mode")],r.prototype,"renderTextMode",null),n([t.Input("original-size")],r.prototype,"originalSize",null),n([t.Input("show-all")],r.prototype,"showAll",null),n([t.Input("stick-to-page")],r.prototype,"stickToPage",null),n([t.Input("zoom")],r.prototype,"zoom",null),n([t.Input("rotation")],r.prototype,"rotation",null),n([t.Input("external-link-target")],r.prototype,"externalLinkTarget",null),n([t.Input("autoresize")],r.prototype,"autoresize",null),n([t.Input("fit-to-page")],r.prototype,"fitToPage",null),n([t.Input("show-borders")],r.prototype,"showBorders",null),n([t.HostListener("window:resize",[])],r.prototype,"onPageResize",null),r=d=n([t.Component({selector:"pdf-viewer",template:'\n <div #pdfViewerContainer class="ng2-pdf-viewer-container">\n <div class="pdfViewer"></div>\n </div>\n ',styles:['.ng2-pdf-viewer-container{overflow-x:auto;position:relative;height:100%}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::-moz-selection,:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{background-color:#000;content:"";display:block;position:absolute;height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute;border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #333;border-radius:2px;padding:.6em;margin-left:5px;cursor:pointer;font:message-box;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup h1{font-size:1em;border-bottom:1px solid #000;margin:0;padding-bottom:.2em}:host ::ng-deep .annotationLayer .popup p{margin:0;padding-top:.2em}:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer{padding-bottom:10px}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid rgba(0,0,0,.01);background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;-webkit-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.removePageBorders{padding-bottom:0}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle;margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWphe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:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}']})],r)}(),p=function(){function e(){}return e=n([t.NgModule({declarations:[d],exports:[d]})],e)}();e.PdfViewerComponent=d,e.PdfViewerModule=p,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ng2-pdf-viewer.umd.min.js.map |
# Changelog | ||
## 6.1.2 | ||
* [[#582](https://github.com/VadimDez/ng2-pdf-viewer/pull/582)] - Fix rotated PDF files have a scale computation issue | ||
* [[#554](https://github.com/VadimDez/ng2-pdf-viewer/issues/554)] - Rotated PDF files have a scale computation issue | ||
## 6.1.1 | ||
@@ -4,0 +8,0 @@ * [[a8ddd42](https://github.com/VadimDez/ng2-pdf-viewer/commit/a8ddd4295333cbd1f8e85ba454d484afa6039152)] - Downgrade Typescript for compatibility |
@@ -339,5 +339,6 @@ import { __decorate } from 'tslib'; | ||
.then((page) => { | ||
const rotation = this._rotation || page.rotate; | ||
const viewportWidth = page.getViewport({ | ||
scale: this._zoom, | ||
rotation: this._rotation | ||
rotation | ||
}).width * PdfViewerComponent_1.CSS_UNITS; | ||
@@ -350,3 +351,3 @@ let scale = this._zoom; | ||
viewportWidth > this.pdfViewerContainer.nativeElement.clientWidth)) { | ||
scale = this.getScale(page.getViewport({ scale: 1, rotation: this._rotation }) | ||
scale = this.getScale(page.getViewport({ scale: 1, rotation }) | ||
.width); | ||
@@ -353,0 +354,0 @@ stickToPage = !this._stickToPage; |
@@ -406,5 +406,6 @@ import { __decorate } from 'tslib'; | ||
.then(function (page) { | ||
var rotation = _this._rotation || page.rotate; | ||
var viewportWidth = page.getViewport({ | ||
scale: _this._zoom, | ||
rotation: _this._rotation | ||
rotation: rotation | ||
}).width * PdfViewerComponent_1.CSS_UNITS; | ||
@@ -417,3 +418,3 @@ var scale = _this._zoom; | ||
viewportWidth > _this.pdfViewerContainer.nativeElement.clientWidth)) { | ||
scale = _this.getScale(page.getViewport({ scale: 1, rotation: _this._rotation }) | ||
scale = _this.getScale(page.getViewport({ scale: 1, rotation: rotation }) | ||
.width); | ||
@@ -420,0 +421,0 @@ stickToPage = !_this._stickToPage; |
{ | ||
"name": "ng2-pdf-viewer", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "Angular 5+ component for rendering PDF", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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 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
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
600576
4138