[NTG-context] Insert page number into multi-page PDF

Vnpenguin vnpenguin at vnoss.org
Tue Sep 7 19:49:15 CEST 2010


On Tue, Sep 7, 2010 at 18:52, Wolfgang Schuster
<schuster.wolfgang at googlemail.com> wrote:
>
> Am 07.09.2010 um 18:40 schrieb Vnpenguin:
>
>> On Tue, Sep 7, 2010 at 00:00, Hans Hagen <pragma at wxs.nl> wrote:
>>>
>>> \setuplayout[page]
>>>
>>> \copypages[yourfile.pdf][n=10]
>>>
>>> you can put stuff on top using the background mechanisms
>>
>> Could you give me an example about background mechanism ?
>
>
> \defineoverlay
>  [pagenumber]
>  [\vbox to \paperheight
>     {\blank[force,3cm]
>      \midaligned{\pagenumber\ – \lastpagenumber}
>      \vfill}]
>
> \setupbackgrounds[page][background={foreground,pagenumber}]
>
> \starttext
> ...
> \stoptext
>
> Wolfgang
>
>

Excellent, it works well.

Thank you so much,

Regards,


More information about the ntg-context mailing list