I am using TCPDF to generate a PDF that will be printed by a professional printing company.
They have the requirement that the 3 mm of the bleed are contained in the dimensions of the pages in the PDF. A usual A5 page is 148 x 210 mm. But the printing company wants it to have in 154 x 216 mm (3 mm additionally on each edge).
Until now, my TCPDF settings look like this:
$pdf = new \TCPDF(
orientation: 'P',
unit: 'mm',
format: 'A5',
pdfa: 1 // PDF-A1
);
$pdf->SetMargins(
left: 9,
top: 9,
right: 9
);
$pdf->SetPrintHeader(false);
$pdf->SetPrintFooter(true);
$pdf->setFooterMargin(9);
I can add the bleed manually to the page size and the margins. But I found that I cannot only specify the page format with a string (like A5) or an array that contains width and height, but I can also pass an array that contains keys like MediaBox, CropBox, BleedBox, TrimBox and so on (see here).
I wonder if and how I could use those options to fulfill my requiring without adding the width of the bleed manually, so that I get an A5 with 9 mm inner margin and 3 mm bleed (outer margin) on each edge.
You should be talking to the printers design shop and if they do not have one why not ?
The design shop should be working to these PDF program variables (in printers points) for compiling the page as described. Clearly it contains, in this example, body data that you will supply. Since the drawn boxes are not the real contents.
It is unclear why you are required to work in a
/BleedBoxif you have a 9 mm clear margin around the/Art, other than it allows for the trim marks.