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

Add a rendered event in promise #81

Closed
scheibapps opened this issue Apr 12, 2017 · 1 comment
Closed

Add a rendered event in promise #81

scheibapps opened this issue Apr 12, 2017 · 1 comment
Assignees
Milestone

Comments

@scheibapps
Copy link

page.getTextContent().then((textContent) => {
var index = _this._showAll ? page.pageIndex : 0;
var canvas = container.querySelectorAll('canvas')[index];
canvas.parentNode.insertBefore(_this.buildSVG(viewport, textContent), canvas);
canvas.style.position = 'absolute';
canvas.style.top = '0';
canvas.style.left = '0';
canvas.style.zIndex = '-1';
this.renderer.emit(true);
});

Something like this so that I can know when the view has rendered.

@VadimDez VadimDez self-assigned this Feb 10, 2018
@VadimDez VadimDez added this to the 4.1.0 milestone Feb 10, 2018
@VadimDez
Copy link
Owner

Released in 4.1.0
https://github.com/VadimDez/ng2-pdf-viewer#page-rendered

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

No branches or pull requests

2 participants