Skip to content
DemoFAQ

PDF 生成模板编辑器

开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。

查看 GitHub
Flutter Guides Remove watermark

移除水印 ​

如需根据索引移除单个水印,请使用 removeWatermark:

dart
Future<bool> removeWatermark(int index);

final bool success = await document.removeWatermark(0);
print('Remove watermark result: $success');

如需移除文档中的全部水印,请使用 removeAllWatermarks:

dart
Future<void> removeAllWatermarks();

await document.removeAllWatermarks();