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

feat: add callback function in config to get pdf currentpage and totalpage count #187

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

VAJRESH
Copy link

@VAJRESH VAJRESH commented Oct 20, 2023

Added config option to get pdf data

// only applicable for pdf
getPdfData: ({ currentPage, totalPages }) => {
console.log("pdf data", totalPages, currentPage);
},

this config callback function is called when user changes the pdf page in horizontal scroll or scrolls down to change page in vertical scroll

Also updated readme file

@bulgemi
Copy link

bulgemi commented Nov 7, 2023

I'm waiting... I hope it merges soon!

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

Successfully merging this pull request may close these issues.

2 participants