Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Delete pages from a DjVu document

📅 2012-Aug-06 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ delete, djvm, djvu, djvulibre, powershell ⬩ 📚 Archive

Deleting one or more pages from a DjVu document can be done using the DjVu multipage document manipulation utility. This is the executable djvm.exe that ships with the DjVuLibre package.

The -d option can be used to delete a single page from the document. However, djvm does not accept multiple pages or a range of pages to delete. To achieve this, invoke djvm multiple times using the looping features of your shell. The example below is for PowerShell.

# Delete page 170 from foo.djvu
djvm -d foo.djvu 170

# Delete pages 170-174 from foo.djvu
for ( $i = 0; $i -lt 5; $i++ ) { djvm -d foo.djvu 170 }

Tried with: DjVuLibre 3.5.25.3


© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email