From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: plantuml and svg format instead of png - feature request Date: Fri, 10 Sep 2010 20:52:10 +0200 Message-ID: <4C8A7E5A.7030405@gmail.com> References: <4C89291C.6050001@gmail.com> <87tylxcuhc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43784 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou8ht-00052n-5o for emacs-orgmode@gnu.org; Fri, 10 Sep 2010 14:52:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou8hr-00013a-Sn for emacs-orgmode@gnu.org; Fri, 10 Sep 2010 14:52:17 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:58864) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou8hr-00013U-Np for emacs-orgmode@gnu.org; Fri, 10 Sep 2010 14:52:15 -0400 Received: by wyb36 with SMTP id 36so3681421wyb.0 for ; Fri, 10 Sep 2010 11:52:14 -0700 (PDT) In-Reply-To: <87tylxcuhc.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/09/10 20:40, Eric Schulte wrote: > Hi Rainer, > > If you could send me an example of how to generate an svg image using > plantuml on the command line, I'll add that functionality to > ob-plantuml.el. from org: #+begin_src :file test.svg :commandline -tsvg ... #+end_src command line: java -jar plantuml.jar -tsvg -p < sequence.plantuml > sequence.svg with direct conversion to pdf when using rsvg-convert: java -jar plantuml.jar -tsvg -p < sequence.plantuml | rsvg-convert -f pdf > sequence.pdf Options for rsvg-convert: -f , --format=[png, pdf, ps, svg] save format [optional; defaults to 'png'] the others are not that relevant. Thanks, Rainer > > Thanks -- Eric > > Rainer M Krug writes: > >> Hi >> >> I just saw that a bug in plantuml is fixed - namely that -tsvg is >> compatible with the -pipe optin. Therefore it should be possible top >> produce svg vector graphs from plantuml. >> >> In a second step, these could be converted to png, pdf or ps with the >> packagelibrsvg2-bin (I am using ubuntu), therefore producing high >> quality graphs. >> >> As I don't know how to implement it, would it be possible to implement >> >> - that, depending on the :file name specified, either a .png or a .svg >> is produced by plantuml >> >> The conversion to ps or pdf could then be done in a second bash script. >> >> Thanks, >> >> and I really like the plantuml integration for quickly documenting with >> flowcharts while programming - brilliant. >> >> Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel: +33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: Rainer@krugs.de Skype: RMkrug -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyKfloACgkQoYgNqgF2ego4iACdH+7oPmFOsMsCbOnl5ntde6YD kvkAoIsHEnXi5ch+KFVEnaCB4dTTgC6V =O9ad -----END PGP SIGNATURE-----