edward8
December 19th, 2015, 08:55 PM
I would like to add the option to convert any pdf to png by right clicking on it in PCManFM and selecting an item from the menu.
I know the very simple command line I need:
convert document.pdf document.png
but I don't know how to formulate this for any file in a shortcut.
I tried
convert %f %f.png
and even
convert "%f" "${%f::-4}.png"
but neither had any effect, as I don't really understand how %f can be used.
Is the only way to do this to write a script? (if so, I've done it already, so no problem ;))
Thanks for any help you can give me.
I know the very simple command line I need:
convert document.pdf document.png
but I don't know how to formulate this for any file in a shortcut.
I tried
convert %f %f.png
and even
convert "%f" "${%f::-4}.png"
but neither had any effect, as I don't really understand how %f can be used.
Is the only way to do this to write a script? (if so, I've done it already, so no problem ;))
Thanks for any help you can give me.