angularpdfngx-extended-pdf-viewer

ngx-extended-pdf-viewer Is it possible to render only one page?


I am using ngx-extended-pdf-viewer in Angular 8, the pdf shows up correctly. My problem is that i only need to show a single page but by default it shows all the pages.

Is there a way to render only one page with this pdf viewer ?

here is my code

<ngx-extended-pdf-viewer 

      [src]="pdfSrc" 
      [handTool]="true"
      [showHandToolButton]="true"
      backgroundColor="#ffffff"
      [height]="'100vh'"
      [useBrowserLocale]="true"
      [zoom]= 73
      [showSidebarButton]="false"
      [showFindButton]="false"
      [showPagingButtons]="false"
      [showZoomButtons]="false"
      [showPresentationModeButton]="false"
      [showOpenFileButton]="false"
      [showPrintButton]="false"
      [showDownloadButton]="false"
      [showBookmarkButton]="false"
      [showSecondaryToolbarButton]="false"
      [showRotateButton]="false"
      [showHandToolButton]="false"
      [showScrollingButton]="false"
      [showSpreadButton]="false"
      [showPropertiesButton]="false"
      [sidebarVisible]="false"

></ngx-extended-pdf-viewer

Solution

  • I'm the developer of ngx-extended-pdf-viewer. No, currently it's not possible to render a single page only. I've created the component to bring the complete feature set of the good old Adobe reader to the Angular world. It's about reading entire documents in style.

    To display individual page, I recomment two other approaches: