Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer in Render method #163

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

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