Page Bleed
Show and export bleed area around pages
In printing, bleed is printing that goes beyond the edge of where the sheet will be trimmed.
Polotno has native support for bleed. Every page has its own bleed property. By default bleeds are not visible on the workspace and export. To show bleed on the canvas:
store.activePage.set({ bleed: 20 }); // set bleed in pixels
// show bleed area on the <Workspace />
store.toggleBleed(true);The canvas will have special space around the page where elements can extend beyond the trim line.
Users can also change bleed from the built-in Size side panel.
Per-side bleed
Use bleedTop, bleedRight, bleedBottom, and bleedLeft to override the uniform bleed value for individual sides:
store.activePage.set({
bleed: 20, // base value for all sides
bleedBottom: 40, // override just the bottom side
});Per-side values control the canvas guides and supported image/PDF exports. Enable includeBleed to include the bleed area in those exports. The standalone SVG, HTML, and PPTX exporters do not expand the page for bleed.
Exporting with Bleed
The store's image and PDF methods omit bleed by default. Set includeBleed to include it:
// export PDF with bleed
await store.saveAsPDF({ includeBleed: true });
// export image with bleed
await store.saveAsImage({ includeBleed: true });
// as data URL
await store.toDataURL({ includeBleed: true });The built-in Download button includes bleed in its PDF exports automatically.
For detailed information on PDF exports with bleed and crop marks, see PDF Export.