Refactoring / Rewriting of FOP? Obsolete?

2002-04-19 Thread L Rutker
Hi,
My manager just nixed the use of FOP in our project for the following 
reason.
a) Its only up to 0.20.3 meaning an early beta.
b) He is under the understanding partly based on what he saw on the FOP site 
that the code is being rewritten from scratch and he therefore does not want 
to have us tied to an obsolete product.

My question is
a) How true is this?
b) How can I convince him that it is worthwhile to use it.
The product did work nicely in our testing by the way.
Lou
_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


2 coliumns * 4 columns table

2002-04-19 Thread Patrick Andries
I need to implement tables that seem to me to be difficult (or 
impossible) to render with XSL FO.

The difficulty involves a table made of two columns (left/right)  
themselves divided into 4 further columns (a,b,c,d). The content should 
flows from the left four columns (a,b,c,d) on a page to the right four 
columns (a,b,c,d) of the same page before going on to the next pages, 
themselves divided in the same way. The page header on the next pages is 
slightly different from the one found on the first page containing the 
table.

Is this possible with your XEP ? Could you give me an rough idea how to 
implement it and test it ?

P. Andries




Re: Refactoring / Rewriting of FOP? Obsolete?

2002-04-19 Thread Patrick Lanphier


Re: 2 coliumns * 4 columns table

2002-04-19 Thread J.Pietschmann
Patrick Andries wrote:
The difficulty involves a table made of two columns (left/right)  
themselves divided into 4 further columns (a,b,c,d). The content should 
flows from the left four columns (a,b,c,d) on a page to the right four 
columns (a,b,c,d) of the same page before going on to the next pages, 
themselves divided in the same way. The page header on the next pages is 
slightly different from the one found on the first page containing the 
table.

Is this possible with your XEP ?
This is the FOP list.
Could you give me an rough idea how to 
implement it and test it ?
You have to explicit assign the text to the columns in tables.
You can try to use columns in the region-body
 fo:region-body column-count=2/
If you can use this, you can probably also use static content
in the region-before for your slightly different headers.
J.Pietschmann


Re: Refactoring / Rewriting of FOP? Obsolete?

2002-04-19 Thread L Rutker
for starts try:
http://www.antenna.co.jp/XML/downfree/Xhtml2fo.xsl
and
http://www.antenna.co.jp/XML/downfree/howto1023/Sample2foen.xsl
I found one more on the w3 website but I can't locate it now
I cant send the one we are using as of now but it is basically a modified 
subset of the antenna house one.

Lou
From: Patrick Lanphier [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Refactoring / Rewriting of FOP? Obsolete?
Date: Thu, 18 Apr 2002 20:30:25 -0400 (EDT)
Could you share your XSL file for XHTML-PDF you have developed for FOP?
This would be a great help.  Do you have any other formats for XHTML?
(TXT, PS etc.) Thanks much in advanced.
Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com
phone: 814-235-0444
  fax: 800-582-9710
On Thu, 18 Apr 2002, L Rutker wrote:
 We actually have stuff live and running using FOP.
 We have the printable version of our site actually transforming our 
xhtml
 using a modifies xsl based on the antennahouse xhtml2fo and serving them 
up
 as pdf files so there is no use in showing him anymore. I need to 
convince
 him that it will be viable for the long run and will not constantly 
change
 etc.

 Lou



 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Refactoring / Rewriting of FOP? Obsolete?
 Date: Thu, 18 Apr 2002 17:19:17 -0700
 
 
 Take an example from the /docs/examples and show him how easy it is to
 output into pdf files.
 
 naveen
 
 
 
 
L Rutker
[EMAIL PROTECTED]To:
 [EMAIL PROTECTED]
com cc:
 Subject:  Refactoring /
 Rewriting of FOP? Obsolete?
04/18/02 05:15 PM
Please respond to
fop-user
 
 
 
 
 
 
 
 b) How can I convince him that it is worthwhile to use it.
 
 
 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com


 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


Re: Refactoring / Rewriting of FOP? Obsolete?

