public class AttachmentCoverCreator extends Object
Creates cover pages for single email attachments.
As this is no "single shot" action there is no way to do that in a node–worker construction.
Constructor and Description |
---|
AttachmentCoverCreator(NodeWorker<?> context,
URI stylesheet,
String targetMimeType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Stream |
createCover(StreamDescriptor separatorInformation)
Create a single cover page for a given
StreamDescriptor . |
public AttachmentCoverCreator(NodeWorker<?> context, URI stylesheet, String targetMimeType)
context
- The NodeWorker
that calls this classstylesheet
- The location of the stylesheet how to layout the cover pagetargetMimeType
- The MIME type of the result (supported: application/pdf and image/tiffpublic Stream createCover(StreamDescriptor separatorInformation) throws Throwable
StreamDescriptor
.separatorInformation
- The information that will appear on the cover pageThrowable
Copyright © 2017 levigo holding gmbh. All rights reserved.