I am trying to read text from a slide presentation (as a work around to copying and pasting since all of the slides have the same exact format). When using this code:
res.data.pageElements.forEach((file) => {
let textElements = file.shape.text.textElements;
textElements.forEach(function(each){
console.log(each.textRun.content);
});
});
Even though the response says its there if I use console.log(res.data.pageElements.shape.text.textElements.textRun), referencing the way I did, returns undefined.
Please let me know if there is a solution to my problem, or if you know a work around to copy a side from presentation X to presentation Y. Thanks in advance!
There is an issue tracker for this: https://issuetracker.google.com/36761705
console.log(each.textRun);?resin whichcontenthas text in it. @ic3b3rg