Skip to content

Commit

Permalink
Delete some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sosadsonar committed Nov 7, 2023
1 parent 8eec8da commit f59b234
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def parse_latex(input_file):
html_code = LatexNodes2Text().latex_to_text(latex_code)

with open(input_file, "w", encoding="utf-8") as f:
f.write(html_code)
f.write(html_code)

# Convert the HTML file "input.htm" to the PDF file "output.pdf".
convert_htm_to_pdf(input_file, "Decoded.pdf")
Expand All @@ -154,6 +154,7 @@ def convert_htm_to_pdf(htm_file, pdf_file):
get_cur_dir()
pdfkit.from_file(htm_file, pdf_file, options = options, configuration=get_cur_dir())
print(f"[INFO] File decoded. Output file is in {os.path.abspath(os.curdir)}.")
os.remove(htm_file)


if __name__ == "__main__":
Expand Down

0 comments on commit f59b234

Please sign in to comment.