From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115239 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice L via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Importing pdf into MPpage Date: Sat, 11 Jun 2022 11:38:24 -0400 Message-ID: <8F6800D9-B5AA-4FF5-894C-A806F41EDEE4@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Content-Type: multipart/mixed; boundary="===============6352672901869813906==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36951"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Fabrice L , mailing list for ConTeXt users To: Stefan Nedeljkovic Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 11 17:39:02 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 1o03CX-0009L0-UN for gctc-ntg-context-518@m.gmane-mx.org; Sat, 11 Jun 2022 17:39:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AA84928A3BD; Sat, 11 Jun 2022 17:38:32 +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 30TylzzOexbY; Sat, 11 Jun 2022 17:38:30 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8281828A3A9; Sat, 11 Jun 2022 17:38:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7155F28A3A9 for ; Sat, 11 Jun 2022 17:38:28 +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 KXPQDNxgdVtg for ; Sat, 11 Jun 2022 17:38:27 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.179; helo=mail-qk1-f179.google.com; envelope-from=fabrice.alpha@gmail.com; receiver= Original-Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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 1B3C528A398 for ; Sat, 11 Jun 2022 17:38:27 +0200 (CEST) Original-Received: by mail-qk1-f179.google.com with SMTP id a184so1243824qkg.5 for ; Sat, 11 Jun 2022 08:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=UhZwjrZJRXgBpxBTF0o/OPr53tiYhXcmF8D0dbulAto=; b=azecbYlrH6J/0QWQiyeVzrWHQIxsPvX1Dk7+GPVR1SrXGcwISQr24W5R+b/7IpaGeO NIndLHJ4K58v2rfvl10yROxWjukuua6WgYcFTziJrqaa8M1ZGpfq3rB0s80gZYxQkG0J ic9m4JNiyODYzpt3f+TwxnkAq9Kfsin8zy6tAMTeuLOxwIcPs+517c2ZsPbyZJ/iyP0Y s8+ean7BVzfzlsKk7NyvbmpdAv8kZxnPvByAXLD2pNwh15ptgY0XI/OUtCMvOfC31NQv u7+0wxKL3sDdXLeifWVPm+g2dFuVspj1PAR6IIb/POOaSothrBsVOw0xt0gmeA40/nvJ cFPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=UhZwjrZJRXgBpxBTF0o/OPr53tiYhXcmF8D0dbulAto=; b=JcYwiXOY5IIKTBl77WjVBeA2c7bTxeIDjlznx0y87Z42DMK4vhEDgHYx1aA4nZ9sgw YfjGDJF4VLK5mamddaK+Lfaessbi5lykZsQiHmDreokvNO6bNE6ldjOkq0ok3AF8qOrR YR4eyiwk5NBByUYCCxsMQSzJY5yuyox/8a/33gyI76QI4QlO9WOcYPv45X/WyQrT5ue5 bUhPEHSWRyqmo/pbAxpUqByu4ZMzx066kXcLGBAa0hKzqOCdpd+IQT+gBJSL+UcCdP+u h2mDpf1iCLiZ9n2wtuALCoF2OMGZb3JyWQb8s5gGV2E17lbC70rmxn3CTWlV5bIXWUjy JCEQ== X-Gm-Message-State: AOAM533V/JwlpGmjyGYT9c29CiqC2vYH4FyTeCum63MyMEPTFtWslpMW y6E5YNYIyXv0MzPNhI8NFqqjCduXKRw= X-Google-Smtp-Source: ABdhPJwt/kBq/d1l/OTv6o8QTZhbGfEcr3tP+J8lk8AFPrQ9u9uehvZDYmYcyyl9veR2gYpbb+uZGg== X-Received: by 2002:ae9:c20a:0:b0:6a7:3adf:109 with SMTP id j10-20020ae9c20a000000b006a73adf0109mr8260411qkg.747.1654961905821; Sat, 11 Jun 2022 08:38:25 -0700 (PDT) Original-Received: from smtpclient.apple ([38.74.28.141]) by smtp.gmail.com with ESMTPSA id f8-20020a05620a408800b006a77e6df09asm76025qko.24.2022.06.11.08.38.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Jun 2022 08:38:25 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3696.100.31) 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:115239 Archived-At: --===============6352672901869813906== Content-Type: multipart/alternative; boundary="Apple-Mail=_3CFFEC66-EAA9-4CD6-97A7-758066A235D8" --Apple-Mail=_3CFFEC66-EAA9-4CD6-97A7-758066A235D8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 11 juin 2022 =C3=A0 11:30, Stefan Nedeljkovic = a =C3=A9crit : >=20 > 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 ;=20 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. >=20 > On Sat, Jun 11, 2022 at 4:46 PM Fabrice L > wrote: > Dear Stephan, >=20 >> Le 11 juin 2022 =C3=A0 08:57, Stefan Nedeljkovic via ntg-context = > a =C3=A9crit : >>=20 >> Dear list, >>=20 >> 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? >=20 > Like this ? >=20 > \startMPpage > draw externalfigure "thefile.pdf"; > (=E2=80=A6 other commands=E2=80=A6)=20 > \stopMPpage >=20 >=20 >>=20 >> Sincerely, >> Stefan >=20 > Fabrice. >=20 >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> 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 >> = __________________________________________________________________________= _________ >=20 --Apple-Mail=_3CFFEC66-EAA9-4CD6-97A7-758066A235D8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Le 11 juin 2022 =C3=A0 11:30, Stefan Nedeljkovic <tsar.srb@gmail.com> = 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 <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 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 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
_______________________________________________________________= ____________________


= --Apple-Mail=_3CFFEC66-EAA9-4CD6-97A7-758066A235D8-- --===============6352672901869813906== 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== --===============6352672901869813906==--