We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14902a6 commit e543390Copy full SHA for e543390
1 file changed
lexoid/core/conversion_utils.py
@@ -159,15 +159,16 @@ def handle_load_finished(status):
159
160
161
def convert_doc_to_pdf(input_path: str, temp_dir: str) -> str:
162
+ input_path = os.path.abspath(input_path)
163
+ temp_dir = os.path.abspath(temp_dir)
164
temp_path = os.path.join(
165
temp_dir, os.path.splitext(os.path.basename(input_path))[0] + ".pdf"
166
)
167
168
# Convert the document to PDF
169
# docx2pdf is not supported in linux. Use LibreOffice in linux instead.
170
# May need to install LibreOffice if not already installed.
- input_path = os.path.abspath(input_path)
- temp_dir = os.path.abspath(temp_dir)
171
+
172
if "linux" in sys.platform.lower():
173
subprocess.run(
174
[
0 commit comments