Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDFViewer way #36

Merged
merged 6 commits into from
Feb 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

> PDF Viewer Component for Angular 2

[Demo page](https://vadimdez.github.io/ng2-pdf-viewer/)
[Demo page](https://vi-dot.github.io/ng2-pdf-viewer/)

## Install

Expand Down
31 changes: 22 additions & 9 deletions dist/pdf-viewer.component.d.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,45 @@
/// <reference types="pdf" />
import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
/// <reference types="types-pdf" />
import { ElementRef, EventEmitter, OnChanges, SimpleChanges, OnInit } from '@angular/core';
import 'pdfjs-dist/build/pdf.combined';
export declare class PdfViewerComponent implements OnChanges {
import 'pdfjs-dist/web/pdf_viewer';
export declare class PdfViewerComponent implements OnChanges, OnInit {
private element;
private static CSS_UNITS;
private _showAll;
private _renderText;
private _renderLink;
private _stickToPage;
private _originalSize;
private _pdf;
private _page;
private _zoom;
private _rotation;
private _enhanceTextSelection;
private _pageBorder;
private _externalLinkTarget;
private _pdfViewer;
private _pdfLinkService;
afterLoadComplete: EventEmitter<PDFDocumentProxy>;
constructor(element: ElementRef);
ngOnInit(): void;
src: string | Uint8Array | PDFSource;
page: any;
pageChange: EventEmitter<number>;
renderText: boolean;
renderLink: any;
originalSize: boolean;
showAll: boolean;
stickToPage: boolean;
zoom: number;
rotation: number;
externalLinkTarget: string;
pageBorder: boolean;
enhanceTextSelection: boolean;
setupViewer(): void;
ngOnChanges(changes: SimpleChanges): void;
private loadPDF();
private update();
private renderMultiplePages();
private isValidPageNumber(page);
private buildSVG(viewport, textContent);
private renderPageOverlay(page, viewport, container);
private renderPage(pageNumber);
private removeAllChildNodes(element);
render(): void;
updateSize(): void;
isValidPageNumber(page: number): boolean;
}
219 changes: 140 additions & 79 deletions dist/pdf-viewer.component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading