This can be done by creating a java action with an input parameter of System.FileDocument and optional returns a System.Image
I convert it online here: https://oneconvert.com/pdf-converter/pdf-to-jpg
It's not the best decision, but it works for free.