Exporting PDF from plugin

How to get the exported PDF file from:

const bytes = await node.exportAsync({
    format: 'PDF',
  });