Im looking to hopefully customise and interact with the existing PDF plugin (that can be loaded using an <embed> tag) without modifying and rebuilding chromium.
What i'd really like is to just use the `application/x-google-chrome-pdf` type, and call postMessage, and listen for message events, so that i can build my own UI around it.
Seems in the source that everything except for origin == "chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai" wont work, and I don't seem to be able to work around it with any command line args or instantiation parameters.
One workaround i tried is to load some html containing an <embed type="application/x-google-chrome-pdf" ...> element, with the URL set to "chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/fake.html", but the element just shows as a black rectangle...at least its better than "Could not load PDF viewer plugin".
Any help would be greatly appreciated!