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