RE: PDF in a JSP ... searching alternative way

2002-06-20 Thread Sergei Timofejev

InputSource xslfo_doc = new InputSource(xmlfo_input);
ByteArrayOutputStream outstr = new ByteArrayOutputStream();
Driver driver = new Driver(xslfo_doc, outstr);
driver.run();
byte[] content = outstr.toByteArray();
response.setContentLength(content.length);
outstr.close();
response.getOutputStream().write(content);  
xmlfo_input.close();
response.getOutputStream().flush();

-Original Message-
From: Massimiliano Cuccia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 7:48 PM
To: [EMAIL PROTECTED]
Subject: PDF in a JSP ... searching alternative way


I want to produce a pdf in a jsp, so I have a string fo that contains the fo
instructions ...
I had found this code to output the pdf directily in the browser
  Driver driver = new Driver(new InputSource(new
StringBufferInputStream(fo)), response.getOutputStream());

and it's OK, there is another way to do that task?
I don't want to pass the "response.getOutputStream()" actual parameter ...
any ideas??

thanks in advance
bye



Massimiliano Cuccia



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


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




URL with GET param in XSLFO

2002-03-05 Thread Sergei Timofejev

How to store URL with 2 GET parameters in XML ?

The problem:

  
http://foo:7001/box/instr.jsp?param=59.05&name=JRA"/>
 

XML parser doesn't like "&" character, how can I store strings like this and would be 
able to get GET params in JSP?

Thanks

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




RE: Tool for generating bar graphs with Java

2002-02-25 Thread Sergei Timofejev

KavaChart

http://www.aoindustries.com/docs/javachart/api/chart.package.html


