unable to select text for my uploaded pdf
venkat012chinna opened this issue · 1 comments
venkat012chinna commented
Bug Report or Feature Request (mark with an x
)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request
Hello.. I am using below snippet
<pdf-viewer
#pdfViewer
[src]="vm.selectedFile.src"
[rotation]="0"
[original-size]="true"
[show-all]="false"
[fit-to-page]="false"
[zoom]="(zoom/100)"
[zoom-scale]="'page-width'"
[external-link-target]="'blank'"
[autoresize]="false"
[show-borders]="true"
[page]="page"
[render-text]="true"
[render-text-mode]="2"
[text-layer-render]="{style: {background: 'yellow', color: 'black'}}"
style="width: 400px; height: 500px"
class="min-h-screen max-w-full"
(pagechanging)="pagechanging($event)"
(after-load-complete)="afterLoadComplete($event)"
></pdf-viewer>
I am able to select text when i opened through adobe reader and browser.
But when i previewed through pdf-viewer... i cannot able to select text! I attached sample pdf as well. Please help on this.
KRONOS_FED_PROOF_Q1_RETURNS_Virtus_Q1_2023.pdf_converted.pdf
Laurens-makel commented
I've faced this issue in the past as well and the cause was that there was another element that received the events, by setting z-index
on the viewer, the events are on the viewer.