2

I am using ngx-extended-pdf-viewer(4.0.0-alpha.5) in Angular 8 and pdfs are showing up correctly except for when I am using single paged pdfs. For single paged pdfs, the preview is blank. Is there any solution?

My code is here

 <ngx-extended-pdf-viewer [delayFirstView]="250" src="{{apiBaseURL}}unprotect/estimate-report/view/{{currentestimationid}}/{{estimationReportType}}" useBrowserLocale="true" height="80vh" [textLayer]="true"></ngx-extended-pdf-viewer>


  


[View image][1]


  [1]: https://i.stack.imgur.com/foGsi.png
Stephan Rauh
  • 3,069
  • 2
  • 18
  • 37
Athira
  • 31
  • 4

2 Answers2

1

Issue resolved by adding the CSS rule

@media print {
    #printContainer>div {
        display: inline;
    }
}
Athira
  • 31
  • 4
0

I've added the ng-deep and finally the preview appears:

    @media print {
        ::ng-deep #printContainer > div {
          display: inline;
        }
      }