2002-04-19 Thread Patrick Lanphier
This would be fine but there are many things that are not yet implemented
in FOP compared to Antenna House, correct?  This makes the modifications
great, right?

Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com
phone: 814-235-0444
  fax: 800-582-9710

On Thu, 18 Apr 2002, L Rutker wrote:

 for starts try:
 http://www.antenna.co.jp/XML/downfree/Xhtml2fo.xsl
 and
 http://www.antenna.co.jp/XML/downfree/howto1023/Sample2foen.xsl

 I found one more on the w3 website but I can't locate it now

 I cant send the one we are using as of now but it is basically a modified
 subset of the antenna house one.

 Lou

 From: Patrick Lanphier [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Refactoring / Rewriting of FOP? Obsolete?
 Date: Thu, 18 Apr 2002 20:30:25 -0400 (EDT)
 
 Could you share your XSL file for XHTML-PDF you have developed for FOP?
 This would be a great help.  Do you have any other formats for XHTML?
 (TXT, PS etc.) Thanks much in advanced.
 
 Patrick Lanphier
 The Artemis Group
 http://www.artemisgroup.com
 phone: 814-235-0444
fax: 800-582-9710
 
 On Thu, 18 Apr 2002, L Rutker wrote:
 
   We actually have stuff live and running using FOP.
   We have the printable version of our site actually transforming our
 xhtml
   using a modifies xsl based on the antennahouse xhtml2fo and serving them
 up
   as pdf files so there is no use in showing him anymore. I need to
 convince
   him that it will be viable for the long run and will not constantly
 change
   etc.
  
   Lou
  
  
  
   From: [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Re: Refactoring / Rewriting of FOP? Obsolete?
   Date: Thu, 18 Apr 2002 17:19:17 -0700
   
   
   Take an example from the /docs/examples and show him how easy it is to
   output into pdf files.
   
   naveen
   
   
   
   
  L Rutker
  [EMAIL PROTECTED]To:
   [EMAIL PROTECTED]
  com cc:
   Subject:  Refactoring /
   Rewriting of FOP? Obsolete?
  04/18/02 05:15 PM
  Please respond to
  fop-user
   
   
   
   
   
   
   
   b) How can I convince him that it is worthwhile to use it.
   
   
   _
   Send and receive Hotmail on your mobile device: http://mobile.msn.com
  
  
   _
   Send and receive Hotmail on your mobile device: http://mobile.msn.com
  
 


 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com




Re: Refactoring / Rewriting of FOP? Obsolete?

2002-04-19 Thread L Rutker
also try:
http://www.w3.org/2001/08/01-XHTML-XSL/html.xsl

From: Patrick Lanphier [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Refactoring / Rewriting of FOP? Obsolete?
Date: Thu, 18 Apr 2002 20:30:25 -0400 (EDT)
Could you share your XSL file for XHTML-PDF you have developed for FOP?
This would be a great help.  Do you have any other formats for XHTML?
(TXT, PS etc.) Thanks much in advanced.
Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com
phone: 814-235-0444
  fax: 800-582-9710
On Thu, 18 Apr 2002, L Rutker wrote:
 We actually have stuff live and running using FOP.
 We have the printable version of our site actually transforming our 
xhtml
 using a modifies xsl based on the antennahouse xhtml2fo and serving them 
up
 as pdf files so there is no use in showing him anymore. I need to 
convince
 him that it will be viable for the long run and will not constantly 
change
 etc.

 Lou



 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Refactoring / Rewriting of FOP? Obsolete?
 Date: Thu, 18 Apr 2002 17:19:17 -0700
 
 
 Take an example from the /docs/examples and show him how easy it is to
 output into pdf files.
 
 naveen
 
 
 
 
L Rutker
[EMAIL PROTECTED]To:
 [EMAIL PROTECTED]
com cc:
 Subject:  Refactoring /
 Rewriting of FOP? Obsolete?
04/18/02 05:15 PM
Please respond to
fop-user
 
 
 
 
 
 
 
 b) How can I convince him that it is worthwhile to use it.
 
 
 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com


 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


Re: 2 coliumns * 4 columns table

2002-04-19 Thread J.Pietschmann
Patrick Andries wrote:
I'm not sure that declaring 2 columns in the region-body can help me on 
the first page, since it is preceded by single-column text (of arbitrary 
length) before the table split into 2 * 4 columns appears.
You can put the text in a block and use span=all
 http://www.w3.org/TR/xsl/slice7.html#span
J.Pietschmann



Re: 2 coliumns * 4 columns table

2002-04-19 Thread Patrick Andries
Yes good idea.
J.Pietschmann wrote:
Patrick Andries wrote:
I'm not sure that declaring 2 columns in the region-body can help me 
on the first page, since it is preceded by single-column text (of 
arbitrary length) before the table split into 2 * 4 columns appears.

You can put the text in a block and use span=all
 http://www.w3.org/TR/xsl/slice7.html#span
J.Pietschmann




Betreff: Re: Refactoring / Rewriting of FOP? Obsolete?

2002-04-19 Thread Stephan Wiesner
We are using FOP for a self developed content management system, running on
a native XML DB, at my university and our Style, though far from complete,
is covering most features FOP currently implements.

The current version can be found at
http://live.fhnon.de/~swiesner/awr/

Stephan


---Original-Nachricht---

Von: [EMAIL PROTECTED]
Datum: Freitag, 19. April 2002 04:51:25
An: [EMAIL PROTECTED]
Betreff: Re: Refactoring / Rewriting of FOP? Obsolete?

I'm currently using a XSL sheet based on this one, however, it is not very
robust. A more complete XSL sheet would be great.

Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com
phone: 814-235-0444
fax: 800-582-9710

On Thu, 18 Apr 2002, L Rutker wrote:

 also try:

 http://www.w3.org/2001/08/01-XHTML-XSL/html.xsl


 From: Patrick Lanphier [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Refactoring / Rewriting of FOP? Obsolete?
 Date: Thu, 18 Apr 2002 20:30:25 -0400 (EDT)
 
 Could you share your XSL file for XHTML-PDF you have developed for FOP?
 This would be a great help. Do you have any other formats for XHTML?
 (TXT, PS etc.) Thanks much in advanced.
 
 Patrick Lanphier
 The Artemis Group
 http://www.artemisgroup.com
 phone: 814-235-0444
  fax: 800-582-9710
 
 On Thu, 18 Apr 2002, L Rutker wrote:
 
   We actually have stuff live and running using FOP.
   We have the printable version of our site actually transforming our
 xhtml
   using a modifies xsl based on the antennahouse xhtml2fo and serving
them
 up
   as pdf files so there is no use in showing him anymore. I need to
 convince
   him that it will be viable for the long run and will not constantly
 change
   etc.
  
   Lou
  
  
  
   From: [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Re: Refactoring / Rewriting of FOP? Obsolete?
   Date: Thu, 18 Apr 2002 17:19:17 -0700
   
   
   Take an example from the /docs/examples and show him how easy it is
to
   output into pdf files.
   
   naveen
   
   
   
   
L Rutker
[EMAIL PROTECTED] To:
   gt;[EMAIL PROTECTED]
com cc:
Subject: Refactoring /
   Rewriting of FOP? Obsolete?
04/18/02 05:15 PM
Please respond to
fop-user
   
   
   
   
   
   
   
   b) How can I convince him that it is worthwhile to use it.
   
   
   _
   Send and receive Hotmail on your mobile device: http://mobile.msn.com
  
  
   _
   Send and receive Hotmail on your mobile device: http://mobile.msn.com
  
 


 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp






Re: SVG/Graphing-PDF

2002-04-19 Thread Nicola Ken Barozzi
From: J.Pietschmann [EMAIL PROTECTED]

 Patrick Lanphier wrote:
  What are individuals using to create SVG files for use in their PDFs?
 
 A text editor for small stuff. XSLT for some simple diagrams.

Under the Batik contrib there are stylesheets in XSL to do charts.

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-



Re: pdf viewer

2002-04-19 Thread Nicola Ken Barozzi
From: Michael König [EMAIL PROTECTED]


 Hello,
 I know, this is not the best group to ask this question, but since most of
 you produce pdf ...

 I wrote a nice program to create nice pdf-documents. By now I have to send
 the pdf outputstream to a ordinary file on a hard disk.

 This file can be opened by the most famous PDF-Reader. Now I would like to
 send the outputstream directly to a viewer (not a file)
 but I can not find a PDF Viewer written in JAVA or which will accept a
 output stream sent by JAVA. Do you know one??

Look in the Adobe site, there is a Java PDF viewer bean.

It works ok, and also prints.

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-



AW: Again: keep-together

2002-04-19 Thread Nestel, Frank ISC 6

Hello Chuck,

thank you for replying. Unfortunately I failed to express myself clearly.
Maybe since there are different problems playing together in that case.

My point is that we do not see how to proceed by using tables for getting
the two column formatting that our customer would have liked:

We have those two column stuff alternating with one column parts. The two
column parts consist of fairly complex (ie. nested) tables of vary varying
length. The tables have to be splitted so that the left and right column
are as balanced as possible, i.e. their length are as matching as possible.
Counting lines and splitting after a half does not help. Beside being rather
involved, since the lines are tables and pictures themselves and do not 
have constant height. 

The only way we have found to do at least a rough approximation of equally
long columns with fop was to use the two columned layout and NOT a two
columned table. Are wrong?

Thanks again,
Frank

-Ursprüngliche Nachricht-
Von: Chuck Paussa [mailto:[EMAIL PROTECTED]
Gesendet am: Donnerstag, 18. April 2002 19:12
An: [EMAIL PROTECTED]
Betreff: Re: Again: keep-together

Frank,

H I'm not exactly sure what you're trying for but, here's some 
suggestions:

Use fo:table-cell number-columns-spanned=2 for the cell that has the 
1 column header

Use the fo:region-before fo:static-content area to hold what would 
look like the regular table header that is printed on each page and then 
break up each of the tables with those 1 column headers into separate 
tables with the one column header on the fo:table-header area (That 
way, if the table happens to break across a page boundary, the table 
header is repeated on the next page.)

Chuck Paussa

  Nestel, Frank ISC 6 wrote:
 
  I know you all work hard. But just to express priority.
  We are currently stuck with a problem we cannot see how
  to cope without working keep properties.
 
  Or can anybody give me some help on how to achive below
  layout with fop.
 
  1.one-column header
 
  2.two-column table   two-column table
  column1  column2
 
  1.one-column header
 
  2.two-column table   two-column table
  column1  column2
 
  1.one-column header
 
  2.two-column table   two-column table
  column1  column2
 
  ... above pattern repeats very often...
  ... tables of varying length with very
  variable height of single rows ...
 
  We are using the two columns to get the variable
  length table no. 2 balanced between left and
  right side (which BTW does not work to well,
  the left hand side gets way to long). I do not
  see how to achieve this effect with a table,
  since I have absolute no means to measure the
  where to break the table into into two parts.
  We have long headers over the tables and those
  header have to kept close to their table.
 
  I know how to do it with TeX, but this ain't help :-)
  But its funny to run in this kind of problem over
  20 years after TeX was programmed.
 
  Best regards,
  Frank Nestel
 
  -Ursprüngliche Nachricht-
  Von: J.Pietschmann [mailto:[EMAIL PROTECTED]
 
  MARTIN Franck wrote:
 
  Does anyone know of a way to prevent blocks or tables from being divided
  when a page break occurs?
  Is the property keep-together implemented in fop?
 
 
  The keep-together property is not yet implemented, and
  it will take a while until it is.
  The keep-with-next and keep-with-previous properties work
  on table rows only.
  If block elements should be kept together, you can put
  them into a one-column blind table.
 
  HTH
  J.Pietschmann



In what file is the number of FOP's version ?

2002-04-19 Thread Philippe Pithon
In what file is the number of FOP's version?
Because by copying FOP to another server and performer (version 0.20.3), FOP
shows me 0.20.1



JSP returning PDF

2002-04-19 Thread Chris Faulkner
Hi 

I'm using FOP in a JSP to return dynamically created PDF documents to browsers. 
I'm using the usual method of embedding FOP as described on the web site. It 
works great. The main problem is that the 
PDFs take about 20 seconds to generate and then, since they are 500K or so, a 
while to download depending on connection speed. 

I'd like to be able to put a message on an intermediate page which could 
refresh and only return the PDF when it is ready. At the moment, they are just 
seeing a blank page until the PDF is complete. Does 
anyone have any ideas for this ? Can I flush some output to the page to advise 
them to be patient, then reset the response and send the PDF when it is ready?

Alternatively. I was thinking of doing something a bit more ambitious which 
would be to output the PDF to a database blob, then send back a page which 
refreshes to a JSP which keeps checking whether 
the PDF has been finished. When it is, I could fetch the data outofthe BLOB and 
send it back.

I have seen other sites where the PDF was output to a static file on the 
website. Then the JSP would refresh and keep checking until the file was 
present. When the file was created, the page would 
appear with a link to the file. The main problem with this is security. There 
is the potential that everyone would have access to all PDFs on the web site, 
although on a site without listings, they'd need to be 
making pretty inspired guesses to find and download it.

How do others get around this ? I imagine its quite a common problem.

Thanks


Chris




Re: In what file is the number of FOP's version ?

2002-04-19 Thread Jeremias Maerki
It's in conf/config.xml. The version number is inserted during the build
process and originally comes from build.xml.

 In what file is the number of FOP's version?
 Because by copying FOP to another server and performer (version 0.20.3), FOP
 shows me 0.20.1

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch



Re: Refactoring / Rewriting of FOP? Obsolete?

2002-04-19 Thread Jeremias Maerki
 My manager just nixed the use of FOP in our project for the following 
 reason.
 a) Its only up to 0.20.3 meaning an early beta.

That doesn't mean too much. A lot of poeple are using FOP in a
production environment. True, you may have to work around one or another
problem, but FOP is useful enough.

 b) He is under the understanding partly based on what he saw on the FOP site 
 that the code is being rewritten from scratch and he therefore does not want 
 to have us tied to an obsolete product.

It's correct that FOP is in redesign. But that doesn't mean it's
completely rewritten from scratch. I believe that the API will likely
stay pretty much the same, and the API really is what should concern you,
because that's what you'll work with. FOP should work as a black box for
you, so if something changes under the hood, all you have to do is test
your stylesheets when you do an update.

 My question is
 a) How true is this?
 b) How can I convince him that it is worthwhile to use it.
 
 The product did work nicely in our testing by the way.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch



problem with path relative - HELP ME

2002-04-19 Thread Carlos Daniel Schafer
Hi

I look distinct examples on Fop configuration.
I have a problem with path relative by image.

My code in servlet embeded is 

String baseDirPath =
http://localhost:8080/portalrentas/;;

 
org.apache.fop.configuration.Configuration.put(baseDir, baseDirPath);

but, I have a problem 
This, show me the next error:

[ERROR]: Error while creating area : Error while recovering Image
Informations 
(http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg) :
http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg

I don't understand.

What's the error?
Why's ocurrs this errors?

My code into xslfo is

  fo:external-graphic src=fop/xslfo/escudo-200.jpg/


Debugging FOP

2002-04-19 Thread Patrick Lanphier
How do you debug an file being input in fo format to fop when all one gets
is the following.  It does not provide you with a line number.

[EMAIL PROTECTED] fop-0.20.3]# ./fop.sh -d -fo test.fo -pdf
test.pdf
[DEBUG]: Input mode:
[DEBUG]: FO
[DEBUG]: fo input file: test.fo
[DEBUG]: Output mode:
[DEBUG]: pdf
[DEBUG]: output file: test.pdf
[DEBUG]: OPTIONS
[DEBUG]: no user configuration file is used [default]
[DEBUG]: debug mode on
[DEBUG]: dump configuration
[DEBUG]: quiet mode on
[DEBUG]: base directory: file:/tmp/fop-0.20.3/
[INFO]: FOP 0.20.3
[DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
[INFO]: building formatting object tree
[DEBUG]: setting up fonts
[ERROR]: null
org.apache.fop.apps.FOPException
at org.apache.fop.apps.Driver.render(Driver.java:486)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com
phone: 814-235-0444
  fax: 800-582-9710



Re: problem with path relative - HELP ME

2002-04-19 Thread Jeremias Maerki
So, it looks like baseDir is set correctly. The error happens because
FOP can't load the image from where specified. Try the URL
http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg
in your browser to see if the image is really there. If not, find out
what you have to specify so the images can be found.

 I look distinct examples on Fop configuration.
 I have a problem with path relative by image.
 
 My code in servlet embeded is 
 
 String baseDirPath =
 http://localhost:8080/portalrentas/;;
 
  
 org.apache.fop.configuration.Configuration.put(baseDir, baseDirPath);
 
 but, I have a problem 
 This, show me the next error:
 
 [ERROR]: Error while creating area : Error while recovering Image
 Informations 
 (http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg) :
 http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg
 
 I don't understand.
 
 What's the error?
 Why's ocurrs this errors?
 
 My code into xslfo is
 
 fo:external-graphic src=fop/xslfo/escudo-200.jpg/

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch



RV: problem with path relative - HELP ME

2002-04-19 Thread Carlos Daniel Schafer


 -Mensaje original-
 De:   Carlos Daniel Schafer 
 Enviado el:   viernes, 19 de abril de 2002 11:14
 Para: Fop-Dev (Correo electrónico); Fop-User (Correo electrónico)
 Asunto:   problem with path relative - HELP ME
 Importancia:  Alta
 
 Hi
 
 I look distinct examples on Fop configuration.
 I have a problem with path relative by image.
 
 My code in servlet embeded is 
 
 String baseDirPath =
 http://localhost:8080/portalrentas/;;
 
  
 org.apache.fop.configuration.Configuration.put(baseDir, baseDirPath);
 
 but, I have a problem 
 This, show me the next error:
 
 [ERROR]: Error while creating area : Error while recovering Image
 Informations 
 (http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg) :
 http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg
 
 I don't understand.
 
 What's the error?
 Why's ocurrs this errors?
 
 My code into xslfo is
 
 fo:external-graphic src=fop/xslfo/escudo-200.jpg/
 


Re: AW: Again: keep-together

2002-04-19 Thread Chuck Paussa
Frank,
OK, that makes sense. You want to have a headline and then sanking 
columns underneath, like in a newspaper.

Headline Goes here
This is the   after the
information   headline
that goes balanced.
New headline here
This is the   after the
information   headline
that goes balanced.
I tried a whole bunch of stuff using the column-count attribute of 
region-body (which is the only way I know to create snaking columns.) 
Region-body is the only element with a column-count attribute (right?) 
And I couldn't get it to work. The basic idea would be to wrap two 
blocks in a block or block-container with a span=all

   fo:block-container height=15mm width=190mm top=0mm 
left=0mm position=absolute border=solid 1px pink span=all
fo:block span=all
Here's a headline #1 that should cross all the way 
across the page
/fo:block
fo:block span=none
Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country.
/fo:block
/fo:block-container

But, that doesn't work. The inner blocks are not aware of the columns in 
the region containing them.

There have been a number of problems like this that I have not found an 
automated way to address and so have been forced to pre-calculate the 
page layout of each page and then absolutely position the contents on 
the page. For fo: processed documents, that looks like the only way to 
go for now unless someone else can chime in with a solution I haven't 
seen yet.

Chuck
Nestel, Frank ISC 6 wrote:
Hello Chuck,
thank you for replying. Unfortunately I failed to express myself clearly.
Maybe since there are different problems playing together in that case.
My point is that we do not see how to proceed by using tables for getting
the two column formatting that our customer would have liked:
We have those two column stuff alternating with one column parts. The two
column parts consist of fairly complex (ie. nested) tables of vary varying
length. The tables have to be splitted so that the left and right column
are as balanced as possible, i.e. their length are as matching as possible.
Counting lines and splitting after a half does not help. Beside being rather
involved, since the lines are tables and pictures themselves and do not 
have constant height. 

The only way we have found to do at least a rough approximation of equally
long columns with fop was to use the two columned layout and NOT a two
columned table. Are wrong?
Thanks again,
Frank
-Ursprüngliche Nachricht-
Von: Chuck Paussa [mailto:[EMAIL PROTECTED]
Gesendet am: Donnerstag, 18. April 2002 19:12
An: [EMAIL PROTECTED]
Betreff: Re: Again: keep-together
Frank,
H I'm not exactly sure what you're trying for but, here's some 
suggestions:

Use fo:table-cell number-columns-spanned=2 for the cell that has the 
1 column header

Use the fo:region-before fo:static-content area to hold what would 
look like the regular table header that is printed on each page and then 
break up each of the tables with those 1 column headers into separate 
tables with the one column header on the fo:table-header area (That 
way, if the table happens to break across a page boundary, the table 
header is repeated on the next page.)

Chuck Paussa
 Nestel, Frank ISC 6 wrote:

 I know you all work hard. But just to express priority.
 We are currently stuck with a problem we cannot see how
 to cope without working keep properties.

 Or can anybody give me some help on how to achive below
 layout with fop.

 1.one-column header

 2.two-column table   two-column table
 column1  column2

 1.one-column header

 2.two-column table   two-column table
 column1  column2

 1.one-column header

 2.two-column table   two-column table
 column1  column2

 ... above pattern repeats very often...
 ... tables of varying length with very
 variable height of single rows ...

 We are using the two columns to get the variable
 length table no. 2 balanced between left and
 right side (which BTW does not work to well,
 the left hand side gets way to long). I do not
 see how to achieve this effect with a table,
 since I have absolute no means to measure the
 where to break the table into into two parts.
 We have long headers over the tables and those
 header have to kept close to their table.

 I know how to do it with TeX, but this ain't help :-)
 But its funny to run in this kind of problem over
 20 years after TeX was programmed.

 Best regards,
 Frank Nestel

 -Ursprüngliche Nachricht-
 Von: J.Pietschmann 

Re: java/util/HashMap error

2002-04-19 Thread Mathy V Arumugam
This is what I have in my java file to generate a PDF file:
Logger log;
Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
log = hierarchy.getLoggerFor(fop);
log.setPriority(Priority.WARN);
Driver dr=new Driver();// *  this is where it is failing
**
dr.setLogger(log);
dr.setRenderer(Driver.RENDER_PDF);
InputHandler ih=new XSLTInputHandler(xmlFile,xslFile);
XMLReader p=ih.getParser();
dr.setOutputStream(new FileOutputStream(pdfFile));
dr.render(p,ih.getInputSource());

Mathy V Arumugam wrote:

 What can I do to get rid of the following error?  I am using JDK1.3...

 java.lang.NoClassDefFoundError: java/util/HashMap
  at org.apache.fop.fo.FOTreeBuilder.init(FOTreeBuilder.java:85)

 Thanks
 Mathy



FOP scalability

2002-04-19 Thread Zahigian, Mike
Does anyone know how efficient FOP might be when running on Sun Solaris box?
If I am using XSL template objects to optimize performance, how might
response times vary with increased number of users?  Assume the Solaris box
is a single 420R with 4 cpus and 4GB of RAM.  Any help is this regard and
ideas about making my FOP-based rendering solution more scalable is greatly
appreciated.

Mike Zahigian, Sr. Programmer/Systems Analyst
Amgen
Business Information Systems
(805) 447-2819
mailto:[EMAIL PROTECTED]



FOP on Websphere OS390

2002-04-19 Thread Shaikh, Mehmood
Has anyone used FOP on Websphere 3.5 on OS390 USS?

Thanks

Mehmood