ng2-pdf-viewer icon indicating copy to clipboard operation
ng2-pdf-viewer copied to clipboard

Prevent Jumping on Keyword Search & Pagination Problems

Open KaganHamzacebi opened this issue 11 months ago • 1 comments

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
- [x] Documentation issue or request
this.pdfViewerComponent?.eventBus?.dispatch('find', {
      query: 'keyword1 keyword2',
      type: 'again',
      caseSensitive: false,
      findPrevious: undefined,
      highlightAll: true,
      phraseSearch: false,
    });

im searching keywords like this and implemented a simple pagination. My problems are;

  • I want to prevent jump on search
  • After searched for keywords moving between pages are getting bugged. After clicking pager buttons, pages are not changing properly.

My component config:

<pdf-viewer #pdfViewerComponent
                id="Document-PdfViewer-Component"
                [src]="pdfURL"
                [show-all]="false"
                [rotation]="pageRotation"
                [zoom]="pageZoom"
                [fit-to-page]="true"
                [original-size]="true"
                zoom-scale="page-fit"
                [page]="currentPage"
                [show-borders]="true"
                [render-text]="true"
                (after-load-complete)="onLoadComplete($event)"
                (text-layer-rendered)="onPageRender()"
                style="display: block;width: 100%; height: 100%;"
    />

KaganHamzacebi avatar Aug 04 '23 12:08 KaganHamzacebi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 07 '24 11:01 stale[bot]