HummusJS icon indicating copy to clipboard operation
HummusJS copied to clipboard

input buffer and output buffer

Open smettu007 opened this issue 6 years ago • 2 comments

Hello

Is there a way to take input pdf buffer and output pdf buffer?

We are planning to dynamically filling pdf pieces, locking them and merge them together. But we want to have buffer as output so we can convert it to base6d string and send it t o an extenal api that handles the pdf accordingly.

Any suggestion would be great thanks

smettu007 avatar Oct 12 '18 23:10 smettu007

most methods allow you to replace the default file usage, for either input or output, with a custom stream object. you can read about custom stream objects here - https://github.com/galkahana/HummusJS/wiki/Custom-streams. if there's nothing existing for buffers - just create one.

for example - create PDF allows to provide either a file path or such a stream object: https://github.com/galkahana/HummusJS/wiki/Basic-pdf-creation#create-pdfs

galkahana avatar Oct 25 '18 12:10 galkahana

Is this now hummus.PDFRStreamForBuffer and hummus.PDFWStreamForBuffer?

goatandsheep avatar Sep 09 '19 02:09 goatandsheep