Package com.levigo.jadice.server.mail
Enum MailBodyCreatorNode.HtmlProcessingMode
- java.lang.Object
-
- java.lang.Enum<MailBodyCreatorNode.HtmlProcessingMode>
-
- com.levigo.jadice.server.mail.MailBodyCreatorNode.HtmlProcessingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<MailBodyCreatorNode.HtmlProcessingMode>
- Enclosing class:
- MailBodyCreatorNode
public static enum MailBodyCreatorNode.HtmlProcessingMode extends Enum<MailBodyCreatorNode.HtmlProcessingMode>
The possible options to handle images in the html body when performing email conversions.- Since:
- jadice server 5.7.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
This is the DEFAULT setting that compared to the previous jadice server version doesn't change the image handling at all.FIT_BODY_IMAGES
If possible this setting tries to scale the images such that they fit onto the pdf pages without increasing the page format.PLACEHOLDER_ATTACHMENTS_ALL
This setting moves all images in the html body to the attachments part of the converted email document.PLACEHOLDER_ATTACHMENTS_BY_SIZE
This setting moves the images that are too wide or too high into the attachments part of the converted email document.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MailBodyCreatorNode.HtmlProcessingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static MailBodyCreatorNode.HtmlProcessingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final MailBodyCreatorNode.HtmlProcessingMode DEFAULT
This is the DEFAULT setting that compared to the previous jadice server version doesn't change the image handling at all. Meaning that currently if an image is wider than the current page view width, the page view width is adjusted rather than scaling the image down to fit on the page.
-
PLACEHOLDER_ATTACHMENTS_ALL
public static final MailBodyCreatorNode.HtmlProcessingMode PLACEHOLDER_ATTACHMENTS_ALL
This setting moves all images in the html body to the attachments part of the converted email document. Placeholders are inserted as a replacement for the images that have been moved to the attachments section.
-
PLACEHOLDER_ATTACHMENTS_BY_SIZE
public static final MailBodyCreatorNode.HtmlProcessingMode PLACEHOLDER_ATTACHMENTS_BY_SIZE
This setting moves the images that are too wide or too high into the attachments part of the converted email document. Placeholders are inserted as a replacement for the images that have been moved to the attachments section.
-
FIT_BODY_IMAGES
public static final MailBodyCreatorNode.HtmlProcessingMode FIT_BODY_IMAGES
If possible this setting tries to scale the images such that they fit onto the pdf pages without increasing the page format. This cannot be guaranteed in all cases since otherwise there could be a lossy conversion with complex HTML markups.
-
-
Method Detail
-
values
public static MailBodyCreatorNode.HtmlProcessingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MailBodyCreatorNode.HtmlProcessingMode c : MailBodyCreatorNode.HtmlProcessingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MailBodyCreatorNode.HtmlProcessingMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-