0

This question evolved as a solution to the problem in old thread about Copy-paste support for documents between Mac and Linux/Windows.

I have these pdf commands in OS X

pdf180             pdfclose           pdfjam-pocketmod   pdfpun
pdf270             pdfcrop            pdfjam-slides3up   pdfroff
pdf2dsc            pdfcslatex         pdfjam-slides6up   pdftex
pdf2ps             pdfcsplain         pdfjoin            pdftosrc
pdf90              pdfetex            pdflatex           pdfxmltex
pdfannotextractor  pdfflip            pdfmex             
pdfatfi            pdfjadetex         pdfnup             
pdfbook            pdfjam             pdfopen            

where nothing comes to my mind as a helpful tool.

How can you split a page from a LaTeX document by keeping the document as produced by xdvipdfmx?

1 Answers1

3

Here is one way which does not rely on external tools. pagesel can be used to typeset one or more pages from a document. To create the document, comment out the line which loads pagesel and compile until everything is correct. Then uncomment the line and recompile.

\documentclass{article}
\usepackage{kantlipsum}
\usepackage[3]{pagesel}
\begin{document}
    \kant[1-20]
\end{document}

This will get you just page 3:

page 3

If you prefer an external tool, pdftk is excellent but is not, I think, being maintained any longer. However, it is still the best command line tool I'm familiar with.

cfr
  • 198,882