Answered
[PDF Embed API] replace loaded pdf file
Hi all,
Let's say i loaded a PDF file successfully.
I want to load another file with the same viewer & config. how can i do it?
Hi all,
Let's say i loaded a PDF file successfully.
I want to load another file with the same viewer & config. how can i do it?
I don't work with React enough to advise you on the specifics there. However, before loading a new PDF, you are going to need to set the adobeDCView object to null. You also might need to empty the container element prior to doing so before ComponentUnmount triggers.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.