When you install Foxit PhantomPDF, you may get an error “Foxit PhantomPDF Setup Wizard ended prematurely“
This error may be caused by a %temp% folder that the installer file fails to write/read data into/from it. Try the following instructions.
1.Reboot your computer, Do nothing but right click on Start button, choose Run, type %temp% and press enter.
2. Delete all the contents in the Temp folder, then launch PhantomPDF setup file to see if this might work with it.
3. If the issue is not resolved, locate to the Foxit PhantomPDF folder in Temp folder if any and delete it, create a new folder with the same name, this should resolve this issue.
If the above doesn't resolve, it might occur due to no permissions to %Temp% folder, you can try giving full permission to Temp folder.