How to call pdf-converter.py #1079
-
Hello. I am new to python. I am trying to call pdf-converter.py in the following for loop instead of printing the file name when it finds an .oxps file:
However, as pdf-converter.py requires the filename to convert as a parameter, I can't use import, or I get the following error:
I have tried
Thanks for your help and advice. Tim |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is an example script intended to be invoked standalone like as usual: It is of course possible to convert this script to an importable module - no major problem, but some work is still required. |
Beta Was this translation helpful? Give feedback.
This is an example script intended to be invoked standalone like as usual:
python pdf-converter.py some-file-to-convert
.It is not intended to be imported ...
All the scripts in this repo mainly are meant to be used as templates or starting point to develop an own solution - not necessarily as stable, fool-proof utilities, guaranteed to always work, etc.
It is of course possible to convert this script to an importable module - no major problem, but some work is still required.