Files
Jonas Jenwald 9e98311293 [api-major] Remove support for using PDFPageView standalone
Currently the `PDFPageView` code, and even the CSS rules, contains a number of special-cases necessary to ensure that it works correctly when used without a surrounding viewer.
That goes back many years, and it was done since the `PDFViewer` could originally only show all pages (in a scrollable view) rather than just one page. However, since five years ago, the `PDFViewer` class also has a `PAGE` scroll-mode allowing only a single page to be shown and even before that the `PDFSinglePageViewer` class existed which allowed only one page to be displayed.

Note that using the `PDFPageView` class directly always had a number of downsides, since a lot of the PDF.js viewer-functionality assumes that a "full" viewer is available; for example it doesn't support searching, links, or adding/modifying annotations.

Furthermore, the Firefox PDF Viewer or the GENERIC PDF.js viewer doesn't need the standalone `PDFPageView` functionality which means that it does nothing except increasing the maintenance burden of the code.

Hence this patch removes all JavaScript and CSS code that only existed to support using `PDFPageView` standalone, and thus also removes the `pageviewer` viewer-component example.
However, the `PDFPageView` class is still being exported in the viewer-components to allow building a fully *custom* viewer.

*Note:* Users previously depending directly on `PDFPageView` are advised to switch to using the `PDFSinglePageViewer` class instead.
2026-11-04 14:10:16 +01:00
..