Aditya Mahajan schrieb am 24.09.2020 um 23:48:
On Thu, 24 Sep 2020, Alan Bowen wrote:
I need to include several documents in a single paginated file. Treating the source file (.tex) of each document as a component file in a .prd file is one way to go. But I was wondering if it might be possible to do get the same result using the .pdf files of each document instead.
\copypages is promising: it includes the. pdf files and the counter in the resultant .prd file is correct. But what I still have to get is the page number on all pages of the included .pdf files except the first page in each.
I looked at \startpagefigure but that would be a very cumbersome way to go since there over 350 pages to include, given that it handles only one page at a time.
I hope that this makes sense.
I don't completely understand the question
I guess something like this: \setupexternalfigures[location=default] \starttext ... \page \getfiguredimensions[texit.pdf] \noheaderandfooterlines \dorecurse{\noffigurepages} {\vbox to \vsize {\vskip-\dimexpr\headerheight+\topspace\relax \hbox to \hsize {\hskip-\backspace \externalfigure[texit.pdf][page=\recurselevel]% \hss}% \vss}} \page ... \stoptext
Any suggestions or pointers will be most welcome.
See if this gives you any ideas ....
https://adityam.github.io/context-blog/post/include-multi-page-pdf/
When both document have the same size you can replace TeXpage with a "page" layout. \startlayout[page] \dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]} \stoplayout Wolfgang