Command to render a page and save it as an image
The command could work for multiple pages (page range) and save them to the desktop (or some other configurable directory). The format of the images should be lossless, 'png' for example.
Not a problem if you use any extra graphics application such as PDFtoPNG or one of many others as an external library function so I can add that to the menu as an external executable via scripts.
Mine is here but on running I see some oddities ? (was adapted from TXT so header is wrong)
https://github.com/GitHubRulesOK/SumatraPDF-Plus/blob/master/Plus/ExportPng.cmd
Result is separate PNGs
Using 3rd party tools kind of defeats the point.
MuPDF is the 3rd Party tool SumatraPDF is built on it is just that MuPDF has about 20 different tools for different tasks so one for Android one for Web and Windows one for Python and one for exporting images (MuRaster) Yesterdays version but it is for other PN types not PNG
but Mutools is far more versatile as a toolbox of more than most and has PNG export but Just like its sister GhostScript it is not so good as a screen display tool. The MuPDF-GL that SumatraPDF uses has no ability to "save as" anything else