()
| 63 | } |
| 64 | |
| 65 | function downloadPdf() { |
| 66 | const article = document.querySelector<HTMLElement>("#article_content") |
| 67 | if (article) { |
| 68 | Print.print(article, { title: articleTitle }) |
| 69 | .then(() => console.log("Printing complete")) |
| 70 | .catch((error) => console.error("Printing failed:", error)) |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | function downloadWord() { |
| 75 | const dom = document.querySelector("#article_content") |