Pearson, Mark (Capita Symonds) wrote:
Hi all,
Does anyone know if it is possible to force the PDF output from ConTeXt to contain both a /MediaBox and /CropBox, having set up a document in the following manner:
\definepapersize [BusinessCard] [width=85mm,height=54mm]
\setuppapersize [BusinessCard] [A5,landscape]
\setuplayout [location=middle, marking=on, header=0mm, footer=3mm, topspace=0mm, leftmargin=0mm, rightmargin=0mm, width=85mm, height=54mm, backspace=0mm]
When I look at the PDF output I can only find the following box definition:
/MediaBox [0 0 595.2756 419.5276]
which works out to the size of the A5 sheet (595pt ~= 210mm, 419 ~= 148mm).
However what I want to be able to encode in the PDF file is the size/position of the 'BusinessCard', or to put it another way, the positions of the crop marks, so that I can act upon that information using an external tool (specifically to generate a PNG image preview of the business card PDF with correct cropping)
add: \setupinteractionscreen and you'll get a few more boxes Hans