Changes
Jump to navigation
Jump to search
Including pages from PDF documents (view source)
Revision as of 18:53, 7 June 2005
, 18:53, 7 June 2005no edit summary
To include only a specific page from a PDF document you can write
<texcode>
\externalfigure[file.pdf][page=1,width=...]
</texcode>
or
<texcode>
\startTEXpage
\externalfigure[file.pdf][page=1,width=...]
\stopTEXpage
</texcode>
This one inserts the first 30 pages of the document and adds a blank page after the first and the third page.
<texcode>
\insertpages[file.pdf][1,3][n=30,width=18cm]
</texcode>
If you want to insert a couple of pages use this:
<texcode>
\filterpages[file.pdf][1,3,4][width=18cm]
</texcode>
to insert pages 1, 3 and 4 or
<texcode>
\filterpages[file.pdf][even][width=18cm] % even/odd
</texcode>
to insert even/odd pages up to the page 30.
Yet another alternative is
<texcode>
\copypages[file.pdf][n=30,scale=950]
</texcode>
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:
<texcode>
\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
</texcode>
== 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).
<texcode>
\starttext
\slicepages[slice1.pdf][n=3]
\stoptext
</texcode>
== Adding comments to pages ==
<texcode>
\setuppagecomment[state=start,location=right]
\startpagecomment
\input knuth
\stoppagecomment
</texcode>
<texcode>
\externalfigure[file.pdf][page=1,width=...]
</texcode>
or
<texcode>
\startTEXpage
\externalfigure[file.pdf][page=1,width=...]
\stopTEXpage
</texcode>
This one inserts the first 30 pages of the document and adds a blank page after the first and the third page.
<texcode>
\insertpages[file.pdf][1,3][n=30,width=18cm]
</texcode>
If you want to insert a couple of pages use this:
<texcode>
\filterpages[file.pdf][1,3,4][width=18cm]
</texcode>
to insert pages 1, 3 and 4 or
<texcode>
\filterpages[file.pdf][even][width=18cm] % even/odd
</texcode>
to insert even/odd pages up to the page 30.
Yet another alternative is
<texcode>
\copypages[file.pdf][n=30,scale=950]
</texcode>
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:
<texcode>
\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
</texcode>
== 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).
<texcode>
\starttext
\slicepages[slice1.pdf][n=3]
\stoptext
</texcode>
== Adding comments to pages ==
<texcode>
\setuppagecomment[state=start,location=right]
\startpagecomment
\input knuth
\stoppagecomment
</texcode>