ng2-pdf-viewer
Advanced tools
Comparing version 9.1.1 to 9.1.2
{ | ||
"name": "ng2-pdf-viewer", | ||
"version": "9.1.1", | ||
"version": "9.1.2", | ||
"description": "Angular 5+ component for rendering PDF", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -523,8 +523,8 @@ <h1 align="center">Angular PDF Viewer</h1> | ||
Use `pdfFindController` for search functionality. | ||
Use `eventBus` for the search functionality. | ||
In your component's ts file: | ||
* Add reference to `pdf-viewer`, | ||
* then when needed execute search() | ||
* Add reference to `pdf-viewer` component, | ||
* then when needed execute `search()` linke this: | ||
@@ -535,4 +535,4 @@ ```typescript | ||
search(stringToSearch: string) { | ||
this.pdfComponent.pdfFindController.executeCommand('find', { | ||
caseSensitive: false, findPrevious: undefined, highlightAll: true, phraseSearch: true, query: stringToSearch | ||
this.pdfComponent.eventBus.dispatch('find', { | ||
query: stringToSearch, type: 'again', caseSensitive: false, findPrevious: undefined, highlightAll: true, phraseSearch: true | ||
}); | ||
@@ -539,0 +539,0 @@ } |
@@ -5,3 +5,5 @@ /** | ||
import { ElementRef, EventEmitter, OnChanges, SimpleChanges, OnInit, OnDestroy, AfterViewChecked, NgZone } from '@angular/core'; | ||
import * as PDFJSViewer from 'pdfjs-dist/web/pdf_viewer'; | ||
import type { PDFSource, PDFProgressData } from './typings'; | ||
import { PDFSinglePageViewer } from 'pdfjs-dist/web/pdf_viewer'; | ||
import * as i0 from "@angular/core"; | ||
@@ -19,9 +21,7 @@ export declare enum RenderTextMode { | ||
pdfViewerContainer: any; | ||
eventBus: PDFJSViewer.EventBus; | ||
pdfLinkService: PDFJSViewer.PDFLinkService; | ||
pdfFindController: PDFJSViewer.PDFFindController; | ||
pdfViewer: PDFJSViewer.PDFViewer | PDFSinglePageViewer; | ||
private isVisible; | ||
private pdfMultiPageViewer; | ||
private pdfMultiPageLinkService; | ||
private pdfMultiPageFindController; | ||
private pdfSinglePageViewer; | ||
private pdfSinglePageLinkService; | ||
private pdfSinglePageFindController; | ||
private _cMapsUrl; | ||
@@ -79,5 +79,2 @@ private _imageResourcesPath; | ||
ngOnDestroy(): void; | ||
get pdfLinkService(): any; | ||
get pdfViewer(): any; | ||
get pdfFindController(): any; | ||
ngOnChanges(changes: SimpleChanges): void; | ||
@@ -87,4 +84,6 @@ updateSize(): void; | ||
private getPDFLinkServiceConfig; | ||
private setupMultiPageViewer; | ||
private setupSinglePageViewer; | ||
private initEventBus; | ||
private initPDFServices; | ||
private getPDFOptions; | ||
private setupViewer; | ||
private getValidPageNumber; | ||
@@ -96,3 +95,2 @@ private getDocumentParams; | ||
private getScale; | ||
private getCurrentViewer; | ||
private resetPdfDocument; | ||
@@ -99,0 +97,0 @@ private initialize; |
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
355723
2644