x)- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [ x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request
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.
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:
[page]="2"
[show-all]="false"
[render-text]="true"
[autoresize]="true"
[original-size]="false"
style="display: block;"
>
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 5.2.3
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"
Fixed in
5.2.3
@VadimDez
Could you confirm this?
Because its not working for me in 5.2.3
Verified. Page works correctly now.
Thanks, Tom Liao
From: Vishnudev notifications@github.com
Sent: Monday, March 18, 2019 5:23 AM
To: VadimDez/ng2-pdf-viewer
Cc: liaothomas; Comment
Subject: Re: [VadimDez/ng2-pdf-viewer] Page is not working (#402)
Fixed in 5.2.3
@VadimDezhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FVadimDez&data=02%7C01%7C%7C8726003f7837472194d408d6ab83747d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636884978407982965&sdata=zwZlgSsu4OFGBT27c2ssG0tm0qLXT0%2FTbMt%2F3GwGykQ%3D&reserved=0
Could you confirm this?
Because its not working for me in 5.2.3
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FVadimDez%2Fng2-pdf-viewer%2Fissues%2F402%23issuecomment-473831462&data=02%7C01%7C%7C8726003f7837472194d408d6ab83747d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636884978407992976&sdata=UuvWMHFXi1gip95gIMcRD4WPhcu5KOLsfis%2B%2FNOW32Q%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACkxbQndyHHEFDzeB6UuFYCUuiAuQYA6ks5vX1svgaJpZM4X72Kv&data=02%7C01%7C%7C8726003f7837472194d408d6ab83747d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636884978408002981&sdata=mMpt9XgeW9mv%2FhQAK5xHN6S9%2F7O74DQMzJrkaG9gwPA%3D&reserved=0.
@liaothomas When I scroll through pages it doesn't get updated
Hi All,
when i am scrolling the pages showing blank only in Pixel 3 chrome 72
Well my problem was that it was indexed with the first page as 1 and not 0.