Skip to content

Brettchr301/batch-document-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch Document Processor

A PowerShell WPF desktop app for bulk document operations. Queue up files, chain operations (watermark, merge, convert, stamp, headers/footers), and process them in batch. Built for office environments where you need to process stacks of PDFs and Office docs without buying Adobe Acrobat Pro.

What It Does

  • Watermark PDFs/Images -- diagonal text, header/footer, logo overlay. Presets for DRAFT, CONFIDENTIAL, COPY. Configurable font, size, color, opacity, rotation.
  • Merge Documents -- combine multiple PDFs into one, merge Word docs via COM, consolidate Excel sheets. Page ordering, page numbers, table of contents.
  • Convert Formats -- Word/Excel/PowerPoint to PDF via COM. Image format conversion (PNG, JPG, BMP) with resize/compress. HTML to PDF via headless browser.
  • Stamp Documents -- classification stamps (Confidential, Internal, Public), date stamps, "Received" stamps with initials. Color-coded by classification.
  • Add Headers/Footers -- page numbers, total pages, date, filename. Different first page option. Font and position config.
  • Batch Rename -- prefix, suffix, counter, date-based naming. Metadata-driven rename rules.

Quick Start

  1. Double-click START.vbs
  2. Drag files or folders into the queue panel
  3. Check which operations to apply and configure each one
  4. Pick an output folder and hit Process

Or run from terminal:

powershell -ExecutionPolicy Bypass -File UI.ps1

Operation Pipeline

Operations chain together in order. If you check Watermark + Merge + Add Page Numbers, it will:

  1. Watermark each file
  2. Merge the watermarked files into one PDF
  3. Add page numbers to the merged output

Save operation chains as templates for repeat use. The app remembers your last 20 operations.

Configuration

Settings persist to config.json. Watermark presets, output naming rules, default folders, and saved templates all live there. Edit directly or use the UI.

Requirements

  • Windows 10/11
  • PowerShell 5.1+
  • .NET Framework 4.5+ (for WPF and System.Drawing)
  • Microsoft Office (for Word/Excel/PowerPoint conversion -- uses COM automation)
  • PdfSharp.dll in app folder (optional -- for PDF watermarking without Office dependency)

For image watermarking, System.Drawing handles everything natively. For PDF operations without PdfSharp, it falls back to COM automation through Word.

Files

Core.ps1                          - Engine: queue, pipeline, config, templates, history
UI.ps1                            - WPF dark mode interface, drag-drop, progress
Operations/
  Add-Watermark.ps1               - Text/image watermarks on PDFs and images
  Merge-Documents.ps1             - Combine PDFs, Word docs, Excel workbooks
  Convert-Format.ps1              - Format conversion via COM and System.Drawing
  Add-HeaderFooter.ps1            - Headers/footers with dynamic fields
  Stamp-Document.ps1              - Classification and date stamps
config.json                       - User settings, presets, recent files
START.vbs                         - Double-click launcher

About

A PowerShell WPF desktop app for bulk document operations. Queue up files, chain operations (waterma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors