-
-
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
How to scroll to page? #63
Comments
The functionality will be available in |
doesn't work |
You can use |
Closes #63 made "pdfViewer" public, added example method to scroll to a page
Now you can scroll to a page with the following code, add this to your component that uses // define view child
@ViewChild(PdfViewerComponent) private pdfComponent: PdfViewerComponent;
// ...
scrollToPage(page: number) {
this.pdfComponent.pdfViewer.scrollPageIntoView({
pageNumber: page
});
} and then use it scrollToPage(3); |
How can I import PdfViewerComponent, which package? |
@metanav can you try?
|
It is not working for me if anyone has made it work can you post an example |
@abbasshujah Memory leaks in this lib, don't use it for large files. See https://github.com/VadimDez/ng2-pdf-viewer/issues/220 Try to use |
I want to be able to programmatically highlight things in PDF which I cant
find in PDF.js, Do you know how to do that in PDF.js
…On Wed, Jun 20, 2018 at 11:06 AM, Andrei K ***@***.***> wrote:
@abbasshujah <https://github.com/abbasshujah> Memory leaks in this lib,
don't use it for large files. See https://github.com/VadimDez/
ng2-pdf-viewer/issues/220 <http://issue-220>
Try to use pdfjs-dist and typings for it @types/pdf. I don't remember why
we didn't use this library, but pdfjs works perfect.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ad2TYJ-1ROXQggi5oJNVEWLXhrHIpnmfks5t-mTggaJpZM4MSONs>
.
|
I tried this in my project, but it didn't work. Any other ideas that I can show all pages and also can use pagination to guide which page I want? |
Scroll is not working for me when i used it in my project please help me in this |
I need to scroll to particular position within a single page programmatically (scroll to left or right and top or Bottom). Thanks in Advance |
I solved this issue by creating my own implementation to scroll to view.
This should be executed Even if this is marked as solved by the library I can't get it to work the normal way. |
version: ^1.0.2
This code doesn't work. How i can scroll to 3 page in pdf file ?
The text was updated successfully, but these errors were encountered: