* Importing pdf into MPpage
@ 2022-06-11 12:57 Stefan Nedeljkovic via ntg-context
2022-06-11 14:46 ` Fabrice L via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-06-11 12:57 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Stefan Nedeljkovic
[-- Attachment #1.1: Type: text/plain, Size: 202 bytes --]
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?
Sincerely,
Stefan
[-- Attachment #1.2: Type: text/html, Size: 288 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Importing pdf into MPpage
2022-06-11 12:57 Importing pdf into MPpage Stefan Nedeljkovic via ntg-context
@ 2022-06-11 14:46 ` Fabrice L via ntg-context
2022-06-11 15:30 ` Stefan Nedeljkovic via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Fabrice L via ntg-context @ 2022-06-11 14:46 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Fabrice L
[-- Attachment #1.1: Type: text/plain, Size: 994 bytes --]
Dear Stephan,
> Le 11 juin 2022 à 08:57, Stefan Nedeljkovic via ntg-context <ntg-context@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@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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2973 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Importing pdf into MPpage
2022-06-11 14:46 ` Fabrice L via ntg-context
@ 2022-06-11 15:30 ` Stefan Nedeljkovic via ntg-context
2022-06-11 15:38 ` Fabrice L via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-06-11 15:30 UTC (permalink / raw)
To: Fabrice L; +Cc: Stefan Nedeljkovic, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1171 bytes --]
That's it, but how do I center it on (0, 0)?
On Sat, Jun 11, 2022 at 4:46 PM Fabrice L <fabrice.alpha@gmail.com> wrote:
> Dear Stephan,
>
> Le 11 juin 2022 à 08:57, Stefan Nedeljkovic via ntg-context <
> ntg-context@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@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
>
> ___________________________________________________________________________________
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 2764 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Importing pdf into MPpage
2022-06-11 15:30 ` Stefan Nedeljkovic via ntg-context
@ 2022-06-11 15:38 ` Fabrice L via ntg-context
2022-06-11 16:22 ` Stefan Nedeljkovic via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Fabrice L via ntg-context @ 2022-06-11 15:38 UTC (permalink / raw)
To: Stefan Nedeljkovic; +Cc: Fabrice L, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1892 bytes --]
> Le 11 juin 2022 à 11:30, Stefan Nedeljkovic <tsar.srb@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@gmail.com <mailto:fabrice.alpha@gmail.com>> wrote:
> Dear Stephan,
>
>> Le 11 juin 2022 à 08:57, Stefan Nedeljkovic via ntg-context <ntg-context@ntg.nl <mailto:ntg-context@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@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>> archive : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4906 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Importing pdf into MPpage
2022-06-11 15:38 ` Fabrice L via ntg-context
@ 2022-06-11 16:22 ` Stefan Nedeljkovic via ntg-context
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-06-11 16:22 UTC (permalink / raw)
To: Fabrice L; +Cc: Stefan Nedeljkovic, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1816 bytes --]
That's perfect Fabrice, thank you very much!
On Sat, Jun 11, 2022 at 5:38 PM Fabrice L <fabrice.alpha@gmail.com> wrote:
>
>
> Le 11 juin 2022 à 11:30, Stefan Nedeljkovic <tsar.srb@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@gmail.com> wrote:
>
>> Dear Stephan,
>>
>> Le 11 juin 2022 à 08:57, Stefan Nedeljkovic via ntg-context <
>> ntg-context@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@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
>>
>> ___________________________________________________________________________________
>>
>>
>>
>
[-- Attachment #1.2: Type: text/html, Size: 4288 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-06-11 16:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-11 12:57 Importing pdf into MPpage Stefan Nedeljkovic via ntg-context
2022-06-11 14:46 ` Fabrice L via ntg-context
2022-06-11 15:30 ` Stefan Nedeljkovic via ntg-context
2022-06-11 15:38 ` Fabrice L via ntg-context
2022-06-11 16:22 ` Stefan Nedeljkovic via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).