public class MailMergeCleanupOptions
Example: Example: Example:
doc.getMailMerge().setCleanupOptions(MailMergeCleanupOptions.REMOVE_UNUSED_FIELDS);
doc.getMailMerge().setCleanupOptions(MailMergeCleanupOptions.REMOVE_EMPTY_PARAGRAPHS);
doc.getMailMerge().setCleanupOptions(MailMergeCleanupOptions.REMOVE_CONTAINING_FIELDS);
Field Summary | ||
---|---|---|
static final int | NONE | |
Specifies a default value.
|
||
static final int | REMOVE_EMPTY_PARAGRAPHS | |
Specifies whether paragraphs that contained mail merge fields with no data should be removed from the document.
When this option is set, paragraphs which contain region start and end merge fields which are otherwise empty
are also removed.
|
||
static final int | REMOVE_UNUSED_REGIONS | |
Specifies whether unused mail merge regions should be removed from the document.
|
||
static final int | REMOVE_UNUSED_FIELDS | |
Specifies whether unused merge fields should be removed from the document.
|
||
static final int | REMOVE_CONTAINING_FIELDS | |
Specifies whether fields that contain merge fields (for example, IFs) should be removed from the document
if the nested merge fields are removed.
|
||
static final int | REMOVE_STATIC_FIELDS | |
Specifies whether static fields should be removed from the document. Static fields are fields, which
results remain the same upon any document change. Fields, which do not store their results in a document
and are calculated on the fly (like |
||
static final int | REMOVE_EMPTY_TABLE_ROWS | |
Specifies whether empty rows that contain mail merge regions should be removed from the document.
|
public static final int NONE
public static final int REMOVE_EMPTY_PARAGRAPHS
public static final int REMOVE_UNUSED_REGIONS
public static final int REMOVE_UNUSED_FIELDS
public static final int REMOVE_CONTAINING_FIELDS
public static final int REMOVE_STATIC_FIELDS
public static final int REMOVE_EMPTY_TABLE_ROWS