()
| 230 | } |
| 231 | |
| 232 | function downloadPdf() { |
| 233 | const article = document.querySelector<HTMLElement>("#article") |
| 234 | if (article) { |
| 235 | Print.print(article, { title: articleTitle }) |
| 236 | .then(() => console.log("Printing complete")) |
| 237 | .catch((error) => console.error("Printing failed:", error)) |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | function downloadWord() { |
| 242 | const dom = document.querySelector("#article") |