adobe / pdf-embed-api-samples

Samples for Adobe Document Services PDF Embed API
https://documentcloud.adobe.com/view-sdk-demo/index.html
MIT License
219 stars 132 forks source link

Enforce refresh pdf file content in same iframe for multiple pdf files via <input> tag. #5

Closed kern-ding closed 2 years ago

kern-ding commented 4 years ago

Expected Behaviour

Open 1st pdf file via , passing the file as URL (URL.createObjectURL()) to this.AdobeDCView.previewFile({content: {location}, metaData: {fileName, id}}, viewerConfig); It render correctly.

Open 2nd pdf file via <input, same steps as above; it eventually calls AdobeDCView.previewFile with a different URL, expected to see the new pdf file rendered.

Actual Behaviour

It's the 1st pdf rendered in iframe.

Is there a way to enforce refreshing the pdf files?

cfjedimaster commented 2 years ago

Hi, issues here should address problems in the samples for this repo. For questions/issues using Embed, please use our forums: https://community.adobe.com/t5/document-services-apis/ct-p/ct-Document-Cloud-SDK?page=1&sort=latest_replies&filter=all&lang=all&tabid=discussions