forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-70038 assign: add suport for pdftoppm tool
pdftoppm (from poppler-utils package) is several orders of magnitude quicker than ghostscript extracting PNG images from PDF documents. We add support for this tool and use it whenever set up, or using gs as before if missing. Revisited code with peer review comments. In particular: 1. Make default path for pdftoppm empty string. 2. Fix a typo on the method description for get_gs_command_for_image. 3. Added more information why is useful pdftoppm into string pathtopdftoppm_help. 4. Check that path for pdftoppm is executable to prevent errors. Otherwise, use gs.
- Loading branch information
Showing
3 changed files
with
60 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters