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 |
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, removeProcessor
public 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 document
oldProducer
- 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
substring, it will be overriden with a new one
protected void doAction()
doAction
in class AbstractITextConfigurationEvent
IllegalStateException
- on every method call
Copyright © 1998–2022 iText Group NV. All rights reserved.