-Original Message-
From: Roland [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 5:33 PM
To: [EMAIL PROTECTED]
Subject: Tool for generating bar graphs with Java


Hello,
does anyone here know of a good tool to generate bar graphs, line graphs, 
pie charts, scatter graphs with Java?

Thanks, Roland


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


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




RE: Please help...

2002-01-28 Thread Sergei Timofejev







-Original Message-
From: Nick Winger [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:26 PM
To: [EMAIL PROTECTED]
Subject: AW: Please help...



how do i get an image in the footer ? how is the footer and header
adressed
?


thanks
nick

-Ursprüngliche Nachricht-
Von: ewitness - Ben Fowler [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 28. Januar 2002 14:21
An: [EMAIL PROTECTED]
Betreff: Re: Please help...


At 9:15 am + 23/1/02, Nick Winger wrote:
>hi !
>
>
>i have three questions using fop  ( with tables ):
>
>1.  i want to generate a pdf dynamically using java. now first i write
a
>dynamically fo file (formatted objects):
>
>on the pages there is always a text ( form start to the middle
>of the page) and below ( the other half os the page) an image:
>now when i write the text in java:
>how can i recognize when i reach the half of the page ?
>should i divide the half page points with the font-height and
>count the rows ?

I don't think that FOP can do this. Would you get what you wanted if
you put the image in a footer. I doubt that counting the rows is the
way to go.

>2.  is it possible to have two different font-sizes in one column of a
>table?

Yes.

>3.  can i turn the bottom cell line (border) of a cell off ?

I don't know.

Ben.

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


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


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




RE: Table layout

2002-01-10 Thread Sergei Timofejev

keep-togather="always"

-Original Message-
From: Phillips Tony [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 3:01 PM
To: '[EMAIL PROTECTED]'
Subject: Table layout


Hello,

I have created an invoice utility based on FOP to produce PDF invoices.


I've used a multi column table for the 'body' of the invoice and it's
looking quite nice so far!  However, within the narrative column items
can
be grouped under headings, for example:

Heading 1 
item
item

Heading 2
item
item

Total

This is working well however I need to do something to make sure that a
heading stays with it's entries when the item list is split over
multiple
pages - I guess it's like using "keep with next" when formatting
paragraphs
in Word!

Any guidance much appreciated!

thanks

Tony

> Tony Phillips
> Development Manager
> 
> axxia Systems Limited
> 
> TEL:  +44 (0)118 960 2649 
> FAX:  +44 (0)118 960 2600
> E-MAIL:   [EMAIL PROTECTED]
> WEB:  http://www.axxia.com
> Axxia House, 4 The Pavilions, Ruscombe Business Park, Twyford,
Berkshire,
> United Kingdom. RG10 9NN
> 
> E-MAIL DISCLAIMER
> 
> The information in this e-mail and any attachment is confidential.  It
is
> intended only for the named recipient(s). If you are not a named
recipient
> please notify the sender immediately and do not disclose the contents
to
> another person or take copies. Although Axxia Systems has taken every
> reasonable precaution to ensure that any attachment to this e-mail has
> been checked for viruses, it is strongly recommended that you carry
out
> your own virus check before opening any attachment, as we cannot
accept
> liability for any damage sustained as a result of software virus
> infection. Axxia Systems reserves the right and senders of messages
shall
> be taken to consent to the monitoring and recording of e-mails
addressed
> to axxia.com.
> 
> 
> 




E-MAIL DISCLAIMER

The information in this e-mail and any attachment is confidential. 
It is intended only for the named recipient(s). If you are not a
named recipient please notify the sender immediately and do not
disclose the contents to another person or take copies. Although
Axxia Systems has taken every reasonable precaution to ensure
that any attachment to this e-mail has been checked for viruses, 
it is strongly recommended that you carry out your own virus 
check before opening any attachment, as we cannot accept
liability for any damage sustained as a result of software virus 
infection. Axxia Systems reserves the right and senders of
messages shall be taken to consent to the monitoring and
recording of e-mails addressed to axxia.com.

***


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


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




RE: cannot not use certain character in xml to make pdf

2002-01-08 Thread Sergei Timofejev

What if it's impossible to use ISO-8859-1 but only UTF8 ? When I use in
code ä for "ä" all I get is # using standard FOP fonts or just
empty space when I import TTF font from Windows. Any solutions ?


-Original Message-
From: Beer, Christian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 12:04 PM
To: '[EMAIL PROTECTED]'
Subject: AW: cannot not use certain character in xml to make pdf


There is no problem using 'ü' or 'ß' or something. You must check the
header
of
the xml-file:



The encoding specifies what characters you may use. If you use the
header
above,
you can use 'ü', etc. without unicode or something!

For   (non-breaking space in HTML) you can use " ".

The reference to all classes can be found in the JavaDoc of FOP, that
can be

found in:
 /javadocs


Greetings

Christian Beer


DIRON Wirtschaftsinformatik GmbH & Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

-Ursprüngliche Nachricht-
Von: Nick Winger [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 8. Januar 2002 12:02
An: [EMAIL PROTECTED]
Betreff: cannot not use certain character in xml to make pdf


hi !


i cannot use character 0xfc ( an ü ) ( which i need for german language
)
and i cannot use 0xa0 ( a non braking space )

can i have fop to use all characters ( can i set the language ? )

where  can i find a reference for all classes and methods for fop ?


best regards

Nick Winger

(Software-Developer)


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

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


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




RE: FOP performance on Win98/JRE 1.3.1

2001-12-12 Thread Sergei Timofejev

>Well, okay, I do understand how I could achieve this--just spend a couple
of hundred bucks. ;-) 

PC133, 512MB = 40 USD.

S.


-Original Message-
From: Lukas Pietsch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 10:46 AM
To: [EMAIL PROTECTED]
Subject: Re: FOP performance on Win98/JRE 1.3.1


Thanks, James, for the detailed comments. Not that I understood everything
of it--I'm afraid I'm rather unexperienced with Java in general. Your
suggestions sound quite convincing, only I don't know how to actually carry
them out. Now maybe what follows is terribly boring newbie stuff. In that
case, perhaps somebody could point me to some relevant tutorial or similar
stuff on the web?

(1) making the JVM survive a single FOP run or a single document conversion.
How? The only way I know of invoking FOP is by saying "java
org.apache.fop.apps.Fop" in a .bat program.

(2) Adjusting JVM memory settings. How? Okay, I've found something about
-Xms and -Xmx commandline parameters, but how do I find out what the present
default values are?

(3) Eden heap space settings. No idea what those are, let alone how I could
change them...

(4) Increasing physical memory. Well, okay, I do understand how I could
achieve this--just spend a couple of hundred bucks. ;-) But are you really
suggesting it's hopeless to run FOP on a 128MB machine?

Lukas



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

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