It still is weird. It sometimes work (but not completely) and sometimes not. For instance

\definepapersize[a3landscape][A3,landscape]
\definepapersize[a4portrait][A4,portrait]
\setuppapersize[a3landscape]
\starttext
\externalfigure[foo.pdf]
\stoptext

foo.pdf is a 18.43x13.88 inch PDF image
The end result is a 16.54x16.54 inch PDF image with the embedded image cropped.

??

G

On 13 Jan 2012, at 16:47, luigi scarso wrote:



On Fri, Jan 13, 2012 at 4:44 PM, Gerben Wierda <gerben.wierda@rna.nl> wrote:
Answering my own question, quite simple with ConTeXt:

\definepapersize[a3landscape][A3,landscape]
\definepapersize[a4portrait][A4,portrait]
\setuppapersize[a4portrait]
\starttext
\externalfigure[foo.pdf]
\page\setuppapersize[a3landscape]
\externalfigure[bar.pdf]
\stoptext

G

PS. The solution below does not work because it keeps the sizes of the images and does not set page sizes for the pages where the images are embedded.

Ah ok, you don't want to inherit the pagesize from the external pdf.

--
luigi

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________