Skip to content

Conversation

@stropho
Copy link

@stropho stropho commented May 24, 2022

Closes #119

Allow passing both template file path or a buffer created using the template file.

As carbon internally tries to indicate the template type (xlsx, odt,...) by its extension which is not available when using the buffer, it is required to pass an option extension when using the buffer. For example

carbone.render(buffer, data, {extension: 'odt'}, callback);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Render returned documents from database

1 participant