Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't bind to 'fit-to-page' since it isn't a known property of 'pdf-viewer' [VERSION 10.2.2] #1113

Open
faizaldong opened this issue Jul 22, 2024 · 1 comment

Comments

@faizaldong
Copy link

faizaldong commented Jul 22, 2024

  1. If 'pdf-viewer' is an Angular component and it has 'fit-to-page' input, then verify that it is part of this module.
  2. If 'pdf-viewer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

line 122 [fit-to-page]="true"

  <pdf-viewer
    *ngIf="true"
    [src]="someURL"
    [render-text]="true"
    [original-size]="false"
    [zoom-scale]="'somePageWidth'"
    [ERROR] => [fit-to-page]="true"
  ></pdf-viewer>`

To add: I'm upgrading a version from 9.1.5 to 10.2.2. With the 9.1.5 version there is no issue but after upgrading I got the above error in my terminal.

@faizaldong
Copy link
Author

@VadimDez please take a look at this issue, seems after I upgraded to the latest version, I got this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant