Return-Path: Delivered-To: apmail-xmlgraphics-general-archive@www.apache.org Received: (qmail 99551 invoked from network); 13 Dec 2010 19:39:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 19:39:19 -0000 Received: (qmail 3824 invoked by uid 500); 13 Dec 2010 19:39:19 -0000 Mailing-List: contact general-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@xmlgraphics.apache.org Delivered-To: mailing list general@xmlgraphics.apache.org Received: (qmail 3816 invoked by uid 99); 13 Dec 2010 19:39:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 19:39:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.239.215.103] (HELO tux17.hoststar.ch) (213.239.215.103) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 19:39:11 +0000 Received: from [127.0.0.1] (194-230-63-144.static.adslpremium.ch [194.230.63.144]) (authenticated bits=0) by tux17.hoststar.ch (8.13.8/8.12.11) with ESMTP id oBDJcuVS028259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 13 Dec 2010 20:38:57 +0100 Date: Mon, 13 Dec 2010 20:38:54 +0100 From: Jeremias Maerki To: general@xmlgraphics.apache.org Subject: Re: How do I merge 2 EPS images? In-Reply-To: <30448446.post@talk.nabble.com> References: <30448446.post@talk.nabble.com> Message-Id: <20101213202727.55A0.60BA733C@jeremias-maerki.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Mailer: Becky! ver. 2.50.02 [en] X-Antivirus: avast! (VPS 101213-0, 13.12.2010), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org Hi Olivier And the result should be another EPS? Unless you know a few things about PostScript, this could be tricky. You could try to use XSL-FO to create a page which places the two EPS file at the places where you need them and generate a PostScript file from that using Apache FOP. But the result will be a plain PostScript document, not an EPS file. You don't say what kind of approach you've used so far, but starting off a new EPSDocumentGraphics2D with a combinaton of PSImageUtils.renderEPS should also be a possibility but you'll have to figure out the right coordinates yourself, and as mentioned above, that may take some knowledge about PostScript. On 13.12.2010 20:12:10 olivierk wrote: >=20 > Hi, I have so far unsuccessfully tried to merge 2 EPS images. The first E= PS > image contains a bitmap which need to be centered and put on top of the > second image (which I use as a border). The second image has no bitmap. > Anyone can point me to the right class/method to use? I tried the methods > renderEPS and renderBitmapImage from PSImageUtils but none of them works. > Also when merging the 2 images how do I specify the coordinates of the im= age > to be overlayed so that it is at the center? >=20 > Thanks, >=20 > Olivier. > --=20 > View this message in context: http://old.nabble.com/How-do-I-merge-2-EPS-= images--tp30448446p30448446.html > Sent from the Xml Graphics - General mailing list archive at Nabble.com. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: general-help@xmlgraphics.apache.org