How to export to image files based on Batch Type?

Question

How to export to image files based on Batch Type?

Answer

There are several ways in which the data can be exported.
The export can be performed either by creating a specific Export to the image files profile or the custom script within the document definition. Such a profile can be used under certain conditions.

  • In case the Export to image files is selected, the conditions can be set based on the field values. Keep in mind that the batch registration parameter values can be passed to the fields.

  • If the Custom export (script) option is used then additional conditions can be specified directly in the code.
    Within these conditions, both the Batch type name and the Batch registration parameters can be used directly, as they can be accessed via the IDocument properties. For this, please use the following code:
  • Document.Batch.BatchTypeName <--- to acess the Batch Type name if necessary
    Document.Batch.Properties    <--- to acess the Batch Registration parameters collection

  • As per the redact option, it can be specified directly in the code by passing as FieldsToRedact property of IExportImageSavingOptions (the list of fields to be redacted in the resulting image). 

Additional Information

IExportImageSavingOptions - describes image-saving options
IExportFieldsToRedact - describes the list of fields to be redacted in the resulting image
IDocument - document methods and parameters
IBatch - batch methods and parameters
IProperties - batch registration parameters

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.