docs: function submissionToPDF(params, cb) {
    logger.debug("renderPDF submissionToPDF", params);
    params = params || {};
  
    var maxConcurrentPhantomPerWorker = params.maxConcurrentPhantomPerWorker || config.get().maxConcurrentPhantomPerWorker;
  
    if (!params.submission || !params.submission.formSubmittedAgainst || !params.options || !params.options.location) {
      return cb("Invalid Submission Data. Expected a submission and location parameter.");
    }
  
    pdfGenerationQueue = pdfGenerationQueue || createPDFGenerationQueue(maxConcurrentPhantomPerWorker);
  
    //Adding the export task to the queue
    pdfGenerationQueue.push(params, cb);
  }