deprecated methods in servlet example

2004-09-18 Thread Sandy Soesilo
Hi people,

i'm trying to run the example that I found in FOP release 0.20.5
(stable release,not from cvs)
it works fine under the dos console, but under servlet I found some
methods that are deprecated...

driver.render(input.getParser(), input.getInputSource());
..
with these error code :
- The method getParser() from type
org.apache.fop.apps.XSLTInputHandler is deprecated
- The method getInputParser() from type
org.apache.fop.apps.XSLTInputHandler is deprecated
...
I' running j2sdk1.4.2_05 with eclipse 3.0  and yes, I already include
all the libs .( xalan,avalon,xerces,xml-api ..)

any idea ??? I''ve spent hours reading the docs and the mailing list,
but I found nothing really helpful,... thanks a lot guys

sandy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to generating charts in PDF ?

2004-07-12 Thread Sandy . Soesilo


hi,

i'm using FOP for our reporting tools, thanks to FOP we can make a nice
looking PDF-File.
great job people !

recently we need to generate not only tables or text, but also some
charts/diagramms ( like pie chart, gantt , etc)
and this charts should be embeded in the pdf, as a graphic format ( like SVG
or JPEG )

Does anyone have any idea how to do these things ? somekind of library maybe
?

thanks in advance

sandy



Die vorstehend geäußerte Meinung gibt nur die Auffassung des Autors wieder
und darf nicht als Hinweis auf die Meinung der Commerzbank AG oder einer
ihrer Tochtergesellschaften verstanden oder ausgelegt werden. 

those managing expressed opinion shows only the view of the author
and may not not as reference to the opinion of the Commerzbank AG or
one of their subsidiaries be understood or laid out.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to generate charts in PDF?

2004-07-12 Thread Sandy . Soesilo

hi derrick, 
thanks alot for your answer...

I just tried your code,
and I got this exception :
 
javax.xml.transform.TransformerException: Prefix must resolve to a
namespace: math

hope you can help me more


sandy


We use SVG to generate our Pie Charts and our bar charts. It's not too hard
to create. I looked at the code from this site and started creating my own
variations for testing.
http://www.svgopen.org/2003/papers/CreatingSVGPieChartsThroughWebService
Here is a Pie Chart that I tested with: fo:table-cell
xsl:use-attribute-sets=table-piechart-style xsl:variable name=number
select=operatingaverages/monthly/efficiency / xsl:variable
name=difference select=100 - $number / xsl:variable
name=currentAngle select=math:toRadians(($number div 100) * 360.0) /
xsl:variable name=halfAngle select=math:toRadians((($number div 2) div
$total) * 360.0) / xsl:variable name=rotation select=270 + (360.0 *
($number div 100)) / xsl:variable name=x1 select=math:cos($halfAngle)
* 70 / xsl:variable name=y1 select=math:sin($halfAngle) * 70 /
xsl:variable name=cosTheta select=math:cos(math:toRadians($rotation))
/ xsl:variable name=sinTheta
select=math:sin(math:toRadians($rotation)) / fo:instream-foreign-object
svg height=100 viewBox=0 0 200 100 width=200
xmlns=http://www.w3.org/2000/svg;
xmlns:xlink=http://www.w3.org/1999/xlink; g path
style=fill:{$color1};stroke:black;stroke-width:1;fillrule:evenodd;
stroke-linejoin:bevel; xsl:attribute name=transform
xsl:texttranslate(100,50)/xsl:text xsl:textrotate(/xsl:text
xsl:value-of select=$rotation / xsl:text)/xsl:text /xsl:attribute
xsl:attribute name=d xsl:textM 50 0 A 50 50 0 /xsl:text xsl:choose
xsl:when test=$currentAngle  3.14 xsl:text1 /xsl:text /xsl:when
xsl:otherwise xsl:text0 /xsl:text /xsl:otherwise /xsl:choose
xsl:text1 /xsl:text xsl:value-of select=math:cos($currentAngle) * 50
/ xsl:text /xsl:text xsl:value-of select=math:sin($currentAngle) *
50 / xsl:text L 0 0 Z/xsl:text /xsl:attribute /path /g /svg
/fo:instream-foreign-object /fo:table-cell Derrick Shoemake 


Die vorstehend geäußerte Meinung gibt nur die Auffassung des Autors wieder
und darf nicht als Hinweis auf die Meinung der Commerzbank AG oder einer
ihrer Tochtergesellschaften verstanden oder ausgelegt werden. 

those managing expressed opinion shows only the view of the author
and may not not as reference to the opinion of the Commerzbank AG or
one of their subsidiaries be understood or laid out.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



main layout background color

2004-06-15 Thread Sandy . Soesilo


Hallo J.

when i add the attribute background-color for regions,
it works fine, . but..
the area inside the margin-top,bottom,left and right are still get the white
color
n i got a 1cm white stripes on every these are..

