from pyhwp.html_converter import HwpToHtmlConverter import os import sys def main(): try: print("Starting conversion...") converter = HwpToHtmlConverter('test.hwp') converter.convert('test.html') print("Conversion finished.") if os.path.exists('styles.css'): print("styles.css created.") else: print("styles.css NOT created.") if os.path.exists('bindata'): print("bindata directory created.") else: print("bindata directory NOT created.") except Exception as e: print(f"Error during conversion: {e}") import traceback traceback.print_exc() if __name__ == "__main__": main()