David Shorthouse
unread,Aug 27, 2012, 5:09:06 AM8/27/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mozilla-d...@lists.mozilla.org
Folks,
Is there a property or method in your PDFView that would allow me to determine when the text layer content for the current page is fully rendered and appended to the DOM?
I tried to use PDFView.pages[window.currentPageNumber-1].renderingState === 3 but no such luck. I had assumed renderingState meant ALL the text has rendered and is currently in the DOM.
What I am attempting to do (as I see others here as well) is manipulate the text, but to do so, the text layer content must be fully present. I've made several attempts with some degree of success, but because I must be doing my injections as the text layer gets rendered (i.e. hasn't yet fully appended), the sizes and positions of the div elements get mangled.
Thanks for any insight.
Dave