From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42095 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Include SVG pictures with ConTeXt Date: Thu, 3 Jul 2008 13:21:22 +0200 Message-ID: <115224fb0807030421j63b0a4d4ye0497ff7371c146@mail.gmail.com> References: <48602E09.9000803@laposte.net> <48643BAB.6090408@laposte.net> <4866F30A.6090601@laposte.net> <48673D4C.6000401@elvenkind.com> <4867E681.6020105@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215084208 28291 80.91.229.12 (3 Jul 2008 11:23:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 11:23:28 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 03 13:24:14 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KEMv6-0006gW-TD for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jul 2008 13:24:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5164B1FE69; Thu, 3 Jul 2008 13:23:20 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28727-04-3; Thu, 3 Jul 2008 13:22:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4C6371FE5E; Thu, 3 Jul 2008 13:22:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D34371FE5E for ; Thu, 3 Jul 2008 13:22:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31381-03-2 for ; Thu, 3 Jul 2008 13:21:58 +0200 (CEST) Original-Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.245]) by ronja.ntg.nl (Postfix) with ESMTP id 37EFF1FE55 for ; Thu, 3 Jul 2008 13:21:25 +0200 (CEST) Original-Received: by ag-out-0708.google.com with SMTP id 35so4375217aga.1 for ; Thu, 03 Jul 2008 04:21:23 -0700 (PDT) Original-Received: by 10.151.142.16 with SMTP id u16mr190475ybn.164.1215084082718; Thu, 03 Jul 2008 04:21:22 -0700 (PDT) Original-Received: by 10.150.96.3 with HTTP; Thu, 3 Jul 2008 04:21:22 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42095 Archived-At: On Thu, Jul 3, 2008 at 1:11 PM, Henning Hraban Ramm wrote: > Am 2008-06-29 um 21:46 schrieb Hans Hagen: >> \usemodule[res-08] \setups[rl:manipulate] >> >> \setupexternalfigures[location=local,directory=.,conversion=pdf] % >> lowres,prefix=lowres/] >> >> \starttext >> >> \externalfigure[svg/ausmap.svg][frame=on] >> >> \stoptext >> >> it assumes inkscape being present > > > Just wikified that and added a lot of links to SVG resources: > http://wiki.contextgarden.net/SVG > > Since Adobe Reader supports SVG graphics natively - perhaps we could > just include them in the PDF? > Here's a sample script in Perl: http://www.kevlindev.com/utilities/index.htm > and Python: http://jan.kollhof.net/projects/svg/svgpdf/ > I didn't look at them for I don't know the internals anyway, but I > guess one could use this technique in Lua, too? It's just a wrapper to include the image in a pdf file a object stream (or whatever this is called) and creats links to the image but I was only able to display it on windows, on Mac I saw only the text "svg into pdf". > An other way would be Cairo graphics library (also used by Mozilla) to > convert SVG: http://cairographics.org > There's even a Lua binding for Cairo: http://www.dynaset.org/dogusanh/download.html#cairopad > But I don't really understand if Cairo is suitable to convert SVG to > other than pixel graphics for screen rendering. > > Apache's Batik library claims to support SVG to PDF conversion: > http://xmlgraphics.apache.org/batik/ > > So perhaps someone more qualified than me could make SVG integration > for ConTeXt... Wolfgang ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________