**Please do not work on this issue unless you have applied to the outreachy project.**

The [node/pdf2svg.js](https://github.com/mozilla/pdf.js/blob/master/examples/node/pdf2svg.js) example currently uses the older style of `promise.then` and callbacks. Convert it to use an `async` function and `await` style.

if (!(this instanceof ReadableSVGStream)) {
    return new ReadableSVGStream(options);
  }
  stream.Readable.call(this, options);
  this.serializer = options.svgElement.getSerializer();
}
util.inherits(ReadableSVGStream, stream.Readable);
ReadableSVGStream.prototype._read = function () {
  let chunk;
  while ((chunk = this.serializer.getNext()) !== null) {
    if (!this.push(chunk)) {
      return;
    }
  }
  this.push(null);
};
function writeSvgToFile(svgElement, filePath) {
  let readableSvgStream = new ReadableSVGStream({
    svgElement,
  });
  const writableStream = fs.createWriteStream(filePath);