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

Function downloadPdf

contents/jb51.tsx:232–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected