Forum How do I...?

Trim box inside pdf

jvramana27
Hi,

Can I add trim inside the pdf content.
mikeday
Yes, enable crop marks first with this CSS:
@page {
    marks: crop
}
mikeday
Sorry, I accidentally deleted your post! Can you post again?
jvramana27
But the crop marks are unable to bring inside the pdf content, I want to bring the crop marks inside the pdf content, Also tried negative value of bleed and trim,
  1. 2021-11-22-12-21-06.png12.4 kB
    expected position trim mark
mikeday
Crop marks inside the printable page area? I'm afraid Prince does not have support for that, you will need to add them as images yourself inside the page regions, perhaps like this:
@page {
    @top-left-corner { content: url("top-left.png") }
    @top-right-corner { content: url("top-right.png") }
}

May I ask why you need to crop marks inside the printable page area?
jvramana27
The issue is that we need to add the "trim box" inside the pdf. A pdf of 5 inches by 8 inches - We want the trim box at 4.75 inches by 7.75 inches.

How do we draw that? Please note we do not want crop marks but want the trim box inside so the printers can use the trim box for cutting.

Can you please help with this?
phillipgessert
You can set a prince-bleed value without using cropmarks. It sounds like you just need to set that to .125in to achieve what you’re looking for. e.g.:

@page {
    size: 4.75in 7.75in;
    prince-bleed: .125in;
}



That'd generate a 5x8 PDF with a trim box within it that measures 4.75x7.75, and no crop marks at all.

Edited by phillipgessert