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) Many thanks, Mark. ------------------------------------------------------------------------ --- Mark Pearson BSc (hons) MSc DPhil IT Consultant Capita Symonds The Capita Building, Kingmoor Business Park Carlisle. CA6 4SJ. Tel: 01228 673023 Fax: 01228 673111 Web: www.capitasymonds.co.uk ********************************************************************************** This email and any files transmitted with it are confidential, and may be subject to legal privilege, and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error or think you may have done so, you may not peruse, use, disseminate, distribute or copy this message. Please notify the sender immediately and delete the original e-mail from your system. Computer viruses can be transmitted by e-mail. Recipients should check this e-mail for the presence of viruses. The Capita Group and its subsidiaries accept no liability for any damage caused by any virus transmitted by this e-mail. ***********************************************************************************
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
participants (2)
-
Hans Hagen
-
Pearson, Mark (Capita Symonds)