Class AsposePdfTemplateProcessor

    • Constructor Detail

    • Method Detail

      • getDocumentName

        protected java.lang.String getDocumentName​(java.util.Map<java.lang.String,​java.lang.Object> payload)
      • processTemplate

        public TemplateProcessingResult processTemplate​(TemplateHolder templateHolder,
                                                        java.util.Map<java.lang.String,​java.lang.Object> payload,
                                                        java.util.Map<java.lang.String,​java.lang.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,
                                         org.flowable.common.engine.impl.el.ExpressionManager expressionManager,
                                         org.flowable.common.engine.api.variable.VariableContainer variableContainer)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getChoiceIndex

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

        protected boolean isExpression​(java.lang.String fieldExpression)
      • getFieldExpression

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

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

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

        protected org.flowable.content.api.ContentItem createProcessorContentItem​(org.flowable.content.api.ContentService contentService,
                                                                                  java.lang.String outputDocumentName,
                                                                                  java.lang.String outputDocumentType)
        Specified by:
        createProcessorContentItem in class DocumentTemplateProcessor
      • getAsByteArray

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

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