You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed instructions in documentation written for my React-PDF version
I have checked if this bug is not already reported
I have checked if an issue is not listed in Known issues
If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
Hi,
I have tried using the onRenderAnnotationLayerSuccess and onRenderSuccess callbacks as I want to execute a function after the annotationLayer has rendered on my screen, however onRenderAnnotationLayerSuccess callback is executed before the paint is completed on the screen. The documentation says: "Function called when annotations are successfully rendered on the screen.", however this is not happening in my scenario.
Steps to reproduce
Clone the react-pdf library
Go to sample/vite/ folder and install the demo dependencies npm install
The alert will be shown before the document is displayed on the screen.
Expected behavior
The onRenderAnnotationLayerSuccess function should be executed once the annotation layer is completed rendered on the screen. Same for onRenderSuccess.
Actual behavior
The onRenderAnnotationLayerSuccess function is executed before the DOM is rendered on the screen.
Additional information
No response
Environment
Browser (if applicable): Chrome 122.0.6261.111
React-PDF version: 7.7.0
React version: 18
The text was updated successfully, but these errors were encountered:
Before you start - checklist
Description
Hi,
I have tried using the
onRenderAnnotationLayerSuccess
andonRenderSuccess
callbacks as I want to execute a function after the annotationLayer has rendered on my screen, howeveronRenderAnnotationLayerSuccess
callback is executed before the paint is completed on the screen. The documentation says: "Function called when annotations are successfully rendered on the screen.", however this is not happening in my scenario.Steps to reproduce
npm install
npm run dev
sample/vite/Sample.tsx
The alert will be shown before the document is displayed on the screen.
Expected behavior
The
onRenderAnnotationLayerSuccess
function should be executed once the annotation layer is completed rendered on the screen. Same for onRenderSuccess.Actual behavior
The
onRenderAnnotationLayerSuccess
function is executed before the DOM is rendered on the screen.Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: