You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling PDF to buffer instead of saving it to file would be nice feature.
html-pdf library already support it, just use toBuffer instead of toFile method.
This is not hard to implement, and can be useful for developing web services or apis when pdf should be returned to client as response instead of saving it to file. Could be additional parameter that can me passed to create function or part of options object.
The text was updated successfully, but these errors were encountered:
That would be a nice feature honestly. As sometimes, you just want to generate and return the buffer. There should be an option for that. Perhaps if path is not passed, then return as buffer.
Compiling PDF to buffer instead of saving it to file would be nice feature.
html-pdf library already support it, just use toBuffer instead of toFile method.
This is not hard to implement, and can be useful for developing web services or apis when pdf should be returned to client as response instead of saving it to file. Could be additional parameter that can me passed to create function or part of options object.
The text was updated successfully, but these errors were encountered: