showing results for - "fs writefilesync in pdfdocument"
Helena
21 Feb 2018
1var base64 = require('base64-stream');
2var base64stream = pdfDoc.pipe(base64.encode());
3pdfDoc.end();
4
5var tempFileBase64 = ''
6
7base64stream.on('data',function(buffer){
8var part = buffer.toString();
9    tempFileBase64 += part;
10    console.log('process data ' + part);
11});
12
13base64streamEvaluations.on('end',function(){
14  console.log('final output ' + tempFileBase64);
15});
16