-
Can you use the HTML-to-PPTX function ( |
Beta Was this translation helpful? Give feedback.
Answered by
gitbrent
Jun 2, 2022
Replies: 1 comment 1 reply
-
Yes, you can actually do this. const script = document.createElement("script");
script.src = "https://cdn.jsdelivr.net/gh/gitbrent/[email protected]/dist/pptxgen.bundle.js";
script.onload = function () {
const pptx = new PptxGenJS();
pptx.tableToSlides('tableTest');
pptx.writeFile();
};
document.getElementsByTagName("head")[0].appendChild(script); Open an F12/DevTools window and use the JavaScript above with a given table id (or edit the table's HTML and add one if needed - i tested this with wikipedia and it worked). |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pearl6527
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can actually do this.
Open an F12/DevTools window and use the JavaScript above with a given table id (or edit the table's HTML and add one if needed - i tested this with wikipedia and it worked).