Including pages from PDF documents

From Wiki
Revision as of 19:20, 7 June 2005 by 141.84.28.166 (talk)
Jump to navigation Jump to search

To include only a specific page from a PDF document you can write

\externalfigure[file.pdf][page=1,width=...]

or

\startTEXpage
    \externalfigure[file.pdf][page=1,width=...]
\stopTEXpage

which is equal to

\startpagefigure[file.pdf][page=4]\stoppagefigure

This one inserts the first 30 pages of the document and adds a blank page after the first and the third page.

\insertpages[file.pdf][1,3][n=30,width=18cm]

If you want to insert a couple of pages use this:

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

to insert pages 1, 3 and 4 or

\filterpages[file.pdf][even][width=18cm] % even/odd

to insert even/odd pages up to the page 30.

Yet another alternative is

\copypages[file.pdf][n=30,scale=950]

to insert the first 30 pages scaled down to 95%.

Printing Slides from a presentation

If you want to make a 2*3 matrix from all the slides in the document you can use the following example:

\setuppapersize
  [A4][A4] % or [A4,landscape][A4,landscape]

\setuplayout
  [header=0pt,footer=1cm,
   backspace=1cm,topspace=1cm,
   width=middle,height=middle]

\setupfootertexts
  [presentation---\currentdate\space---\space\pagenumber]

\starttext
  \combinepages[slides][nx=2,ny=3,frame=on]
\stoptext

Slicing the pages

The opposite of combining the pages together is to slice them in pieces.

This will make 3*3 pages out of your document (well, it depends on proportions).

\starttext
    \slicepages[slice1.pdf][n=3]
\stoptext

Adding comments to pages

\setuppagecomment[state=start,location=right]

\startpagecomment
\input knuth
\stoppagecomment