fix: ppt filepath

This commit is contained in:
Krishav Raj Singh 2025-08-23 21:36:56 +05:30
parent 0eafcf6c9f
commit 0abe7a629f
1 changed files with 3 additions and 3 deletions

View File

@ -74,11 +74,11 @@ class PresentationToPDFAPI:
for slide_num, slide_data in slides.items():
filename = slide_data.get('filename')
file_path = slide_data.get('file_path')
title = slide_data.get('title', f'Slide {slide_num}')
if filename:
# Treat filename as absolute path only
html_path = Path(filename)
if file_path:
html_path = Path(f"/workspace/{file_path}")
print(f"Using path: {html_path}")
# Verify the path exists