Skip to content

Commit

Permalink
#10 updated documentation, updated dist sources
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimDez committed Sep 5, 2016
1 parent 00481a3 commit 6209d90
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ Pass pdf location
[src]="'https://vadimdez.github.io/ng2-pdf-viewer/pdf-test.pdf'"
```

For more control you can pass options object to ```[src]```.

Options object for loading protected PDF would be

```js
{
url: 'https://vadimdez.github.io/ng2-pdf-viewer/pdf-test.pdf',
withCredentials: true
}
```

See more attributes [here](https://github.com/mozilla/pdf.js/blob/master/src/display/api.js#L79-L103).


#### [page]
Page number

Expand Down
2 changes: 1 addition & 1 deletion dist/pdf-viewer.component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { ElementRef } from '@angular/core';
export declare class PdfViewerComponent {
originalSize: boolean;
src: string;
src: any;
page: number;
showAll: boolean;
private element;
Expand Down
2 changes: 1 addition & 1 deletion dist/pdf-viewer.component.js.map

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

0 comments on commit 6209d90

Please sign in to comment.