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

Function downloadPdf

contents/medium.tsx:134–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 }
133
134 function downloadPdf() {
135 const article = document.querySelector<HTMLElement>("article")
136 if (article) {
137 Print.print(article, { title: articleTitle })
138 .then(() => console.log("Printing complete"))
139 .catch((error) => console.error("Printing failed:", error))
140 }
141 }
142
143 function downloadWord() {
144 const dom = document.querySelector("article")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected