You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regression (a behavior that used to work and stopped working in a new release)
Hi @VadimDez ,
Earlier I am using angular 12.2.10 with ng2-pdf-viewer v^6.4.1, but when I upgraded to angular 16, I used ng2-pdf-viewer v^9.1.5
along with pdfjs-dist v^2.16.105, with this (page-rendered)="pdfPageRendered2($event)" is not working as expected, could any one pls suggest me what are the compatible versions of ng2-pdf-viewer & pdfjs-dist for angular 16.2.12 version.
The text was updated successfully, but these errors were encountered:
Hi
I am also facing an issue with (page-rendered)="pdfPageRendered($event)"
I upgraded from angular 15 to 16 and ng2-pdf-viewer from 6.3.2 to 10.3.1.
The (page-rendered) is now triggered 2 times at the start and the first time it seems that the pdf is not fully rendered when the output page-rendered is triggered. The 6.3.2 version only triggered it once.
In the function pdfPageRendered(event) some properties are not updated. It's really specific but when i'm looking at event.source.viewport (for example the width, depending on the size of your pdf and if the viewer has to resize, changes between the first call and the second).
If I put a timeout of 1ms before logging the width, it will have it's correct/final value.
I'm currently using the RenderingQueue from the event event.source.renderingQueue.pdfViewer.eventBus.on('pagerendered',... to obtain correct values at the end.
Regression (a behavior that used to work and stopped working in a new release)
Hi @VadimDez ,
Earlier I am using angular 12.2.10 with ng2-pdf-viewer v^6.4.1, but when I upgraded to angular 16, I used ng2-pdf-viewer v^9.1.5
along with pdfjs-dist v^2.16.105, with this (page-rendered)="pdfPageRendered2($event)" is not working as expected, could any one pls suggest me what are the compatible versions of ng2-pdf-viewer & pdfjs-dist for angular 16.2.12 version.
The text was updated successfully, but these errors were encountered: