public class AdvancedCombineToPDFActionExecuter extends AbstractActionExecuter
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowMultilineEntries |
protected static int |
INDEX_PAGE_FONT_LEADING_POINT_SIZE |
protected int |
indexPageCharsPerLine |
protected java.lang.String |
indexPageFont |
protected int |
linesPerIndexPage |
protected static java.lang.String |
PARAM_ANNOTATION_INFO |
protected static java.lang.String |
PARAM_FOLDER_PATH |
protected static java.lang.String |
PARAM_PDF_FOLDER_TYPE |
protected static java.lang.String |
PARAM_PROPERTIES |
group, groupedConditionEvaluatorList, indexImage, nonRequiredConditionEvaluatorList, requiredConditionEvaluatorList
Constructor and Description |
---|
AdvancedCombineToPDFActionExecuter() |
Modifier and Type | Method and Description |
---|---|
protected void |
addMandatoryParameters(java.util.List<java.lang.String> mandatoryProperties)
A hook method for actions to add mandatory parameters to the provided list.
|
protected java.util.Map<java.lang.Integer,java.lang.String> |
addTableOfContentsMapItem(java.util.Map<java.lang.Integer,java.lang.String> tableOfContents,
int totalPages,
java.util.List<java.lang.String> objectNames,
int pdfNumber)
Hot spot method that constructs the table of contents map that is used to build up the title page
|
protected java.io.OutputStream |
concatPDFs(java.util.List<java.lang.String> objectIds,
java.util.List<java.lang.String> objectNames,
java.lang.String indexTitle,
java.lang.String indexSecondaryTitle,
java.lang.String indexImage,
java.util.Map<java.lang.String,java.lang.String> selectedPagesMap,
java.util.List<java.lang.String> bookmarkValues,
java.lang.String ticket,
java.io.File concatenatedPdfFile,
java.io.File tableOfContentsFile,
java.io.File pdfsAndTOCfile,
java.io.File overlayFile,
java.io.FileOutputStream concatenatedPdfFOS,
java.io.FileOutputStream tableOfContentsFOS,
java.io.FileOutputStream pdfsAndTOCFOS,
java.io.OutputStream overlayFos,
java.util.List<java.lang.String> extraAttachmentIds,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> annotationInfoList,
java.lang.String uniqueID,
CoreActionService cas,
boolean excludeIndexPage,
boolean isAsync,
java.util.List<java.lang.Integer> numCopies,
java.util.Map<java.lang.String,java.lang.Object> overlayPropsMap) |
void |
executeImpl(java.lang.String ticket,
Action action)
The implementation of the action.
|
protected int |
getNumberOfIndexPages(java.util.List<java.lang.String> entries) |
protected java.util.Map<java.lang.String,java.lang.Object> |
getOverlayParameters()
Hot spot method to construct a map of parameters to send to OpenOverlay
|
protected java.io.FileOutputStream |
prependTitlePage(com.itextpdf.text.pdf.PdfCopy copy,
java.util.Map<java.lang.Integer,java.lang.String> tableOfContents,
java.lang.String indexTitle,
java.lang.String indexSecondaryTitle,
java.lang.String indexImage,
java.io.FileOutputStream concatenatedPdfFOS,
java.io.FileOutputStream tableOfContentsFOS,
java.io.FileOutputStream pdfsAndTOCFOS,
int indexPageCount,
java.io.File concatenatedPdfFile,
java.io.File tableOfContentsFile,
java.io.File pdfsAndTOCfile,
com.itextpdf.text.Document newDocument) |
void |
setAllowMultilineEntries(boolean allowMultilineEntries) |
void |
setIndexPageCharsPerLine(int indexPageCharsPerLine) |
void |
setIndexPageFont(java.lang.String indexPageFont) |
void |
setLinesPerIndexPage(int linesPerIndexPage) |
evaluateAndExecute, execute, getActionDefinition, getDescription, getGroupedConditionEvaluatorList, getIndexImage, getNonRequiredConditionEvaluatorList, getRequiredConditionEvaluatorList, getShouldPoolAction, isGroup, setActionExecutionThreadManager, setDescription, setGroup, setGroupedConditionEvaluatorList, setIndexImage, setNonRequiredConditionEvaluatorList, setRequiredConditionEvaluatorList, setShouldPoolAction
checkParameters
protected static final java.lang.String PARAM_PROPERTIES
protected static final java.lang.String PARAM_PDF_FOLDER_TYPE
protected static final java.lang.String PARAM_FOLDER_PATH
protected static final java.lang.String PARAM_ANNOTATION_INFO
protected static final int INDEX_PAGE_FONT_LEADING_POINT_SIZE
protected int linesPerIndexPage
protected java.lang.String indexPageFont
protected int indexPageCharsPerLine
protected boolean allowMultilineEntries
public void setLinesPerIndexPage(int linesPerIndexPage)
public void setIndexPageFont(java.lang.String indexPageFont)
public void setIndexPageCharsPerLine(int indexPageCharsPerLine)
public void setAllowMultilineEntries(boolean allowMultilineEntries)
protected void addMandatoryParameters(java.util.List<java.lang.String> mandatoryProperties)
AbstractActionExecuter
addMandatoryParameters
in class AbstractActionExecuter
mandatoryProperties
- a list of mandatory parameters that must be provided to the action executer when executed.public void executeImpl(java.lang.String ticket, Action action)
ActionExecuter
executeImpl
in interface ActionExecuter
executeImpl
in class AbstractActionExecuter
ticket
- a valid OC ticket.action
- the action object containing the parameters sent to the action for execution.ActionExecuter.executeImpl(String, Action)
protected int getNumberOfIndexPages(java.util.List<java.lang.String> entries)
protected java.io.OutputStream concatPDFs(java.util.List<java.lang.String> objectIds, java.util.List<java.lang.String> objectNames, java.lang.String indexTitle, java.lang.String indexSecondaryTitle, java.lang.String indexImage, java.util.Map<java.lang.String,java.lang.String> selectedPagesMap, java.util.List<java.lang.String> bookmarkValues, java.lang.String ticket, java.io.File concatenatedPdfFile, java.io.File tableOfContentsFile, java.io.File pdfsAndTOCfile, java.io.File overlayFile, java.io.FileOutputStream concatenatedPdfFOS, java.io.FileOutputStream tableOfContentsFOS, java.io.FileOutputStream pdfsAndTOCFOS, java.io.OutputStream overlayFos, java.util.List<java.lang.String> extraAttachmentIds, java.util.Map<java.lang.String,java.util.List<java.lang.String>> annotationInfoList, java.lang.String uniqueID, CoreActionService cas, boolean excludeIndexPage, boolean isAsync, java.util.List<java.lang.Integer> numCopies, java.util.Map<java.lang.String,java.lang.Object> overlayPropsMap)
protected java.io.FileOutputStream prependTitlePage(com.itextpdf.text.pdf.PdfCopy copy, java.util.Map<java.lang.Integer,java.lang.String> tableOfContents, java.lang.String indexTitle, java.lang.String indexSecondaryTitle, java.lang.String indexImage, java.io.FileOutputStream concatenatedPdfFOS, java.io.FileOutputStream tableOfContentsFOS, java.io.FileOutputStream pdfsAndTOCFOS, int indexPageCount, java.io.File concatenatedPdfFile, java.io.File tableOfContentsFile, java.io.File pdfsAndTOCfile, com.itextpdf.text.Document newDocument)
protected java.util.Map<java.lang.String,java.lang.Object> getOverlayParameters()
protected java.util.Map<java.lang.Integer,java.lang.String> addTableOfContentsMapItem(java.util.Map<java.lang.Integer,java.lang.String> tableOfContents, int totalPages, java.util.List<java.lang.String> objectNames, int pdfNumber)
tableOfContents
- contains the attributes necessary to build up the title pagetotalPages
- represents the starting page number of the objectobjectNames
- pdfNumber
- represents the index of the object in the objectNames array