Return-Path: Delivered-To: apmail-xml-batik-dev-archive@www.apache.org Received: (qmail 65022 invoked from network); 26 Aug 2004 05:11:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Aug 2004 05:11:24 -0000 Received: (qmail 80768 invoked by uid 500); 26 Aug 2004 05:11:22 -0000 Delivered-To: apmail-xml-batik-dev-archive@xml.apache.org Received: (qmail 80747 invoked by uid 500); 26 Aug 2004 05:11:21 -0000 Mailing-List: contact batik-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: batik-dev@xml.apache.org Delivered-To: mailing list batik-dev@xml.apache.org Received: (qmail 80734 invoked by uid 99); 26 Aug 2004 05:11:21 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_60_70,HTML_MESSAGE X-Spam-Check-By: apache.org Message-ID: <002e01c48b2b$133a02c0$d000a8c0@vpl.local> From: "john farrow" To: Subject: extending AbstractGraphics2D Date: Thu, 26 Aug 2004 17:10:58 +1200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002B_01C48B8F.A7ADDCB0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_002B_01C48B8F.A7ADDCB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I am writing a PDF transcoder, including extending = org.apache.batik.ext.awt.g2d.AbstractGraphics2D. Using some SVG like this: =20 When a shape is rendered, if it has no opacity attribute then = AbstractGraphics2D.drawShape is and I can render the shape to PDF ok. = But if the shape has an opacity attribute then = AbstractGraphics2D.drawImage is called instead, whereas I would like to = have drawShape() also called and I handle the opacity within the PDF. I have a feeling this is a configuration setting or similar, and was = wondering if anyone can tell me why this happens, before I spend a day = installing the source and wading through it myself. Thanks for your help John Farrow Visual Programming Ltd=20 mail PO Box 22-222, Khandallah, Wellington, New Zealand=20 site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand=20 phone +64 4 479 1738=20 fax +64 4 479 1294=20 web http://www.xmlpdf.com=20 ------=_NextPart_000_002B_01C48B8F.A7ADDCB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 

Hi

I am writing a PDF transcoder, including = extending=20 org.apache.batik.ext.awt.g2d.AbstractGraphics2D.

Using some SVG like this:

<?xml version=3D"1.0"=20 encoding=3D"utf-8"?>
<svg height=3D"200" width=3D"500"=20 preserveAspectRatio=3D"xMidYMid meet" zoomAndPan=3D"magnify" xmlns=3D"http://www.w3.org/2000/svg"
 xmlns:xlink=3D"http://www.w3.org/1999/xlink">

 <circle cx=3D'200' cy=3D'200' = r=3D'100'=20 stroke=3D'red' stroke-width=3D'3' fill=3D"green"=20 opacity=3D".1"/> 
</svg>

When a shape is rendered, = if it has no=20 opacity attribute then AbstractGraphics2D.drawShape is and I can render = the=20 shape to PDF ok.  But if the shape has an opacity attribute then=20 AbstractGraphics2D.drawImage is called instead, whereas I would like to = have=20 drawShape() also called and I handle the opacity within the=20 PDF.

I have a feeling this is a = configuration=20 setting or similar, and was wondering if anyone can tell me why this = happens,=20 before I spend a day installing the source and wading through it=20 myself.

Thanks for your = help

John = Farrow

Visual=20 Programming Ltd
mail =20 PO Box = 22-222,=20 Khandallah, Wellington, New Zealand
site =20 Level 2, = 2 Ganges=20 Road, Khandallah, Wellington, New Zealand
phone =20 +64 4 = 479 1738=20
fax =20 +64 4 = 479 1294=20
web =20 http://www.xmlpdf.com =

------=_NextPart_000_002B_01C48B8F.A7ADDCB0--