Class AsposePdfTemplateProcessor

    • Constructor Detail

    • Method Detail

      • 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
      • 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)
      • getAsByteArray

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

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