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

Function downloadPdf

contents/pianshen.tsx:65–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 function downloadPdf() {
66 const article = document.querySelector<HTMLElement>("#article_content")
67 if (article) {
68 Print.print(article, { title: articleTitle })
69 .then(() => console.log("Printing complete"))
70 .catch((error) => console.error("Printing failed:", error))
71 }
72 }
73
74 function downloadWord() {
75 const dom = document.querySelector("#article_content")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected