Open main menu


\filterpages

Summary

The command \filterpages is used to insert pages from another PDF file

Settings

\filterpages[...][...,...][...=...,...]
[...]file
[...,...]even odd number number:number
widthdimension
nnumber
categoryname

OptionExplanation
even Select even pages (actual pdf page 2, 4, 6, etc.)
odd Select odd pages (actual pdf page 1, 3, 5, etc.)
number Select a single page. Can be combined with other single pages or page ranges.
number:number Select a range of pages. Can be combined with other single pages or page ranges.
width
dimension Rescales the included page(s) to this width
n
number Number of pages (does not actually work currently)
category
name A set of \externalfigure settings, as defined by \defineexternalfigure

Description

Insert pages from another PDF file as pages in the current document. One can cherry-pick specific pages or page ranges.

Please note that the inserted pages will be placed on your ConTeXt pages like a new "layer", or floating object. This means that your existing headers, footers, crop marks will still be printed on top of or behind the inserted pages.

If you want to insert pages as completely independent pages between your existing ConTeXt pages, use \startpagefigure.

Examples

Example 1

Insert page 1, and 3 through 6, of file.pdf:

\filterpages[file.pdf][1,3,4:6][width=18cm]

Example 2

\defineexternalfigure[inframe][option=frame,factor=fit]
\filterpages[pagetest][odd][category=inframe]

Notes

See also

Help from ConTeXt-Mailinglist/Forum