-
Notifications
You must be signed in to change notification settings - Fork 27
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
A react example? #23
Comments
Have you already converted the code into a React component? |
@Laomai-codefee Hi, this is how I am using right now. I am making changes to your source code to suit my requirements like styling comment section, buttons etc. Then I am building the source code using
When I need to trigger something, I use windows.postMessage api. I was wondering if there's any way I can use the source code directly(src) , like a react component to achieve same thing? Sorry if this is a naive question, my understanding is bit weak on this subject. |
@justpankajdotcom I think implementing the viewer yourself is too difficult, so I chose to extend on top of PDF.js. If you need to read data inside the plugin, you can do so by adding URL parameters, just like ae_username=myusername. |
Hi @Laomai-codefee ,
I am having some trouble integrating the library(not the build) as a react component. My use case require me to push annotations to the backend, and then retrieve them back and display over the pdf. I can take care of the part to push to the backend, but can you help me how to incorporate the source directly as a react component to read and display the PDF? Thanks.
The text was updated successfully, but these errors were encountered: