public String getOutputFilename(String layoutName) {
   Layout layout = layouts.get(layoutName);
   String name = null;
   if (layout != null) {
     name = layout.getOutputFilename();
     if (name != null) {
       name =
           PDFUtils.getValueFromString(
               name); // get the string if it has ${now} or ${now DATEFORMAT} in it
     }
   }
   return name == null ? outputFilename : name;
 }
Beispiel #2
0
 public Color getBackgroundColorVal(RenderingContext context, PJsonObject params) {
   return ColorWrapper.convertColor(PDFUtils.evalString(context, params, backgroundColor));
 }