xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clay Leeds <cle...@medata.com>
Subject Re: less than 100% opaque svg graphic
Date Wed, 01 Oct 2003 21:52:10 GMT
My reply was not meant as any sort of confirmation per se. By no means 
do I consider myself an authority on FOP. My "experience" is limited to 
reading this list, and having used FOP since shortly after fop-0.20.4 
was released (about a year & a half or so).

Although I haven't used iText myself (I haven't had the need to *yet* 
;-p),  I don't believe it parses XML. Instead, I believe it goes through 
PDF documents. I suspect you would complete your PDF transformation as 
normal using FOP, and then parse the PDF to modify your chart graphics.

BTW, (somewhat OT) having used the Excel portion of Microsoft Office v.X 
for Mac, I can attest that it does a beautiful job of creating the kind 
of charting transparency you describe. I believe they are exportable as 
JPG, TIFF or PDF documents as well. If this would help, then you might 
be able to use iText or some PDF concatenator (Combine PDF on Mac OS X) 
to insert it into your PDF file.

Hope this helps!

Web Maestro Clay

Adam Shelley wrote:
> Hello,
> Thanks for the confirmation.  I will most likely not be doing development in
> this area to solve the problem cause its going to cause too much overhead
> having to parse the source xml document(<=2MB) multiple times and doing
> multiple translations on it.  Is there a way to import an svg into fop
> produced pdf and have batik render it into a .tiff or .jpg with the opacity
> looking correctly instead of translating it to pdf 2D vectors?
> The only reason I want to modify this value is because I'm going to be
> assigning barcharts specific colours and I would like to automagically have
> the previous year's figures a slightly modified version of the colour used
> to display the current year's statistics.  I was thinking about modifying
> the opacity to a lesser value to dim the colour but I'm sure there are other
> ways to do this.  I could probably calculate the hex value appropriately and
> do this.
> Does anyone have any suggestions?
> -Adam
> -----Original Message-----
> From: Clay Leeds [mailto:cleeds@medata.com]
> Sent: Wednesday, October 01, 2003 1:50 PM
> To: fop-user@xml.apache.org
> Subject: Re: less than 100% opaque svg graphic
> Adam Shelley wrote:
>>I'm am using svg's in pdf's created by fop and I was wondering if there
> was
>>anyway to do less than 100% opaque graphics in the output pdf document.  I
>>hit the archives and couldn't find any particular issue addressing this.
> I suspect it is not possible to do it with FOP. However, it should be
> possible using a combination of iText and a little bit of advanced PDF
> spec knowledge. This page on the FOP web site has links to everything
> you probably will need:
> http://xml.apache.org/fop/resources.html
> We'd appreciate learning from your experiences, including what works and
> doesn't work! Please report back and let us know what you've found.
> Web Maestro Clay

To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org

View raw message