From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63788 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Creating graphic file instead of PDF Date: Sun, 21 Nov 2010 10:38:01 +0100 Message-ID: References: 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: dough.gmane.org 1290332309 3109 80.91.229.12 (21 Nov 2010 09:38:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2010 09:38:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 21 10:38:24 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PK6NL-0005vj-T8 for gctc-ntg-context-518@m.gmane.org; Sun, 21 Nov 2010 10:38:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F3B8ECA847; Sun, 21 Nov 2010 10:38:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vc4j4APwkIKb; Sun, 21 Nov 2010 10:38:16 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A38D8CA843; Sun, 21 Nov 2010 10:38:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 813E2CA843 for ; Sun, 21 Nov 2010 10:38:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id p4+LwZIyUP-B for ; Sun, 21 Nov 2010 10:38:04 +0100 (CET) Original-Received: from filter7-ams.mf.surf.net (filter7-ams.mf.surf.net [192.87.102.75]) by balder.ntg.nl (Postfix) with ESMTP id 0991BCA834 for ; Sun, 21 Nov 2010 10:38:04 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter7-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAL9c1Vv009888 for ; Sun, 21 Nov 2010 10:38:02 +0100 Original-Received: by fxm20 with SMTP id 20so3878959fxm.14 for ; Sun, 21 Nov 2010 01:38:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=xekqLuxrQSCPvwRwldyPwzQp4ckCEGBV1+uHr+QFR6A=; b=uNPPiyEhcnsLG/Qrllds3qLGOMXkspuUMR0aIRcmiku0Tg+IyhthvGY3wLJsx4voGG kuybThWDUWuINX+CBYiZFKyWdav7evzEinqGzCCDyls5916MXjGhc2GHV1efs7s5Am2K /+IqKF640osifAt8Flu4IWTi0r1dwn2harZGM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=oafmcfi3kLXUqYnvZZAPDO7cCffdI10SFkcpBHlsGOpITRTK6lPH0uw1IBSJwmWFhV KgmCtlTMx3eH7NiX2vDjlIVubwaXCped77QwKHiV83Su1abUFaFGjIYf8mfUGSEaT5yM 1eOn9GQ1r221uo4VcPBcj5wvYIvrZRiryOkfI= Original-Received: by 10.223.115.203 with SMTP id j11mr3828052faq.35.1290332281245; Sun, 21 Nov 2010 01:38:01 -0800 (PST) Original-Received: by 10.223.3.14 with HTTP; Sun, 21 Nov 2010 01:38:01 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0DDxJC1Em - 7b74effeae49 - 20101121 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.75 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:63788 Archived-At: 2010/11/21 luigi scarso : >>>> I am making flowcharts with ConTeXt. Because the flowcharts have to be >>>> included in other documents, I would like to make graphic files (jpeg, >>>> png, ...). Also not bigger as needed to represent the flowchart. >>>> Can this be done. >>> Just convert the pdf in jpeg with (for example) ghostscript. >> >> This works, but the problem is that I get an image the size of an A4. >> This is mostly whitespace. Is it not possible to only get the used >> part? > Maybe wrap your flowcharts-code in \startTEXpage ... \stopTEXpage, ie > something like this > \starttext > \startTEXpage > Put your flowcharts-code here... > \stopTEXpage > \stoptext Works like a charm. Thanks. By the way instead of gs from ghostscript, you can also use convert from Image Magick. -- Cecil Westerhof ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________