iText 8.0.2 API
iText.Commons.Actions.Producer.ProducerBuilder Class Reference

Class is used for producer line building. More...

Inheritance diagram for iText.Commons.Actions.Producer.ProducerBuilder:
iText.Commons.Actions.AbstractITextConfigurationEvent iText.Commons.Actions.AbstractITextEvent iText.Commons.Actions.IEvent

Static Public Member Functions

static String  ModifyProducer< _T0 > (IList< _T0 > events, String oldProducer)
  Modifies an old producer line according to events registered for the document. More...
 

Detailed Description

Class is used for producer line building.

Member Function Documentation

◆ ModifyProducer< _T0 >()

static String iText.Commons.Actions.Producer.ProducerBuilder.ModifyProducer< _T0 > ( IList< _T0 >  events,
String  oldProducer 
)
inlinestatic

Modifies an old producer line according to events registered for the document.

Modifies an old producer line according to events registered for the document. Events can be either wrapped with iText.Commons.Actions.Confirmations.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

Parameters
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
Returns
modified producer line
Type Constraints
_T0  : AbstractProductProcessITextEvent