**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.

/* Any copyright is dedicated to the Public Domain.
 * http:creativecommons.org/publicdomain/zero/1.0/ */
const fs = require("fs");
const util = require("util");
const path = require("path");
const stream = require("stream");
require("./domstubs.js").setStubs(global);
const pdfjsLib = require("pdfjs-dist/legacy/build/pdf.js");
const CMAP_URL = "../../node_modules/pdfjs-dist/cmaps/";
const CMAP_PACKED = true;
const pdfPath =
  process.argv[2] || "../../web/compressed.tracemonkey-pldi-09.pdf";
const data = new Uint8Array(fs.readFileSync(pdfPath));
const outputDirectory = "./svgdump";
try {
  
  
  fs.mkdirSync(outputDirectory);
} catch (e) {
  if (e.code !== "EEXIST") {
    throw e;
  }
}
function getFilePathForPage(pageNum) {