Skip to content

Add bleed to page options #3131

Closed
Closed

Description

@tilman-schieber

Description

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)
see here

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

Activity

  1. added
    layout
    on Jan 8, 2024
  2. jeyj0 commented on Jan 18, 2024

    @jeyj0

    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.

  3. baptiste commented on May 18, 2024

    @baptiste

    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.

    bleeding-edge

  4. cstrahan commented on Dec 5, 2024

    @cstrahan

    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?

    Bleed

    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:

    1. We want to be able to specify the safe, trim, and bleed areas.
    2. During design and when printing, we want to see (and generate PDFs/etc of) the design at the full bleed size.
    3. 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.
    4. 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.

  5. laurmaedje commented on Jul 28, 2025

    @laurmaedje
    Member

    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.

  6. laurmaedje commented on May 26, 2026

    @laurmaedje
    Member

    Resolved by #6357

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestlayout

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions