-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
Page is not working #402
Comments
I am seeing the same thing with 5.2.0 during my development. I am finding that when a page number is specified as an attribute of the pdf-viewer tag, page one is always displayed. If I set page to a variable within my angular component, the page variable that I have specified needs to be set at handling of the page-rendered event. If the value is set before that event has fired, the value has no impact on what page is rendered. For example the following tag specification always shows page 1 for the 4 page document that I am providing as src: <pdf-viewer If the literal 2 is replaced with a variable that has been initialized at definition, the page that is displayed is page 1. For an earlier project that uses version 5.1.2, the initialized variable works but the literal value in the attribute does not. It is my impression that the change in the value of the page property is being handled but any initial value is ignored. Sorry. I went back and checked my app that uses version 5.1.2 and the literal value for the [page] attribute works fine. For me it is version 5.2.0 where it fails. |
Can confirm, this is working in 5.1.3 and not in 5.2 anymore. Had to revert the version because of this. |
+1 |
Fixed in |
maybe i'm doing something wrong, but not working for me. [(page)] works alone, but not combined with [show-all]="true" and [stick-to-page]="true" |
Could you confirm this? |
@liaothomas When I scroll through pages it doesn't get updated |
Hi All, |
Well my problem was that it was indexed with the first page as 1 and not 0. |
Bug Report or Feature Request (mark with an
x
)Hello, I'm using version 5.2.0 and I'm not able to make the [page] working. I'm using it with the right [show-all]. I tried [page] and also the [(page)] but it does nothing. I don't have any error in the console but page is always the first one.
The text was updated successfully, but these errors were encountered: