react-doc-viewer icon indicating copy to clipboard operation
react-doc-viewer copied to clipboard

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

Open VAJRESH opened this issue 2 years ago • 1 comments

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

VAJRESH avatar Oct 20 '23 06:10 VAJRESH

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

bulgemi avatar Nov 07 '23 00:11 bulgemi