I have already adapted my package in a branch. And I think the required changes are straightforward. I suppose the same holds for doc-view.
Andreas