fix display of ng2-pdf-viewer 8.0.0

This commit is contained in:
Michael Shamoon 2022-02-20 00:37:42 -08:00
parent e60bfda93f
commit 17ddf18a67
2 changed files with 6 additions and 1 deletions

View File

@ -149,7 +149,7 @@
<div class="col-md-6 col-xl-8 mb-3 d-none d-md-block" #pdfPreview>
<ng-container *ngIf="getContentType() == 'application/pdf'">
<div class="preview-sticky pdf-viewer-container" *ngIf="!useNativePdfViewer ; else nativePdfViewer">
<pdf-viewer [src]="previewUrl" [original-size]="false" [show-borders]="true" [show-all]="true" [(page)]="previewCurrentPage" [render-text-mode]="2" (after-load-complete)="pdfPreviewLoaded($event)"></pdf-viewer>
<pdf-viewer [src]="previewUrl" [original-size]="false" [show-borders]="false" [show-all]="true" [(page)]="previewCurrentPage" [render-text-mode]="2" (after-load-complete)="pdfPreviewLoaded($event)"></pdf-viewer>
</div>
<ng-template #nativePdfViewer>
<object [data]="previewUrl | safe" class="preview-sticky" width="100%"></object>

View File

@ -6,4 +6,9 @@
.pdf-viewer-container {
background-color: gray;
pdf-viewer {
width: 100%;
height: 100%;
}
}