Fix pdf border

This commit is contained in:
Michael Shamoon 2022-02-25 00:47:27 -08:00
parent b5b7cf67bf
commit 80d2f34ad0
2 changed files with 5 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]="false" [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]="true" [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

@ -12,3 +12,7 @@
height: 100%;
}
}
::ng-deep .ng2-pdf-viewer-container {
--page-margin: 1px 0 -8px;
}