public interface PdfCustomPlaceholderHandler
PdfDocument.writeText(String)
.Modifier and Type | Method and Description |
---|---|
String |
onCustomPlaceHolder(String variable,
PdfDocument d,
int pagenumber)
Called by a method such as
PdfDocument.writeText(String) that tries to
render a string containing a custom placeholder on a page. |
String onCustomPlaceHolder(String variable, PdfDocument d, int pagenumber)
PdfDocument.writeText(String)
that tries to
render a string containing a custom placeholder on a page. User
classes implementing this interface can handle this event to
provide values for the specified custom placeholders at run
time.variable
- custom placeholder in the stringd
- document where the string will be renderedpagenumber
- number of the page where the string will be renderedexample
.