what i want, is to change the background color for all the area,thats
including area inside the margins

thanks

Sandy


J.Pietschmann wrote :
Setting a background color on the regions in the page master should work. Is
there a reason why you can't use this? J.Pietschmann 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: question about performance

2004-05-26 Thread Sandy . Soesilo

hi..
thanks guys for some answers...

i think i'll doing some experiments with the performance using the xalan...
i suspect that it was the FO-Processor that took the most resources,
because i have some graphics in the header, and page-citation in the footer

..
a little bit out of topic..
my supervisor told me this morning, that i should take TeX/LaTeX
to produce the pdf...he said, it should be faster with TeX ..
what i mean here is not the FO-Processor from Passive-TeX,
but pure TeX,... using Java to get the input from the database
and then generate the pdf using pdfTeX library, or something like that
does anyone here have any experience with TeX and can told me about the
performance


greets

sandy

-Ursprüngliche Nachricht-
Von: Clay Leeds [mailto:[EMAIL PROTECTED]
Gesendet am: Dienstag, 25. Mai 2004 20:22
An: [EMAIL PROTECTED]
Betreff: Re: question about performance

Sandy,

On May 25, 2004, at 11:04 AM, Andreas L. Delmelle wrote:
 Hmm... XSL-FO is designed exactly to serve purposes like this.

 That being said: is it actually FOP's processing that takes a long 
 time, or
 is it the XSL transform? Can you test this a bit maybe? Run the XSL
 transform separately (preferrably also through another processor than 
 Xalan
 to compare results). Just adding this, because I know out of 
 experience that
 'newbie' code can easily drain an XSLT processor's resources. Things 
 like
 double forward slashes ( '//*' ) might seem 'handy' in being able to
 retrieve a node from any context in the stylesheet, but an explicit 
 XPath
 expression pointing at exactly the right node saves the processor a few
 (--possibly quite a few) unnecessary tree traversals.

 Also, could you do a bit more research on whether it is the context of 
 the
 servlet that creates the delay? Try rendering the same XML+XSLT via the
 command-line, and see if there's any noticeable difference...

 Hope this helps!

 Greetz,

 Andreas


To continue a bit on where I think Andreas was headed, there's a script 
distributed with FOP, you can use to test the XSL portion: Xalan. The 
scripts are called 'xalan.bat' (Windows/DOS) and 'xalan.sh' (the rest 
of us)

The cmd line is simple:

xalan.sh version:
xalan.sh -IN input.xml -XSL input.xsl -OUT output.fo

xalan.bat version
xalan.bat -IN input.xml -XSL input.xsl -OUT output.fo

There are other commands which you can see by running 
xalan.bat/xalan.sh with no arguments.

Hope this helps!

Web Maestro Clay


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IPD error although width=100%

2004-05-26 Thread Sandy . Soesilo

...
hi..

i got this error message everytime i run my fop
:
[WARNING] Sum of fixed column widths 793693 greater than maximum specified
IPD 0
[ERROR] At least one of minimum, optimum, or maximum IPD must be specified
on table.
[ERROR] At least one of minimum, optimum, or maximum IPD must be specified
on table.
[WARNING] Sum of fixed column widths 793700 greater than maximum specified
IPD 785197

i already tried to set all the column width to 100% , but it didn't make any
difference
..as i found it from the archive .. J.Pietschmann wrote this


Your options: specify all column widths in absolute units, or specify the
table width. 
The table width can be given as percentage (contrary to column widths), 
so you can have a table spanning the whold page width by specifying
width=100%. 


can I please attach my .fo file to the list so somebody can take a look of
my file and check it,..

thanks a lot in advance


sandy



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



question about performance

2004-05-25 Thread Sandy . Soesilo


hi ...
you can say that i'm a newbie in this FOP technology...infact, xml is a new
area for me..
i want to use FOP to generate reports from our database...

i tried some examples from the fop distribution..and then i made some
experience,
to generate a table with 12 columns and about 1000 rows from datas from xml
...it looks like this
daten
WDB123/WDB
WDB2004321/WDB2004
WDB2003587/WDB2003
WDB2002456/WDB2002
WDB2001159/WDB2001
WDBA123/WDBA
WDB2004B321/WDB2004B
WDB2003C587/WDB2003C
WDB2002D456/WDB2002D
WDB2001E159/WDB2001E
WDBF123/WDBF
WDB2004G321/WDB2004G
/daten


later i found the problem,. that it tooked about 4-5 minutes to complete the
request under servlet..
the table that I made from the stylesheet was very2 simple, without any
graphic or something like that

my questions :
1. would it be better if I use iText for large documents,... pick up the
data directly from database
2 my friend told me, that I should use rather DOM file than XML file,it will
be faster...is it true ?
3. have u guys any idea, what is the best solutions , to generate PDF from a
large database ,
and that's on the fly..

thanks 


sandy soesilo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]