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