-
Bug
-
Resolution: Fixed
-
Critical
-
2.1.2, 2.2.3, 2.3.1, 2.4.5, 2.5.1
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
-
In Moodle 2.x, the default setting for the "File" resource is "Display: Automatic". For PDF files, this means that they will be shown as an embedded PDF viewer (if a browser plugin is available). This causes problems in various configurations:
- In IE 8 (other versions not tested), the PDF file is displayed but not in a very user-friendly way: The "viewport" for the PDF file is rather small, covers only part of the screen, and is in landscape format (whereas typical PDF documents are portrait format, at least for us). There is no obvious option to open the document in a larger window.
- Users of mobile devices (Android, iPad) have reported that the files are displayed, but they are unable to scroll to the next page. (Likely this is a problem with mobile browsers, but one that seems to be widespread.)
All in all, I don't see much benefit for displaying PDFs in an embedded window, however I see that it causes problems to some of our users.
Suggestions for a solution:
(a) Remove PDF from the list of file types to be displayed in an embedded frame - see mod/resource/locallib.php, function resource_get_final_display_type(), variable $embed
(b) Alternatively, display a link to the file above the embedded frame.
I can provide a patch, but would be happy about some feedback regarding the options above.
- has a non-specific relationship to
-
MDL-29624 Media embedding should be consistent and customisable
- Closed
-
MDL-31368 Embedded HTML resources don't make full use of available space, and have extra scrollbars.
- Closed
- has been marked as being related by
-
MDL-27712 Embedded PDF pages are blank in 2.0.3
- Closed
-
MDL-33339 Pdf files won't embed or in-frame since upgrade to 2.2.3
- Closed
- is duplicated by
-
MDL-41628 Can't open PDF on iPad
- Closed