Changes

Jump to navigation Jump to search
m
no edit summary
< [[Graphics]] | [[Using_Graphics]] | [[Overlays]] | [[Layers]] | [[Graphical_text_manipulation|Manipulation]] >== Introduction ==__TOC__
[http://source.contextgarden.net/tex/context/base/page-imp.mkii page-imp.mkii] and [http://source.contextgarden.net/tex/context/base/page-sel.mkiv page-sel.mkiv] defines some handy macros for handling import of existing PDF documents.
=== Insert a PDF page as a figure ===
To insert a single page from a PDF document into your text as a figure, you can write
</texcode>
By default, the interactive elements of the included PDF file are discarded. To enable the interactive elements of the included PDF file, use <texcode>\externalfigure[filename.pdf][interaction==yes]</texcode> = Insert PDF page(s) as full-page figures ===
If you simply want to insert the first "n" number of pages from a PDF as full-page figures, use {{cmd|copypages}}. For example, to insert the first 30 pages scaled down to 95%, you can write
(See also Taco's hack in [[Processing Lists]] for handling ranges of numbers or [http://archive.contextgarden.net/thread/20050704.222033.bbadb15a.en.html this] thread in the mailing list.)
=== Merge a single PDF page into your document ===
To insert a single page from a PDF document after the current page as a full page without adding any headers, footers, etc., use this:
Optionally, you can also add some text to the bottom of the PDF page. For more info, see {{cmd|startpagefigure}}.
'''Note''' that with the latest CTX standalone beta as of '''2017/05/27''' (mkiv, LuaTeX) the way described seems not to work properly. In the output you might find the first page only, no matter which <code>page</code> argument (<code>page=2...n</code>) you use.The following workaround might provide useful in that case:<texcode> \startpagemakeup \filterpages[file][n] % n in Natural \stoppagemakeup</texcode> = Page numbering with {{cmd|startpagefigure}} ==
Experience shows that when you include a page from a PDF file using {{cmd|startpagefigure}}, the page number of your document is not increased. The included PDF page is completely excluded from the page numbering process. This is annoying if you include a PDF page in the middle of your document, and expect your page numbers to be correct after the PDF page.
<code>ConTeXt ver: 2013.10.01 20:08 MKIV beta</code>. Other commands like <code>\incrementnumber[page]</code> or <code>\page[+1]</code> or <code>\page[16]</code> did not help to solve this problem correctly.
== 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>
== Slicing the pages ==
The opposite of combining the pages together is to slice them in pieces.
</texcode>
== Adding comments to pages ==
<texcode>
== Reformatting a Single-Sided pdf for Double-Sided Printing ==
Context can be used as a pdf postprocessor.
[[Category:PDF]]
[[Category:Graphics]]

Navigation menu