brew install php imagemagick pecl install imagick cd postage-printer php -S localhost:8000
Then open http://localhost:8000 in your browser.
Each A4 page will be split vertically. Left half → page N, right half → page N+1.
Uncheck any page you want to drop from the output.
Pages within ±2mm of 210×297 mm portrait are processed. Other pages follow your pass-through setting.
Each A4 page cuts at the horizontal center. The left half becomes page N, the right half becomes page N+1.
Whitespace is detected on each half and trimmed with your chosen margin. Imagick's trim does the bbox math.
Cropped content is scaled to fit a 102×152 mm page with the centered, preserving aspect ratio.
brew install php imagemagick pecl install imagick cd postage-printer php -S localhost:8000
Then open http://localhost:8000 in your browser.
choco install php # enable php_imagick in php.ini cd postage-printer php -S localhost:8000
Or install XAMPP and drop this folder into htdocs.
postage printer uses the Imagick PHP extension for all PDF work — rasterise at 300 DPI, crop halves, trimImage() for bbox, composite onto a 4×6 canvas. No Composer packages, no shell-outs.