File size: 759 Bytes
59c6ad0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
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()
|