galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.14k stars 169 forks source link

How to get second parameter of mergePDFPagesToPage() as stream #399

Closed abelovqt closed 5 years ago

abelovqt commented 5 years ago

There is a method https://github.com/galkahana/HummusJS/wiki/Embedding-pdf#merging-a-page-content-to-another-page-content pdfWriter.mergePDFPagesToPage(inTargetPage,inSourcePDFFilePath,[inOptionsObject/inInterPagesCallback]) it takes second argument as path to file, but I need use buffer, is it possible?

abelovqt commented 5 years ago

Found solution, just use path to file, so at first u need save files and then use mergePDFPagesToPage() where second argument will be path to your file. Cheers!