You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bleed (more descriptive is the German "Beschnittzugabe") is an area outside the printing area that is meant to be cut off after printing. This is required for all documents that have elements touching the corners (often pictures or non-white backgrounds).
I suggest adding an option bleed to the page command, that increases the page size by bleed*2 in each dimension.
the margins should however be calculated based on the page size without the bleed.
Often crop or trim marks are used to indicate where the bleed area should be cut off. Adding these could be a sensible default behaviour or be triggered by another option (as it needs adding even more extra space to the pdf output)
Use Case
Typst's capabilities already make it a serious contender to replace DTP software like inDesign for many tasks.
Bleeds are a common feature in for-print-pdfs and should be easy to implement.
While currently one can increase the page dimensions and margins to acommodate bleeds, a dedicated option is much cleaner
Reacted by Bastien Voirin, F. Y., kuba375, Maximilian Merz, Jannis Jorre, Jakob Listabarth, Karam Khamis, Sean Clayton, まくぽり, olsha1 and 33 more
Adding these could be a sensible default behaviour or be triggered by another option (as it needs adding even more extra space to the pdf output)
Here's my vote to make this another option, and not the default. In both Affinity Publisher and Adobe InDesign, the bleed options do not add marks to the page by default. It should therefore be easier for those who convert their workflow to Typst.
Additionally, in my experience it is easier for the people that need a feature to figure out how to enable it, than for those who don't need it to figure out how to disable it. If I know I need the marks, I can search for how to enable them. If I need bleed and get marks, I might not even know what they are, and therefore also wouldn't know the term to search for to disable them.
Reacted by Tilman Schieber, Karam Khamis, Sean Clayton, Jakob Listabarth, Sarah Listabarth, Eloi Torrents, dizzib, Sam Albers, Bastien Voirin, Linus Weber and 6 more
I started playing with an example, and I think something built-in in page() would be much more practical: bleed, trim, margin should be understood by page() so that content does not need to be offset manually, and the user doesn't have to keep track of it for normal content, just the stuff that bleeds into the margins/slug.
Packages could define fancy marks, colour palette, alignment crosses, etc., but having the framework built-in makes the whole thing smoother.
Reacted by Alejandro Exojo, Sean Clayton, Jakub Skrzypnik, dizzib, 霞葉, bluss and Bastien Voirin
I would also like to see built in support for this.
For context: I've decided that I want some business cards, and I figured I could probably design them with Typst. I searched for bleed/trim support in Typst, and ended up here.
In case it helps, I figured I'd use this as a practical case motivating support for this.
If I go to MOO's design guidelines, I see it gives these dimensions (and respective notes) for a standard sized business card:
Bleed Area: 3.66" x 2.16"
Make sure your background extends to fill the bleed area (to avoid nasty white edges!)
Trim: 3.50" x 2.0"
This is where we aim to cut your cards.
Safe Area: 3.34" x 1.84"
Make sure important aspects of your design (like text and logos) are inside the safe area (to avoid the chop!)
So if I want a background image on my business card to extend to the edges of the physical card (which in my case, I do), the PDF I upload must be sized larger than the resulting, physical card. Additionally, the print could be misaligned by about 2mm in either dimension, so additional margin is necessary to avoid important text and other features from being cropped out.
In case it's not intuitive what bleed/trim/safe areas are, and that the design must be larger, picture for example a sheet of stickers: have you ever noticed how many stickers seem to be designed, printed and die cut such that, when you lift the sticker off the sheet, some of color/image is left on the sheet as though the design that was printed is larger than the die that cut the sticker's profile?
This was intentional: if the nominal size of the graphic design was exactly the nominal size of the die, then any misalignment of the die (down to as little as 50-100 microns -- a human hair is easily visible within arms length, and that's ~100 microns) would be visible as a white outline (or whatever the paper color is). Similarly, this would also occur if the real size of the print is smaller than the real size of the die. In practice, no printing business is operating printers that are accurate to single digit microns, and no one is producing and aligning dies to single digit micron accuracy either, so professional print designs (whether for stickers, books, banners, or otherwise) are expected to be provided oversized, and then -- with some specified alignment error tolerance -- some of the outer edge of the printed design will be trimmed away. That's why stickers with designs that extend to the boarder leave some of the printed graphic behind when you peel them off, and this tolerance for error is why you may have occasionally noticed that some mass produced stickers vary from sticker to sticker in how the graphic is aligned within the cut profile (depending on how sloppy the manufacturer is, it's not terribly uncommon for the die to be misaligned by as much as 1cm when cutting), and despite that you won't see any unsightly white boarder (assuming the sticker was properly designed with this sacrificial bleed). If the sticker was additionally designed to account for the manufacturer/printer's specified "safe area" (an area that is guaranteed to be within the bounds of the trimmed area, factoring in print and cut misalignment tolerances), then you also won't find that important design details on the sticker will be cropped out.
I use stickers as an example because it's the rare occasion where the average consumer gets to see the full-bleed design before the trim takes place. Every time you peel a sticker off a sheet, you're performing the trim step in the production of full-bleed design, which a printing company would normally do for you (at least, outside the world of stickers anyway).
With all of that said, designers want/need several things:
We want to be able to specify the safe, trim, and bleed areas.
During design and when printing, we want to see (and generate PDFs/etc of) the design at the full bleed size.
At design time, we'd like to see toggle-able visual markers overlaid indicating the different areas, so we can see if important details like text or other essential graphics would possibly be cropped during the trim.
When we want to see (or show someone else) how it should look as a finished product, we want to see (and generate e.g. PDFs of) the design constrained to just the trim area. I say "should look" because in practice there will be some amount of variance in alignment during the print and trim, but it's easier (especially for lay people) to appreciate how a design will "feel" if you can preview it cropped down to the nominal, finished print size, and just assume (for previewing purposes) that everything will be perfectly aligned. Also, it is this optimistic rendering that lay people want to see -- if you send a PDF or PNG or whatever of the full-bleed design to a client, coworker, or any other average person, they're going to get confused.
Having this built in, with an easy way to toggle between different renderings for these different scenarios, would be really nice to have.
Reacted by 霞葉, Marco Tolk, bluss, Bastien Voirin, yodatak, Kevin Stephen and Luke H-W
There is an open PR for this. I left an initial review regarding the behavior of the feature, but further comments from people with more experience in printing would be appreciated.
Reacted by Andrew Cowie, Alejandro Exojo, Bastien Voirin, Shining Yang, Alfred Reibenschuh, Jonas Gierer, __dil__ and Paul Adam
Activity
jeyj0 commentedon Jan 18, 2024
Here's my vote to make this another option, and not the default. In both Affinity Publisher and Adobe InDesign, the bleed options do not add marks to the page by default. It should therefore be easier for those who convert their workflow to Typst.
Additionally, in my experience it is easier for the people that need a feature to figure out how to enable it, than for those who don't need it to figure out how to disable it. If I know I need the marks, I can search for how to enable them. If I need bleed and get marks, I might not even know what they are, and therefore also wouldn't know the term to search for to disable them.
baptiste commentedon May 18, 2024
Finding this issue as I've been pondering the same problem here: https://discord.com/channels/1054443721975922748/1241232357994791073
I started playing with an example, and I think something built-in in
page()would be much more practical: bleed, trim, margin should be understood by page() so that content does not need to be offset manually, and the user doesn't have to keep track of it for normal content, just the stuff that bleeds into the margins/slug.Packages could define fancy marks, colour palette, alignment crosses, etc., but having the framework built-in makes the whole thing smoother.
cstrahan commentedon Dec 5, 2024
I would also like to see built in support for this.
For context: I've decided that I want some business cards, and I figured I could probably design them with Typst. I searched for bleed/trim support in Typst, and ended up here.
In case it helps, I figured I'd use this as a practical case motivating support for this.
If I go to MOO's design guidelines, I see it gives these dimensions (and respective notes) for a standard sized business card:
So if I want a background image on my business card to extend to the edges of the physical card (which in my case, I do), the PDF I upload must be sized larger than the resulting, physical card. Additionally, the print could be misaligned by about 2mm in either dimension, so additional margin is necessary to avoid important text and other features from being cropped out.
In case it's not intuitive what bleed/trim/safe areas are, and that the design must be larger, picture for example a sheet of stickers: have you ever noticed how many stickers seem to be designed, printed and die cut such that, when you lift the sticker off the sheet, some of color/image is left on the sheet as though the design that was printed is larger than the die that cut the sticker's profile?
This was intentional: if the nominal size of the graphic design was exactly the nominal size of the die, then any misalignment of the die (down to as little as 50-100 microns -- a human hair is easily visible within arms length, and that's ~100 microns) would be visible as a white outline (or whatever the paper color is). Similarly, this would also occur if the real size of the print is smaller than the real size of the die. In practice, no printing business is operating printers that are accurate to single digit microns, and no one is producing and aligning dies to single digit micron accuracy either, so professional print designs (whether for stickers, books, banners, or otherwise) are expected to be provided oversized, and then -- with some specified alignment error tolerance -- some of the outer edge of the printed design will be trimmed away. That's why stickers with designs that extend to the boarder leave some of the printed graphic behind when you peel them off, and this tolerance for error is why you may have occasionally noticed that some mass produced stickers vary from sticker to sticker in how the graphic is aligned within the cut profile (depending on how sloppy the manufacturer is, it's not terribly uncommon for the die to be misaligned by as much as 1cm when cutting), and despite that you won't see any unsightly white boarder (assuming the sticker was properly designed with this sacrificial bleed). If the sticker was additionally designed to account for the manufacturer/printer's specified "safe area" (an area that is guaranteed to be within the bounds of the trimmed area, factoring in print and cut misalignment tolerances), then you also won't find that important design details on the sticker will be cropped out.
I use stickers as an example because it's the rare occasion where the average consumer gets to see the full-bleed design before the trim takes place. Every time you peel a sticker off a sheet, you're performing the trim step in the production of full-bleed design, which a printing company would normally do for you (at least, outside the world of stickers anyway).
With all of that said, designers want/need several things:
Having this built in, with an easy way to toggle between different renderings for these different scenarios, would be really nice to have.
laurmaedje commentedon Jul 28, 2025
There is an open PR for this. I left an initial review regarding the behavior of the feature, but further comments from people with more experience in printing would be appreciated.
laurmaedje commentedon May 26, 2026
Resolved by #6357