MCPcopy
hub / github.com/027xiguapi/code-box / downloadPdf

Function downloadPdf

contents/360doc.tsx:62–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 function downloadPdf() {
63 const article = document.querySelector<HTMLElement>("#bgchange")
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("#bgchange")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected