▞▞ postage printer
inA4 portrait out4×6 in thermal
01

Drop your PDFs

Each A4 page will be split vertically. Left half → page N, right half → page N+1.

Drag PDFs here or

Batch OK · combined into one output PDF

How it works

  1. 1

    Detect A4 portrait

    Pages within ±2mm of 210×297 mm portrait are processed. Other pages follow your pass-through setting.

  2. 2

    Split vertically

    Each A4 page cuts at the horizontal center. The left half becomes page N, the right half becomes page N+1.

  3. 3

    Crop to content

    Whitespace is detected on each half and trimmed with your chosen margin. Imagick's trim does the bbox math.

  4. 4

    Fit to 4×6

    Cropped content is scaled to fit a 102×152 mm page with the centered, preserving aspect ratio.

Setup

macOS one-time
brew install php imagemagick
pecl install imagick
cd postage-printer
php -S localhost:8000

Then open http://localhost:8000 in your browser.

Windows one-time
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.