index.js
// writes inputBuffer to one temporary file, creates an empty output file and eventually returns output
writes inputBuffer to one temporary file, creates an empty output file and eventually returns output
writes inputBuffer to one temporary file creates an empty output file and eventually returns output
async function useTempFilesPDFInOut(inputBuffer, fn) {
  return useTempFilesPDF(
    { input: { writeBuffers: [inputBuffer] }, output: { numFiles: 1 } },
    async ({ input, output }) => {
      await fn(input[0], output[0]);
      return await fs.readFile(output[0]);
    },
  );
}
async function useTempFilesPDFInOut ( inputBuffer , fn ) { return useTempFilesPDF ( { input : { writeBuffers : [ inputBuffer ] } , output : { numFiles : 1 } } , async ( { input , output } ) => { await fn ( input [ 0 ] , output [ 0 ] ) ; return await fs . readFile ( output [ 0 ] ) ; } , ) ; }
writes inputBuffer to one temporary file, creates an empty output file and eventually returns output
writes inputBuffer to one temporary file creates an empty output file and eventually returns output