On 05/25/2017 05:22 PM, cryo shock wrote:
> 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:

Hi Sebastian,

how about the following code (I don’t remember when, how or where I
found it)?

    \starttext
    \startpagemakeup\filterpages[file.pdf][1]\stoppagemakeup
    \startpagemakeup\filterpages[file.pdf][2]\stoppagemakeup
    \startpagemakeup\filterpages[file.pdf][3]\stoppagemakeup
    \stoptext

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

If you add a non-existing page, you will get a blank page (with the code
above).

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

Sorry, but I don’t know. Probably I used pagefigure before discovering
pagemakeup.

Just in case it might help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to