PyOD is a super simple python library (https://github.com/mirkonasato/pyodconverter).
It has one command usage
> "C:\Program Files (x86)\OpenOffice 4\program\python-core-2.7.18" DocumentConverter.py test.odt test.pdf
This should convert test.odt
to a pdf. I'm using my own PC, not a VPS.
I can't figure out how to use this command. I've been at this for literally 3 hours, I have no experience in python or the command line.
I've tried running this from `cmd.exe
cd /
python "C:\Program Files (x86)\OpenOffice 4\program\python-core-2.7.18" DocumentConverter.py test.odt test.pdf
But it gave me this error:
C:\Users\user\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe: can't find '__main__' module in 'C:\\Program Files (x86)\\OpenOffice 4\\program\\python-core-2.7.18'
And I have absolutely NO idea what it means, google was not helpful.
I've also tried
cd Program Files (x86)\OpenOffice 4\program\python-core-2.7.18
DocumentConverter.py test.odt test.pdf
All this did was try and open the file. It asked me what I wanted to open it with, I chose Python.exe and it simply opened a python terminal then closed it immediately, and no new file was in python-core-2.7.18
so I'm assuming it didn't work.
So THEN I tried opening python.exe
directly from python-core-2.7.18
and running DocumentConverter.py test.odt test.pdf
but it said I had invalid syntax.
I literally have no idea how to use python. This is for a PHP project, I'm literally only using this one small fraction of python.