<mat-card-content style="width:1000px;height:700px;">
<pdf-viewer [src]="pdfSrc" [page]="page" [rotation]="0" [zoom]="**1.5**" [original-size]="false" [show-all]="false" style="display:block;"></pdf-viewer>
</mat-card-content>
with the new version scrollbars doesn't appear and the pdf-viewer is now bigger than the area wich contain it
@Gianlu82b19 you can add scroll bars by css. Set overflow-y:scroll for vertical scrollbar and overflow-x:scroll; for horizontal scroll bar
Thanks it works. For some reason I had no problem in the in the older version (1.2.7)
.pdfViewer {
max-height: 700px; /* change height value */
overflow-y: scroll;
}
@b4z81 don't seem to do the trick. the viewer still display the full pdf page height
Most helpful comment
@Gianlu82b19 you can add scroll bars by css. Set
overflow-y:scrollfor vertical scrollbar andoverflow-x:scroll;for horizontal scroll bar