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

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

assert(canvasAndContext.canvas, "Canvas is not specified");
    
    
    canvasAndContext.canvas.width = 0;
    canvasAndContext.canvas.height = 0;
    canvasAndContext.canvas = null;
    canvasAndContext.context = null;
  },
};
const pdfjsLib = require("pdfjs-dist/legacy/build/pdf.js");
const CMAP_URL = "../../../node_modules/pdfjs-dist/cmaps/";
const CMAP_PACKED = true;
const STANDARD_FONT_DATA_URL =
  "../../../node_modules/pdfjs-dist/standard_fonts/";
const pdfPath =
  process.argv[2] || "../../../web/compressed.tracemonkey-pldi-09.pdf";
const data = new Uint8Array(fs.readFileSync(pdfPath));
const loadingTask = pdfjsLib.getDocument({
  data,
  cMapUrl: CMAP_URL,
  cMapPacked: CMAP_PACKED,
  standardFontDataUrl: STANDARD_FONT_DATA_URL,
});
loadingTask.promise
  .then(function (pdfDocument) {
    console.log("# PDF document loaded.");
    
    pdfDocument.getPage(1).then(function (page) {
      
      const viewport = page.getViewport({ scale: 1.0 });