setMargins method
Set document page spacing
spacing
the spacing between pages
example:
_controller.setMargins(const CPDFEdgeInsets.symmetric(horizontal: 10, vertical: 10));
Implementation
Future<void> setMargins(CPDFEdgeInsets edgeInsets) async {
await _channel.invokeMethod('set_margin' , edgeInsets.toJson());
}