Command/filterpages
< Command
Jump to navigation
Jump to search
Contents
\filterpages
Summary
The command \filterpages is used to insert pages from another PDF file
Settings
\filterpages[...][...,...][...=...,...] | |
[...] | file |
[...,...] | even odd number number:number |
width | dimension |
n | number |
category | name |
Option | Explanation | ||
---|---|---|---|
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 |
| ||
n |
| ||
category |
|
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
- page-sel.mkvi
- \copypages to insert pages from 1 to 'n' from another PDF
- \insertpages to insert pages from 1 to 'n' from another PDF, with extra blank pages at specific locations
- \startpagefigure to insert a figure as a separate page
- \defineexternalfigure