singerla / pptx-automizer

A template based pptx generator for Node.js
MIT License
63 stars 11 forks source link

updated .load, .loadRoot, rootTemplate and preTemplates to allow for supplying buffers in addition to file paths. #109

Closed mikemeerschaert closed 2 months ago

mikemeerschaert commented 2 months ago

This enables loading files from a buffer in addition to a file path. Resolves #108

singerla commented 2 months ago

This is awesome! Thank you so much!

singerla commented 2 months ago

I will also need to update readme. I'll come back to this tomorrow!

mikemeerschaert commented 2 months ago

Thanks! I also noticed a minor issue with logging where sometimes it prints the full byte array to the console because it still treats the file like the file path, but i haven't had time to create a way to reproduce it and track it down. I'll work on it Monday (I'm in PST) and update the branch when I figure out how to resolve!

singerla commented 2 months ago

The full byte array in console might have been caused by automizer.getLocation();

mikemeerschaert commented 2 months ago

Thank you for accepting and merging so quickly so I don't have to maintain a fork, much appreciated!