getLtvReadiness method
Returns the long-term validation (LTV) material in this document.
The result describes the DSS / VRI dictionaries and is a document-level check: it does not establish certificate trust or prove that every signature meets PAdES-LT. No network access is required.
example:
final readiness = await document.getLtvReadiness();
print('LTV ready: ${readiness.ltvReady}');
print('Missing: ${readiness.missingMaterials}');
Since 3.2.0.
Implementation
Future<CPDFLtvReadiness> getLtvReadiness() async {
final rawResult = await _channel.invokeMethod<Map<Object?, Object?>>(
'get_ltv_readiness',
);
if (rawResult == null) {
throw StateError('LTV readiness assessment returned no result.');
}
return CPDFLtvReadiness.fromJson(Map<String, dynamic>.from(rawResult));
}