public final class ProducerBuilder extends AbstractITextConfigurationEvent
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAction()
Configuration events for util internal purposes are not expected to be sent.
|
static String |
mergeProducerLines(String firstProducer,
String secondProducer)
Merges two producer lines.
|
static String |
modifyProducer(List<? extends AbstractProductProcessITextEvent> events,
String oldProducer)
Modifies an old producer line according to events registered for the document.
|
addEvent, addProcessor, getActiveProcessor, getEvents, getProcessors, registerInternalNamespace, removeProcessorpublic static String modifyProducer(List<? extends AbstractProductProcessITextEvent> events, String oldProducer)
ConfirmedEventWrapper or not.
Format of the new producer line will be defined by the first event in the list.
Placeholder will be replaced and merged all together.events - list of events registered for the documentoldProducer - old producer line. If null or empty, will be replaced
with a new one. Otherwise new line will be attached with
modified using prefix. If old producer line already contains
modified using itext substring with the current version of itext at the end,
no changes will be madepublic static String mergeProducerLines(String firstProducer, String secondProducer)
null or empty, it will be replaced with the second one.
Otherwise second producer line will be attached with modified using prefix. If first producer line
already contains modified using substring with the second producer line at the end, first producer
line will be returned unchanged.firstProducer - first producer linesecondProducer - second producer lineprotected void doAction()
doAction in class AbstractITextConfigurationEventIllegalStateException - on every method callCopyright © 1998–2025 Apryse Group NV. All rights reserved.