Closed taihangg closed 2 months ago
To do what?
To do what? I want to load a pdf file,then remove some pages and save it.
That would be something like:
final tools = PdfTools();
final parsed = PdfDocumentParser(await File('doc1.pdf').readAsBytes());
tools.addPages(parsed, [1, 3, 5, 6, 7]);
final result = tools.save();
final file = File('updated.pdf');
await file.writeAsBytes(result);
ok, thank you! I just try a toolkit, so i think it's a little expensive. Thank you !
excuse me! how to load a exist pdf file?