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, typeCheck
appendItem, assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, dynamicError, evaluateAsString, evaluateItem, getImplementationMethod, getInstructionInfo, getSourceLocator, isXSLT, iterate, process, promote
adoptChildExpression, 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, typeError
public PipeFopInstruction(Map<String,Expression> attribs, Expression content)
public TailCall processLeavingTail(XPathContext context) throws XPathException
processLeavingTail
in interface TailCallReturner
processLeavingTail
in class InstructionWithContent
XPathException
private FopFactory createFopFactory(XPathContext context) throws ConfigurationException, SAXException, IOException, XPathException
ConfigurationException
SAXException
IOException
XPathException
private void mergePdf(XPathContext context, File origPdfData, File fileToAppend, PipeFopElement.MergeMode mergeMode, PipeFopElement.MergeAt mergeAt, OutputStream outStream) throws IOException, DocumentException, BadPdfFormatException, XPathException
IOException
DocumentException
BadPdfFormatException
XPathException
private void mergeMetadata(HashMap<String,String>[] infos, PdfWriter pdfWriter, XPathContext context) throws XPathException
XPathException