You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated ng2-pdf-viewer to 0.1.5. After that update the pdf is drawn behind the container. I inspected the HTML using Google Chrome developer tools. Then I noticed that the z-index of the canvas (pdf-viewer -> div -> div -> canvas) is -1. When I removed that style it works properly. The canvas looks like follows.
I updated ng2-pdf-viewer to 0.1.5. After that update the pdf is drawn behind the container. I inspected the HTML using Google Chrome developer tools. Then I noticed that the z-index of the canvas (pdf-viewer -> div -> div -> canvas) is -1. When I removed that style it works properly. The canvas looks like follows.
height="684" width="913" style="position: absolute; top: 0px; left: 0px; z-index: -1;"
This is my template code.
<pdf-viewer
*ngIf="(getCurrentDocumentType() === 'PDF' && isPreviewAvailable)"
[src]="data"
[page]="currentPage"
[render-text]="true"
[zoom]="zoom"
[original-size]="false"
[show-all]="false"
[after-load-complete]="callBackFn">
Please provide me a solution for this. Thank you.
The text was updated successfully, but these errors were encountered: