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

ng2-pdf-viewer

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-pdf-viewer - npm Package Compare versions

Comparing version 9.1.1 to 9.1.2

2

package.json
{
"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

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