From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115240 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Nedeljkovic via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Importing pdf into MPpage Date: Sat, 11 Jun 2022 18:22:30 +0200 Message-ID: References: <8F6800D9-B5AA-4FF5-894C-A806F41EDEE4@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5513050479645378876==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="440"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Nedeljkovic , mailing list for ConTeXt users To: Fabrice L Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 11 18:23:24 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o03tU-000ATH-4J for gctc-ntg-context-518@m.gmane-mx.org; Sat, 11 Jun 2022 18:23:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9D4D4289FEF; Sat, 11 Jun 2022 18:22:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5VpMHkGejx_w; Sat, 11 Jun 2022 18:22:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0349828A3B4; Sat, 11 Jun 2022 18:22:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E894228A3B4 for ; Sat, 11 Jun 2022 18:22:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UpmzBCqs8fFS for ; Sat, 11 Jun 2022 18:22:42 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.174; helo=mail-qk1-f174.google.com; envelope-from=tsar.srb@gmail.com; receiver= Original-Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 35298289FEF for ; Sat, 11 Jun 2022 18:22:42 +0200 (CEST) Original-Received: by mail-qk1-f174.google.com with SMTP id o68so1270876qkf.13 for ; Sat, 11 Jun 2022 09:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lvby+IT7pHpN503pUK5MeYO3D32K63vlHcS3bPNncuE=; b=f/Vl9JgdJjOKXNy68d6fxvO20+l0V060eFp+JbpDDCGt9HpgAnEyE3SupAL9lGTQIQ g669gG5eNH8swpTUso+71i2RdFBeo4F9B5FHj9XMYjQz0IHh7+lEGQt/hroFDWtjoMsR UQ8bTH4Fd14TVfTawg8z8vFX1Ncsqpt9Wt/+HWpLbvyt0X5QAEnjVij8wjhu9wwUM8m2 iw35XgF6RzGIIbFywLqF2RvHg+zw/Wh+4zbbLMXX8700NCcXijf8eOXELiXv1nhxzb0Y MsjwJaUuQN2CuiqatVWwzf+inVjPDj8ZNR+YuogXmRWWFucDWH19dvPAnkWMqESngRr2 sRFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lvby+IT7pHpN503pUK5MeYO3D32K63vlHcS3bPNncuE=; b=f1h8xloBaAvZYy7JpXSSARQaj99N854p8t41D+8Q9viw+GVm85fV9goYNC5VusJ1N/ Rytq2HBgmBUrW5RGasGGXhm8VaF7tB4T+Clt8RYfL/KXpgl17cS0AgV/EIIQ7Y+NjJrj 8sj5YZgsNnP7maTU0uDcTnnQGJ3RQrG0VZsYCau7A3q1mymxjKixaKOOPI+VisVhiPVN 5G3JujyTRJrAPhoHoHugAkb6OpNW3MgkKQAsWjJOUK2xXxSmISZxgK5zKGNiJiqnkpqE h57DLt8wasw2+kfX43F8b+nsyc1asUqeFRTA10WBomugiXT7c4MGH9ZSNHpEsxu0BHzi jYYg== X-Gm-Message-State: AOAM533x8lbTKgLC1+1F4LnylsF7XC2xc+SaMaZzlrUPNnVK8LikT3C+ LEWkTfOhffYY86qqQHht7vzvcvOsXRnq7H+rTJaoNZ77 X-Google-Smtp-Source: ABdhPJxp0UJSAdKwKCup2585sqGbDGAWOYRsn2BtaEIN4cJ81XMu0BRLxXA6xgPyArQLoYVhveSxE48MaAEMf+MqKo0= X-Received: by 2002:a05:620a:884:b0:6a7:347:386 with SMTP id b4-20020a05620a088400b006a703470386mr12925097qka.7.1654964560868; Sat, 11 Jun 2022 09:22:40 -0700 (PDT) In-Reply-To: <8F6800D9-B5AA-4FF5-894C-A806F41EDEE4@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:115240 Archived-At: --===============5513050479645378876== Content-Type: multipart/alternative; boundary="000000000000c43ca505e12e76a4" --000000000000c43ca505e12e76a4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That's perfect Fabrice, thank you very much! On Sat, Jun 11, 2022 at 5:38 PM Fabrice L wrote: > > > Le 11 juin 2022 =C3=A0 11:30, Stefan Nedeljkovic a = =C3=A9crit : > > 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 :=3D image( > draw externalfigure "cow.pdf"; > ); > TheImage :=3D 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 wrote= : > >> Dear Stephan, >> >> Le 11 juin 2022 =C3=A0 08:57, Stefan Nedeljkovic via ntg-context < >> ntg-context@ntg.nl> a =C3=A9crit : >> >> 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"; >> (=E2=80=A6 other commands=E2=80=A6) >> \stopMPpage >> >> >> >> Sincerely, >> Stefan >> >> >> Fabrice. >> >> >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o >> 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 >> >> ________________________________________________________________________= ___________ >> >> >> > --000000000000c43ca505e12e76a4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That's perfect Fabrice, thank you very much!

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


Le 11 juin 2022 =C3=A0 11:30, Stefan = Nedeljkovic <tsa= r.srb@gmail.com> a =C3=A9crit :

That&= #39;s it, but how do I center it on (0, 0)?
Sorry, I misunderstood the question. Here is a solution (perhaps th= ere is a simpler solution !):

\startMPpage
picture TheImage ;=C2= =A0
TheImage :=3D im= age(
draw externalf= igure "cow.pdf";
= );
TheImage = :=3D 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 =C3=A0 08:57, Stefan Nedeljkovic via ntg-context = <ntg-context@ntg= .nl> a =C3=A9crit :

Dear list,
I would like to place a pdf file at (0, 0), centered at origin= al size on=C2=A0a MPpage, and draw over it. But using the input command doe= sn't work. How should I approach=C2=A0this?

Like this ?

\startMPpage
=C2=A0=C2=A0 =C2=A0 =C2=A0=C2=A0draw externalfigure "thefile.= pdf";
=C2=A0 =C2=A0 = =C2=A0 =C2=A0(=E2=80=A6 other commands=E2=80=A6)=C2=A0
\stopMPpage


= Sincerely,
Stefan

Fa= brice.

___________________________________________________________________________= ________
If your question is of interest to others as well, please add a= n entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/li= stinfo/ntg-context
webpage =C2=A0: http://www.pragma-ade.nl / http://context.aanhet.net
archiv= e =C2=A0: https://bitbucket.org/phg/context-mirror/commits/
wik= i =C2=A0=C2=A0=C2=A0=C2=A0: http://contextgarden.net
__________________________________= _________________________________________________


--000000000000c43ca505e12e76a4-- --===============5513050479645378876== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5513050479645378876==--