simplepdf-embed
simplepdf-embed copied to clipboard
Feature Request : To read text contents from an embedded iframe
Hi! First of all I'd like to thank you for developing such an elegant solution for pdf editing!
I am a developer looking to enable copilot style capabilities on an uploaded PDF file. The thing is, I am currently unable to read the contents from the embedded iframe due to a cross-origin error.
User
Uncaught DOMException: Failed to read a named property 'document' from 'Window': Blocked a frame with origin "mysite.com" from accessing a cross-origin frame.
I am wondering if there are any ways I could read the text out so that it could form part of my LLM prompt.
Thank you!
Hey @youngyeeer!
Thanks for the kind words!
So that I better understand your feature request, could expand on it?
More specifically:
- Copilot style capabilities: do you expect to be able to retrieve the filled in details in real-time, or the document content would suffice?
- What is the end flow for customers: download the document, or submit it to you?
Have a great end of weekend!
Benjamin