[NTG-context] splitting a pdf into multiple volumes

Ralf Schmitt ralf at brainbot.com
Wed Jul 19 22:33:49 CEST 2006


Peter Münster wrote:
> On Wed, 19 Jul 2006, Ralf Schmitt wrote:
> 
>>> texexec --pdfselect --selection=1:10 yourfile.pdf --result=anotherfile
>> That would work. The problem I have is that I don't know where to split 
>> the pdf file (but I know where to split the context file).
> 
> If you know about make, you could write a nice Makefile, that takes as
> input a temporary file generated by ConTeXt.
> Example for generating such a file:
> 
> \newwrite\myTmpFile
> \openout\myTmpFile \jobname-pages.tmp
> \starttext
> \dorecurse{6}{\chapter{bla}}
> \page\write\myTmpFile{chapter7=\currentpage}
> \dorecurse{6}{\chapter{bla}}
> \page\write\myTmpFile{chapter13=\currentpage}
> \dorecurse{6}{\chapter{bla}}
> \write\myTmpFile{end=\currentpage}
> \stoptext

Fantastic, that's exactly what I need.

Many thanks,
- Ralf


More information about the ntg-context mailing list