The old documentviewer needs to be stripped out of the filepreview widget. That includes the entire `DOCUMENT PREVIEW` block, as well as everything related to it.

At the same time, this widget needs to be loaded when a PDF is being shown. We are working on a way in which preview widgets can be loaded based on mimeType, but that isn't ready yet. Therefore, we can make the following change in /ui/js/content.js as a temporary solution:

```
if (contentProfile.resourceSubType === 'file') {
    // Load document viewer when a PDF or Office document needs to be displayed
    if (contentProfile.previews && contentProfile.previews.pageCount) {
        oae.api.widget.insertWidget('documentpreview', null, $('#content-preview-container'), null, contentProfile);
    } else {
        oae.api.widget.insertWidget('filepreview', null, $('#content-preview-container'), null, contentProfile);
    }
}
```