Improvements
- [#829] - feat: upgrade to pdfjs-dist 2.11.338
- [#834] - Give sane default to host
- [#805] - width of pdf page exceed the maximum width and got trimmed from the right side
- [#811] - .ng2-pdf-viewer-container not in parent container
- [#828] - can't now show digital signature PKCS#7
Breaking change (Since 7.0.0)
Now you need to specify how much space pdf-viewer
element should take by using CSS, so either set width
and height
, use flexbox
or use something like positioning
.
Example using height and width:
<pdf-viewer [src]="src" [original-size]="false" style="width: 400px; height: 500px"></pdf-viewer>
Example using absolute positioning to take entire page:
<pdf-viewer [src]="src" [original-size]="false" style="position: absolute; top: 0; right: 0; bottom: 0; left: 0"></pdf-viewer>