[AMOS commit] MDL-70038 assign: add suport for pdftoppm tool Committed into Git: 2020-10-26 15:57 UTC

[AMOS commit] MDL-70038 assign: add suport for pdftoppm tool Committed into Git: 2020-10-26 15:57 UTC

by AMOS bot -
Number of replies: 0
Author: Jordi Pujol Ahulló
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.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=0846a76c684a2df79e83732368e956be9cc7b5cf
http://github.com/moodle/moodle/commit/0846a76c684a2df79e83732368e956be9cc7b5cf

+ 3.11 en [pathtopdftoppm,core_admin]
+ 3.11 en [pathtopdftoppm_help,core_admin]