[show-all] is showing first two page only.

show-all is showing first two page only.

<pdf-viewer [src]=”pdfSrc”
[page]=”page”
[original-size]=”false”
[render-text]=”false”
[show-all]=”true”
style=”display: block;”>

pdfSrc: string = “../assets/pdf/Cuelinks_SDK-Integration_Guide.pdf”
page: number = 5;

I dont know what value give in page.

1 possible answer(s) on “[show-all] is showing first two page only.

  1. pdf-viewer.component.js

    `PdfViewerComponent.prototype.renderMultiplePages = function () {
    var _this = this;
    var container = this.element.nativeElement.querySelector(‘div’);
    var page = 1;
    this.removeAllChildNodes(container);

        for(let i = 1; i < _this._pdf.numPages+1 ; i++){
            this.renderPage(i)
        }
    
       /* this.renderPage(page++).then(function () {
            if (page <= _this._pdf.numPages) {
                return _this.renderPage(page++);
            }
        });*/ 
    };`