make Thumbnail from PDF like Explorer
Posted: Sat Oct 15, 2022 6:10 am
hi,
Windows can show Thumbnail from PDF in Explorer
but Adobe Acrobat, Foxit Reader or SumatraPDF must be installed as "external" reader (does not work with Portable Version)
SumatraPDF use MuPDF Library
https://github.com/ArtifexSoftware/mupdf
you can download MuPDF here
https://mupdf.com/releases/index.html (mupdf-1.20.0-windows.zip)
it include mupdf.exe, mupdf-gl.exe and mutool.exe
make a *.BAT File and include this Line
it will generate Thumbnail "Filename.PNG" with 96 DPI and 150 Pixel Height
1-1 mean only Page 1
1-N are Tbumbs from 1 until End
Sample
Windows can show Thumbnail from PDF in Explorer
but Adobe Acrobat, Foxit Reader or SumatraPDF must be installed as "external" reader (does not work with Portable Version)
SumatraPDF use MuPDF Library
https://github.com/ArtifexSoftware/mupdf
you can download MuPDF here
https://mupdf.com/releases/index.html (mupdf-1.20.0-windows.zip)
it include mupdf.exe, mupdf-gl.exe and mutool.exe
make a *.BAT File and include this Line
Code: Select all
mutool draw -o "%1.png" -r 96 -h 150 "%1" 1-11-1 mean only Page 1
1-N are Tbumbs from 1 until End
Sample
see upper left in Snapshotg:\CT>mutool draw -o "ct.22.22.pdf.png" -r 96 -h 150 "ct.22.22.pdf" 1-1
page ct.22.22.pdf 1