Dear Chrome Development Team,
I am currently developing a Chrome extension that interacts with user-selected text on various platforms. While extracting text from standard web pages and Google Docs is straightforward, I have encountered challenges when dealing with PDF documents.
Specifically, I noticed that the Chrome Reading Mode allows text from a PDF to be duplicated and selected, but there doesn’t seem to be a public API to access this functionality programmatically. Similarly, while I am aware that the contextMenus API with ContextType: "selection" can capture selected text, my use case requires retrieving the selection dynamically and programmatically without relying on user actions through the context menu.
With this in mind, I have two main questions:
Are there any plans to make chrome.readingMode public, or to provide developers with a way to programmatically access text information from Reading Mode?
Is there any roadmap for enabling APIs that allow extensions to interact with PDF documents more directly, particularly to programmatically access selected text within the PDF?
Thank you for considering these questions. Any insights or updates on these features would greatly enhance the functionality of Chrome extensions for working with text.
Best regards,
Andriy