Options having no impact on View of ng2-pdfjs-viewer

Discussão em 'Angular' iniciado por Marrome, Janeiro 20, 2025.

  1. Marrome

    Marrome Guest

    I'm updating my Angular App to Angular 19 and with that I had to switch vom ng2-pdfjs-viewer to @kariudo/ng2-pdfjs-viewer because the original one doesn't support Angular 19 yet.

    This is my code:

    <ng2-pdfjs-viewer [pdfSrc]="source"
    [download]="false"
    [fullScreen]="false"
    [find]="false"
    [viewBookmark]="false"
    [openFile]="false"
    [print]="false"
    [zoom]="'page-width'"
    [useOnlyCssZoom]="true"
    [page]="page"
    ></ng2-pdfjs-viewer>


    The Viewer is working and is showing the right PDF, but somehow the Options I set, like disabling the download button, are not working.

    What am I doing wrong?

    Continue reading...

Compartilhe esta Página