getHeaderFooter method
Gets the current document header and footer configuration.
Returns null when no header or footer is applied.
Since v3.2.0
example:
final headerFooter = await controller.document.getHeaderFooter();
if (headerFooter != null) {
debugPrint('Header/footer pages: ${headerFooter.pages}');
}
Implementation
Future<CPDFHeaderFooter?> getHeaderFooter() async {
final result = await _channel.invokeMethod('get_header_footer');
if (result is! Map) {
return null;
}
return CPDFHeaderFooter.fromJson(Map<String, dynamic>.from(result));
}