simplepdf-embed icon indicating copy to clipboard operation
simplepdf-embed copied to clipboard

Feature Request : To read text contents from an embedded iframe

Open youngyeeer opened this issue 1 year ago • 1 comments

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!

youngyeeer avatar Nov 20 '23 20:11 youngyeeer

Hey @youngyeeer!

Thanks for the kind words!

So that I better understand your feature request, could expand on it?

More specifically:

  1. Copilot style capabilities: do you expect to be able to retrieve the filled in details in real-time, or the document content would suffice?
  2. What is the end flow for customers: download the document, or submit it to you?

Have a great end of weekend!

Benjamin

bendersej avatar Dec 03 '23 16:12 bendersej