How does vector PDF bleed extend artwork without rasterizing?
Instead of rendering pages into bitmaps, this tool embeds each source page as a reusable vector Form XObject inside @cantoo/pdf-lib and draws reflected or scaled boundary strips using PDF graphic-state clipping paths. All processing stays inside your browser Web Worker with zero remote file transfers.
Embedding pages as Form XObjects with clipping masks
PDF geometry uses PostScript units equal to 72 pt per inch (25.4 mm). Under the PDF Association ISO 32000-2 (PDF 2.0) standard, Form XObjects store self-contained vector graphics streams so you can add bleed to PDF pages without duplicating fonts or line art.
With Mirror edge reflect, the builder places each page at 1:1 scale inside TrimBox and attaches clipped affine reflection matrices ([-1, 0, 0, 1] horizontally, [1, 0, 0, -1] vertically) across four edges and corners. Source /Rotate tags normalize upright before reflection.
- Zero size drift: Mixed-size packets should be standardized before adding bleed, so resize mixed pages to standard press stock first.
Choosing 3 mm EU/UK, 5 mm, or 0.125 in KDP widths
Commercial guillotines shift slightly during binding, so full-bleed backgrounds must extend beyond the cut line. Click 3 mm (EU/UK) (8.504 pt) for European presses, 5 mm (14.173 pt) for packaging, or 0.125 in (KDP) (9 pt) for North American printers.
Choosing Custom (mm) lets you set values from 0.5 mm (1.4 pt) upward. The browser worker enforces an upper safety limit of 72 pt (25.4 mm) so page geometry stays valid across RIP software.
Understanding TrimBox, BleedBox, and MediaBox dimensions
Print RIP engines inspect nested page geometry boxes rather than guessing from visible artwork edges. Per the Library of Congress PDF/X format description, commercial prepress workflows rely on exact TrimBox and BleedBox bounds.
| PDF page box or mark | Purpose in commercial print prepress | Coordinate formula (b = bleedPt, s = slugPt) |
Example for A5 (148 × 210 mm) + 3 mm bleed + marks |
|---|---|---|---|
TrimBox |
Exact finished size after cutting | trimW × trimH inset by s + b |
148.0 × 210.0 mm (419.5 × 595.3 pt) |
BleedBox |
Outer limit of full-bleed ink | (trimW + 2b) × (trimH + 2b) |
154.0 × 216.0 mm (436.5 × 612.3 pt) |
CropBox |
Visible frame in PDF viewers | Matches MediaBox (0, 0, mediaW, mediaH) |
166.7 × 228.7 mm (472.5 × 648.3 pt) |
MediaBox |
Full sheet with outer mark slug | (bleedW + 2s) × (bleedH + 2s) (s = 18 or 0) |
166.7 × 228.7 mm with slug (s = 18 pt) |
| Corner crop marks | 0.35 pt cut guides outside bleed |
Start at b + 3 pt, end at b + 16 pt |
Four corner pairs pointing to TrimBox |
| Registration targets | 3.5 pt circle + 5.5 pt crosshairs |
Centered at s / 2 (9 pt) along 4 edges |
Centered inside the 18 pt slug |
Disabling both Add corner crop marks outside BleedBox and Add registration bullseye targets collapses slugPt to 0 pt, matching KDP requirements for trim-and-bleed-only interiors. Offset presses usually prefer an 18 pt outer slug carrying trim guides.
If you are stripping wide white margins off textbooks for portable displays instead of printing, do not expand boxes outward. Switch to Crop PDF for Kindle to trim dead whitespace safely.
Mirror edge reflect vs Scale artwork up vs White margin
Selecting the right Edge extension method avoids distorted margins and clipped headlines when fixing white borders on flyers. Compare how each mode handles artwork scale, borders, and press marks before exporting.
When edge reflection works cleanly vs uniform scaling
Mirror edge reflect preserves your center layout at 100% scale, keeping captions and logos safe near trim edges. Only the outer 3 mm or 0.125 in border reflects across solid backgrounds, gradients, and textures.
By contrast, Scale artwork up applies uniform magnification (Math.max(bleedW / trimW, bleedH / trimH)), suited to wide-margin posters. White margin keeps 1:1 artwork inside TrimBox with blank BleedBox padding, while keep interactive widgets static before press proofing flattens comments or form fields first.
Adding corner crop marks and registration targets
Under the W3C CSS Paged Media Module Level 3 model, crop ticks mark final trims while targets align ink plates. Add corner crop marks outside BleedBox draws eight 0.35 pt ticks starting 3 pt beyond BleedBox.
Toggling Add registration bullseye targets adds four 3.5 pt circles overlaid with 5.5 pt crosshairs along the 18 pt slug. Placing them at page midpoints lets press operators inspect color registration immediately.
Selective page bleed and troubleshooting preflight warnings
Adding print bleed selectively avoids unnecessary box edits on text leaves or dividers. Type page numbers inside Page range (optional) and inspect edge behavior on preview cards.
Adding bleed only to covers via Page range
Type indices or ranges like 1 or 1-2, 24 in Page range (optional) to expand only full-bleed covers or photo spreads. Unselected pages copy unchanged via copyPages, keeping original box dimensions intact.
After clicking Add bleed, inspect the TrimBox (final cut), BleedBox (with bleed), and MediaBox (outer slug) values in millimetres below the download card. Confirming all three numbers catches wrong paper presets immediately.
Tip: Avoid running Mirror edge reflect on pages with thin border frames or page numbers touching the trim edge, because reflection duplicates those lines outside the cut mark.
Avoiding clipped text and double-bleed scaling errors
If your source PDF already carries 3 mm bleed plus crop marks, running Add bleed twice mirrors old ticks into the outer slug. Inspect page 1 in the preview first, and skip extra bleed if marks already sit outside the artwork.
Once dimensions and press marks pass preflight checks, finalize document tags before delivery. Open the PDF title and author metadata editor to populate title, author, and subject metadata before export.