[NTG-context] Importing pdf into MPpage

Stefan Nedeljkovic tsar.srb at gmail.com
Sat Jun 11 18:22:30 CEST 2022


That's perfect Fabrice, thank you very much!

On Sat, Jun 11, 2022 at 5:38 PM Fabrice L <fabrice.alpha at gmail.com> wrote:

>
>
> Le 11 juin 2022 à 11:30, Stefan Nedeljkovic <tsar.srb at gmail.com> a écrit :
>
> That's it, but how do I center it on (0, 0)?
>
>
> Sorry, I misunderstood the question. Here is a solution (perhaps there is
> a simpler solution !):
>
> \startMPpage
> picture TheImage ;
> TheImage := image(
> draw externalfigure "cow.pdf";
> );
> TheImage := TheImage shifted -center(TheImage);
> draw TheImage ;
> draw (0,0) withpen pencircle scaled .2in withcolor magenta ;
> \stopMPpage
>
> Fabrice.
>
>
> On Sat, Jun 11, 2022 at 4:46 PM Fabrice L <fabrice.alpha at gmail.com> wrote:
>
>> Dear Stephan,
>>
>> Le 11 juin 2022 à 08:57, Stefan Nedeljkovic via ntg-context <
>> ntg-context at ntg.nl> a écrit :
>>
>> Dear list,
>>
>> I would like to place a pdf file at (0, 0), centered at original size
>> on a MPpage, and draw over it. But using the input command doesn't work.
>> How should I approach this?
>>
>>
>> Like this ?
>>
>> \startMPpage
>>        draw externalfigure "thefile.pdf";
>>        (… other commands…)
>> \stopMPpage
>>
>>
>>
>> Sincerely,
>> Stefan
>>
>>
>> Fabrice.
>>
>>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context at 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
>>
>> ___________________________________________________________________________________
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220611/3c53bdfe/attachment.htm>


More information about the ntg-context mailing list