Thanks all for the answers.

The solution by both Peters works well:

---
\starttext
  \filterpages[1.pdf][1:2]
  \page

  \setuplayout[page]
  \filterpages[1.pdf][1:2]
  \setuplayout[reset]
  \page
\stoptext
---

To Hans:

I really needed to filter out some pages.

(In this case, I wanted to use pages 1-2 from a pdf which has exactly 2 pages, 
but it won't happen in general - this was only a special sample case.)

My task IN GENERAL is - let's have a pdf of a scanned document. Let it have 
e.g. 20 pages. And I need to insert pages 1-10 at one place and 16-20 at 
another place (scanned pages 11-15 won't be used).

These pages are to be placed UNSCALED to the document. So:

- I can't use \externalfigure as it places just ONE specific page to the 
document.

- I can't use \insertpages as I can determine only the NUMBER of pages to include, but 
not the FIRST page (see the "n=..." option).

- I can't use \copypages for the same reason as \insertpages.

- So the one possibility is to use \filterpages as it offers possibility to 
select exact pages or their ranges.

The initial problem was that \filterpages scales inserted pages to \textwidth so I tried to play 
with the "width" option. And the "width" option works - how exactly? (See the 
previous trials.)

Best regards,

Lukas


On Fri, 19 Nov 2010 21:44:16 +0100, Hans Hagen <pra...@wxs.nl> wrote:

On 18-11-2010 2:12, Peter Rolf wrote:
Am 18.11.2010 10:53, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,

I'm trying similar code as described on
http://wiki.contextgarden.net/Including_pages_from_PDF_document:

---
\starttext
   \filterpages[1.pdf][2][width=15cm]
   \page
   \filterpages[1.pdf][2][width=5cm]
\stoptext
---

commands like \filterpages are for special purposes (and will probably
move to modules), you probably want:

\starttext
    \externalfigure[1.pdf][page=2,width=15cm]
    \page
    \externalfigure[1.pdf][page=2,width=5cm]
\stoptext

Attachment: 1.pdf
Description: Adobe PDF document

Attachment: IncSc3.mkiv
Description: Binary data

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to