Created Date: 13 Dec, 2022 13:34
Last Modifed Date: 13 Dec, 2022 13:34
This is another variation on the theme of page-level editing. MakoSweeper 'sweeps away' (removes) any pages that are not included in the supplied pages range(s).
How it works
A vector of flags, one per page, are all set to
true, meaning the page will be removed. The page range(s) are then processed, and each page falling within the those ranges is set to
false. Finally, a loop traverses the pages, in reverse order, removing each page from the document that is flagged as
Useful sample code
- Simple processing of a document - open an assembly, fetch the document, remove some pages from it, rewrite assembly.