PDF views should have SPI to expose their PDFDocument.
I think a good way would be to add a new category, and client apps could test if the document view implements the category or not.
(In reply to comment #1) > I think a good way would be to add a new category, and client apps could test > if the document view implements the category or not. By category, I meant protocol.
Created attachment 50619 [details] Patch
Comment on attachment 50619 [details] Patch r+
Comment on attachment 50619 [details] Patch removing commit-queue flag, landed this myself for Andy.