diegomura / diegomura/react-pdf

showing the progress of the pdf generation from callback

Open
#2,438 0 comments 3 reactions 0 assignees View on GitHub
new feature
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

**Is your feature request related to a problem? Please describe.**
when working with large pdf, it takes some time to create and render the pdf, when it is happening it shows blank screen in the iframe, which is not that much good experience, loading or some kind of progress which user can see will act as good user experience

**Describe the solution you'd like**
passing a simple callback function, which will get called with latest updated value of the progress, using which progress can be shown as wanted

**Describe alternatives you've considered**
tried, adding loader untill i get blob from the lib, but loader is not that much good experience, if some kind of numbers that this much progress is complete then it will be great for user and other use cases

**Additional context**
I've created a PR(https://github.com/diegomura/react-pdf/pull/2437) where I've currently implemented the page processing progress as a callback. I'm not familiar with the entire codebase, so I've implemented this basic functionality for now. If someone can guide me, I can make further improvements. I haven't implemented any tests yet.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.