private static class PipeFopElement.PipeFopInstruction extends InstructionWithContent
| Modifier and Type | Class and Description |
|---|---|
private static class |
PipeFopElement.PipeFopInstruction.PageInfo |
attribs, content, name| Constructor and Description |
|---|
PipeFopInstruction(Map<String,Expression> attribs,
Expression content) |
| Modifier and Type | Method and Description |
|---|---|
private FopFactory |
createFopFactory(XPathContext context)
Create a FOP factory and configure it, if we don't already have one.
|
private void |
mergeMetadata(HashMap<String,String>[] infos,
PdfWriter pdfWriter,
XPathContext context)
Merge metadata from the FOP-generated PDF and a PDF we're merging into it.
|
private void |
mergePdf(XPathContext context,
File origPdfData,
File fileToAppend,
PipeFopElement.MergeMode mergeMode,
PipeFopElement.MergeAt mergeAt,
OutputStream outStream)
Do the work of joining the FOP output and a PDF together.
|
TailCall |
processLeavingTail(XPathContext context)
The real workhorse.
|
createsNewNodes, display, dynamicError, getAttribBool, getAttribStr, getAttribStr, getCardinality, getInstructionNameCode, getItemType, iterateSubExpressions, optimize, promoteInst, replaceSubExpression, sequenceToString, simplify, typeCheckappendItem, assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, dynamicError, evaluateAsString, evaluateItem, getImplementationMethod, getInstructionInfo, getSourceLocator, isXSLT, iterate, process, promoteadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, getColumnNumber, getConstructType, getContainingProcedure, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorpublic PipeFopInstruction(Map<String,Expression> attribs,
Expression content)
public TailCall processLeavingTail(XPathContext context)
throws XPathException
processLeavingTail in interface TailCallReturnerprocessLeavingTail in class InstructionWithContentXPathExceptionprivate FopFactory createFopFactory(XPathContext context)
throws ConfigurationException,
SAXException,
IOException,
XPathException
ConfigurationExceptionSAXExceptionIOExceptionXPathExceptionprivate void mergePdf(XPathContext context,
File origPdfData,
File fileToAppend,
PipeFopElement.MergeMode mergeMode,
PipeFopElement.MergeAt mergeAt,
OutputStream outStream)
throws IOException,
DocumentException,
BadPdfFormatException,
XPathException
IOExceptionDocumentExceptionBadPdfFormatExceptionXPathExceptionprivate void mergeMetadata(HashMap<String,String>[] infos,
PdfWriter pdfWriter,
XPathContext context)
throws XPathException
XPathException