Hi guys,

I created a CTX document and now I am trying to merge it with two other pages from another (already compiled) pdf document. Usually I did this job with PDF Split And Merge software, but if CTX (mkiv, LuaTeX) is capable of doing the job, I'd be glad to use CTX instead.

On the wiki I found a code snippet that sounds promising, as I don't want headers, page numbers etc. on the two merged pages:

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

So I added another line with page=2 as content, yet the output generates a PDF with the first page twice only. In fact, my precompiled doc has 3 pages, of which I want the first two only in my new PDF, even when I use the following code, LuaTeX generates the first page of the precompiled PDF three times:

\startpagefigure[file.pdf][page=3]\stoppagefigure
\startpagefigure[file.pdf][page=1]\stoppagefigure
\startpagefigure[file.pdf][page=5]\stoppagefigure

Like I mentioned: even although there is no 5th page in file.pdf, LuaTeX pastes the first page three times...

Am I overlooking something or was there some undocumented change to the code?


Thanks in advance, Sebastian