redocx icon indicating copy to clipboard operation
redocx copied to clipboard

`createBuffer` method

Open zekenie opened this issue 7 years ago • 6 comments

Hi there!

[This is an incomplete PR to start a conversation]

Love redocx. I'm trying to make an http server that can serve up small word docs without hitting the filesystem. I figured I'd add a method to convert to a buffer but I'm running into some trouble understanding officegen. It seems like the finalize event that we pass to generate gets called before the stream gets its first data event. Does that make sense?

zekenie avatar Sep 21 '17 13:09 zekenie

Seems great to me! Can you upload a gif or something to show its behaviour? Then I'm happy to merge this!

nitin42 avatar Sep 22 '17 07:09 nitin42

So its not quite working yet, that’s the problem. I’m having trouble understanding why. It seems like the finalize method is called before… its finalized

Zeke

On Sep 22, 2017, 2:51 AM -0500, Nitin Tulswani [email protected], wrote:

Seems great to me! Can you upload a gif or something to show its behaviour? Then I'm happy to merge this! — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

zekenie avatar Sep 22 '17 15:09 zekenie

Any progress?

nitin42 avatar Sep 30 '17 11:09 nitin42

No this slipped off my stack, but I’m looking to get back to it next week

On Sep 30, 2017, 6:57 AM -0500, Nitin Tulswani [email protected], wrote:

Any progress? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

zekenie avatar Oct 22 '17 03:10 zekenie

No issues!

nitin42 avatar Oct 24 '17 17:10 nitin42

See #19. I can move the logic out of the render function, but it felt right to leave it there. The implementation is complete, with example.

bigmstone avatar Oct 02 '18 12:10 bigmstone