Class AsposePdfTemplateProcessor

java.lang.Object
com.flowable.template.engine.impl.processor.DocumentTemplateProcessor
com.flowable.template.engine.impl.processor.AsposePdfTemplateProcessor
All Implemented Interfaces:
TemplateProcessor

public class AsposePdfTemplateProcessor extends DocumentTemplateProcessor
A TemplateProcessor using the Aspose Document.
  • Constructor Details

  • Method Details

    • getDocumentName

      protected String getDocumentName(Map<String,Object> payload)
    • processTemplate

      public TemplateProcessingResult processTemplate(TemplateHolder templateHolder, Map<String,Object> payload, Map<String,Object> templateProcessingSettings)
      Description copied from interface: TemplateProcessor
      Processes a template given by its definition which might have been loaded through the TemplateRepositoryService. The payload is used for the placeholders within the template content and must be valid according the TemplateVariationModel.getParameters() definition.
      Parameters:
      templateHolder - the template holder with template and template variation information
      payload - the optional payload, if the template is using placeholders to render properly (must be valid according the parameter definition)
      Returns:
      the template processing results
    • processDocument

      protected byte[] processDocument(TemplateHolder templateHolder, ExpressionManager expressionManager, VariableContainer variableContainer) throws Exception
      Throws:
      Exception
    • getChoiceIndex

      protected int getChoiceIndex(Object varValue, com.aspose.pdf.ChoiceField choiceField)
    • isExpression

      protected boolean isExpression(String fieldExpression)
    • getFieldExpression

      protected String getFieldExpression(com.aspose.pdf.Field field)
    • getSupportedFields

      protected Iterable<com.aspose.pdf.Field> getSupportedFields(com.aspose.pdf.Form pdfForm)
    • isOptionField

      protected boolean isOptionField(com.aspose.pdf.Field field)
    • createProcessorContentItem

      protected ContentItem createProcessorContentItem(ContentService contentService, String outputDocumentName, String outputDocumentType)
      Specified by:
      createProcessorContentItem in class DocumentTemplateProcessor
    • getAsByteArray

      protected byte[] getAsByteArray(com.aspose.pdf.Document doc) throws Exception
      Throws:
      Exception
    • getTemplateDocument

      protected com.aspose.pdf.Document getTemplateDocument(TemplateHolder templateHolder)