ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Paper size, MediaBox, CropBox and cropping
@ 2005-11-23 10:33 Pearson, Mark (Capita Symonds)
  2005-11-23 10:37 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Pearson, Mark (Capita Symonds) @ 2005-11-23 10:33 UTC (permalink / raw)


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.
***********************************************************************************

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Paper size, MediaBox, CropBox and cropping
  2005-11-23 10:33 Paper size, MediaBox, CropBox and cropping Pearson, Mark (Capita Symonds)
@ 2005-11-23 10:37 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2005-11-23 10:37 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-23 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-23 10:33 Paper size, MediaBox, CropBox and cropping Pearson, Mark (Capita Symonds)
2005-11-23 10:37 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).