Future<Uint8List> save() async { if (!_paint) { for (final page in _pages) { page.postProcess(this); } _paint = true; } return await document.save(); }