lib/impl/pdfGeneration/doPdfGeneration.js
function loadPdfTemplate(params, cb) {
  logger.debug("renderPDF loadPdfTemplate", params);

  //Already have a compiled template, no need to compile it again.
  if (pdfTemplate) {
    return cb(null, pdfTemplate);
  } else {
    readAndCompileTemplate(function(err, compiledTemplate) {
      pdfTemplate = compiledTemplate;
      return cb(err, pdfTemplate);
    });
  }
}
function loadPdfTemplate(params, cb) {
  logger.debug("renderPDF loadPdfTemplate", params);

  //Already have a compiled template, no need to compile it again.
  if (pdfTemplate) {
    return cb(null, pdfTemplate);
  } else {
    readAndCompileTemplate(function(err, compiledTemplate) {
      pdfTemplate = compiledTemplate;
      return cb(err, pdfTemplate);
    });
  }
}
function loadPdfTemplate ( params , cb ) { logger . debug ( "renderPDF loadPdfTemplate" , params ) ; //Already have a compiled template, no need to compile it again. if ( pdfTemplate ) { return cb ( null , pdfTemplate ) ; } else { readAndCompileTemplate ( function ( err , compiledTemplate ) { pdfTemplate = compiledTemplate ; return cb ( err , pdfTemplate ) ; } ) ; } }
Loading The Submission Template From Studio
@param params
- location
- pdfTemplateLoc
@param cb
@returns {*}
@private
Loading The Submission Template From Studio