A mixin used by Dictionary that implements the infrastructure and classes for defining fields.
The class responsible for holding the field information is the Field class. Additionally, each field object is automatically assigned a stateless converter object that knows if data read from a PDF file potentially needs to be converted into a standard format before use.
The methods that need to be implemented by such stateless converter objects are:
trueif the converter is usable for the given type.
nil, a single type class or an array of type classes which will additionally be allowed for the field.
- convert(data, type, document)
Should return the
converteddata if conversion is possible and
typeargument is the result of the Field#type method call and
documentis the HexaPDF::Document for which the data should be converted.