Re: Version Differences

2002-06-25 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
[ERROR]: Logger not set
You can ignore this, or look into Driver.jage getLogger()
how to set your own logger.
[INFO]: building formatting object tree
[INFO]: [1]
[WARN]: table-layout=auto is not supported, using fixed!
Formally, the default value for the table-layout property
iss "auto". This means the processor calculates the column
widths from the cell content. FOP doesn't implement this,
in order to inform clients about possibly not meeting their
expectation, the warning was added.

2.  Version 0.20.1 would, by default, dump performance data (like "Avg
render time per page") to the console, where 0.20.3 does not appear to do
this.  How can I turn this back on to get the performance data?
You can get this from the command line by adding the -d
switch. This will also print some amount of other debugging
information. For embedded use, try
  driver.setErrorDump(true);
 Also, for
when the code moves to production, how do I suppress all messages?
You can't shut up the command line application other than
by rerouting stdout into the null device. For embedded use,
write your own logger implementing the Logger interface which
discards the messages, or check the LogKit for a Null logger
(can't be bothered to look it up now, 0.20.4 should use the
avalon logging mechanism, which has a null logger)
J.Pietschmann


Re: FOPServlet and XML string

2002-06-25 Thread J.Pietschmann
Mo, Jennifer wrote:
Does anyone know how to modify the FOPServlet so that it takes in a XML
string instead of a XML file?  The XSLTInputHandler class (which inherits
from InputHandler) seems to only take in a file but not a String. i'm stuck.
Any ideas or suggestion?
Use something like this:
Driver driver =new Driver();
driver.setOutputStream(response.getOutputStream());
driver.setRenderer(Driver.RENDER_PDF);
Transformer transformer=TransformerFactory.newInstance()
  .newTransformer(new StreamSource(
 new StringReader(theString)));
transformer.transform(xmlsource,
  new SAXResult(driver.getContentHandler()));
Are you building the string in memory by yourself? In this case,
you should look into writing a SAX Source.
J.Pietschmann


Re: Widow-Orphan Controls

2002-06-25 Thread J.Pietschmann
Durai Murugan wrote:
Is widow-Orphan Control implemented in FOP?
No.
Check docs/html-docs/implemented.html for implemented
features (though a few features have been implemented
recently, and listed features may have severe limitations,
so don't expect too much).
J.Pietschmann


Re: Embedded FOP question.

2002-06-25 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I've been using the FopServlet as the basis for my servlet app which takes a
DOM document, stores it to an xml file, then uses XSLTInputHandler to
convert to fo and output the pdf.  Now I'm getting to the point where I want
to eliminate the xml file and convert using the DOM object or a serialized
string of the xml.  It looks to me like it can't be done with the
XSLTInputHandler class because it requires java.io.File parameters.  I'm
looking at XSLTransform to transform the DOM document input to a DOM
document containing FO output using the xsl file.  Just wondering if this is
the best approach and then how to best use the FO DOM document to output the
pdf.  If anyone knows where I can find some good sample code (or if you have
a sample yourself), I would appreciate the tips.
There is sample code in the archive at
 http://marc.theaimsgroup.com/?l=fop-user&r=1&w=2#
 http://marc.theaimsgroup.com/?l=fop-dev&r=1&w=2#
For producing and rendering a DOM, look up
 javax.xml.transform.dom.DOMResult
in the JAXP documentation coming with your XSLT processor
and look for render(Document) in
 src/org/apache/fop/apps/Driver.java
Unless you need to manipulate the intermediate DOM,
it is usually more effective to use SAX to tie the
XSLT processor to the FOP driver, for example
 http://marc.theaimsgroup.com/?l=fop-user&m=102400770318682&w=2
J.Pietschmann


Re: illegal character

2002-06-25 Thread J.Pietschmann
Xiao Yang wrote:
Ok, I think I know what's going on here. The illegal
characters are apos and quotes. I am generating a xml
document from a text field in sql server. I am using
the JDBC driver from microsoft to get it. the driver
probably does not know how to copy apos and quotes and
replace them with these illegal xml characters (x19,
xc1).  my questions now becomes how can I look for and
replace these illegal xml characters in the xml
document. I am using the xerces parser from apache. Is
there a way for the parser to pick up on these illegal
characters?
I'd try to replace the characters before they are fed into
the parser. Are you getting a string containing the XML
from the driver? Or some string data? Use replace() on
this string.
BTW U+00C1 is a valid XML character.
J.Pietschmann


Re: What kind of TIFF does FOP support

2002-06-25 Thread J.Pietschmann
Oleg Tkachenko wrote:
btw, isn't jimi some kind of obsolete library intended to be used by 
those tied to jdk1.1?
Well, obsolete or not, it works, is available, platform neutral,
easy to install and provides support for a wide range of graphics
formats, some of them rather obscure. Do you know of a JAI
implementation, preferably OSS and/or freely available, which
supports all common subformats of TIFF, PNG, BMP and perhaps a
few more?
A quick sweep through sourceforge revealed only a TIFF
implementation.
The Sun JAI implementation offers all the formats, but
installation requires more than just dropping a jar into
the classpath, and it contains platform specific binaries
(good for speed but screws Mac users and others).
J.Pietschmann


RE: FOPServlet and XML string

2002-06-25 Thread mike . witt
I'm having the same issues, so if you find a solution, please post.  But, it
seems like you could use the XALAN function XSLTransform to convert a DOM
document or a string using an XSL file to either a FO file or another DOM
document.  XSLTInputHandler will only take java.io.File parameters, but I've
seen examples of using the JAXP Transformer to do the job as well.  See:
http://www.devx.com/xml/articles/vp101201/vp101201-1.asp.  It seems as if
this could be modified to use a StringReader and/or StringWriter.  Let me
know if you have any luck.

Mike

-Original Message-
From: Mo, Jennifer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 25, 2002 2:17 PM
To: [EMAIL PROTECTED]
Subject: FOPServlet and XML string


Does anyone know how to modify the FOPServlet so that it takes in a XML
string instead of a XML file?  The XSLTInputHandler class (which inherits
from InputHandler) seems to only take in a file but not a String. i'm stuck.
Any ideas or suggestion?


RE: Version Differences

2002-06-25 Thread Jose Hernandez
Hello ...

Only I can respond the first question ... 

Maybe, you have in your FO style sheet a syntax like that ...



only you need to add (only in the fo:table tags) the attribute
"table-layout" with the next value



OK ... I hope that it's fine for you ...



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 25, 2002 01:41 p.m.
To: [EMAIL PROTECTED]
Subject: Version Differences



Hello,

I recently upgraded from FOP 0.20.1 to 0.20.3.  I have a couple of minor
questions.  I'm using FOP in a servlet environment:


1.  I now get these warnings:

[ERROR]: Logger not set
[INFO]: building formatting object tree
[INFO]: [1]
[WARN]: table-layout=auto is not supported, using fixed!
[WARN]: table-layout=auto is not supported, using fixed!

I'm not too worried about them, I'm just wondering what they mean.  What
does it mean by "Logger not set?"  And what does it mean about
table-layout?  I don't have this in my FO style sheet.



2.  Version 0.20.1 would, by default, dump performance data (like "Avg
render time per page") to the console, where 0.20.3 does not appear to do
this.  How can I turn this back on to get the performance data?  Also, for
when the code moves to production, how do I suppress all messages?


Thanks for your help!!

-Ryan





Version Differences

2002-06-25 Thread Ryan.Asleson

Hello,

I recently upgraded from FOP 0.20.1 to 0.20.3.  I have a couple of minor
questions.  I'm using FOP in a servlet environment:


1.  I now get these warnings:

[ERROR]: Logger not set
[INFO]: building formatting object tree
[INFO]: [1]
[WARN]: table-layout=auto is not supported, using fixed!
[WARN]: table-layout=auto is not supported, using fixed!

I'm not too worried about them, I'm just wondering what they mean.  What
does it mean by "Logger not set?"  And what does it mean about
table-layout?  I don't have this in my FO style sheet.



2.  Version 0.20.1 would, by default, dump performance data (like "Avg
render time per page") to the console, where 0.20.3 does not appear to do
this.  How can I turn this back on to get the performance data?  Also, for
when the code moves to production, how do I suppress all messages?


Thanks for your help!!

-Ryan






FOPServlet and XML string

2002-06-25 Thread Mo, Jennifer
Does anyone know how to modify the FOPServlet so that it takes in a XML
string instead of a XML file?  The XSLTInputHandler class (which inherits
from InputHandler) seems to only take in a file but not a String. i'm stuck.
Any ideas or suggestion?


Re: illegal character

2002-06-25 Thread Oleg Tkachenko
Xiao Yang wrote:
Ok, I think I know what's going on here. The illegal
characters are apos and quotes. I am generating a xml
document from a text field in sql server. I am using
the JDBC driver from microsoft to get it. the driver
probably does not know how to copy apos and quotes and
replace them with these illegal xml characters (x19,
xc1).  my questions now becomes how can I look for and
replace these illegal xml characters in the xml
document. I am using the xerces parser from apache. Is
there a way for the parser to pick up on these illegal
characters?
No way, xml in contrast to html is very picky about syntax.
Probably the problem has something to do with encodings, anyway you have to 
preprocess data form jdbc ResultSet to avoid such binary control chars in a text.

--
Oleg Tkachenko
Multiconn International Ltd, Israel


Re: Weird behaviour of Apache fop

2002-06-25 Thread Oleg Tkachenko
Michiel Verhoef wrote:
Yesterday I removed the CDATA sections like Oleg advised and now I knew
again why we added the CDATA sections:
without the CDATA sections our html filter template did not work properly.
We could generate PDF but the underlined,
bold and italic texts were just plain text.
What exactly is the problem? Making bold and italic text is usually a very 
easy task using xslt. You can ask on xsl-list[1], I'm sure you'll get a 
comprehensive answer there.

[1] http://www.mulberrytech.com/xsl/xsl-list
--
Oleg Tkachenko
Multiconn International Ltd, Israel


Re: What kind of TIFF does FOP support

2002-06-25 Thread Oleg Tkachenko
J.Pietschmann wrote:
Ok, here it goes.
The Jimi home page is
 http://java.sun.com/products/jimi/
btw, isn't jimi some kind of obsolete library intended to be used by those 
tied to jdk1.1?

--
Oleg Tkachenko
Multiconn International Ltd, Israel


Re: illegal character

2002-06-25 Thread Xiao Yang
Hello

Ok, I think I know what's going on here. The illegal
characters are apos and quotes. I am generating a xml
document from a text field in sql server. I am using
the JDBC driver from microsoft to get it. the driver
probably does not know how to copy apos and quotes and
replace them with these illegal xml characters (x19,
xc1).  my questions now becomes how can I look for and
replace these illegal xml characters in the xml
document. I am using the xerces parser from apache. Is
there a way for the parser to pick up on these illegal
characters?

thanks
pauli 


--- Oleg Tkachenko <[EMAIL PROTECTED]> wrote:
> Not sure, that's some control character, "Device
> Control 3", but certanly it's 
> illegal charcter in xml 1.0 document (afaik, it's
> legal for xml 1.1).
> 
> Xiao Yang wrote:
> > Dear Oleg
> > 
> > your right, the apos is ok.  but I could have
> swore
> > the apos was causing the error before.  However, I
> got
> > this error in one of the transformation.  do you
> know
> > what character  is?
> > 
> > javax.xml.transform.TransformerException: Illegal
> XML
> > character:  .
> > 
> > thanks
> > pauli
> > 
> > 
> > 
> > --- Oleg Tkachenko <[EMAIL PROTECTED]> wrote:
> > 
> >>Xiao Yang wrote:
> >>
> >>
> I am using FOP to transform some bio into pdf
> >>>
> >>format. 
> >>
> >>>FOP generates an error when it encounters an
> >>
> >>illegal
> >>
> >>>character such as the apostrophe "'".  Where can
> I
> >>>find a list of illegal characters that FOP does
> >>
> >>not
> >>
> >>>accept?  I need to replace the illegal character
> >>
> >>with
> >>
> >>>their numeric entity reference.
> >>
> >>What is exactly the error? Apostrophe is not an
> >>illegal character at all, but 
> >>as it's used in xml markup to delimit attribute
> >>values, it's kinda special.
> >>And you don't need numeric entity reference,
> because
> >>' is predefined 
> >>entity. See xml spec for more details: 
> >>http://www.w3.org/TR/2000/REC-xml-20001006#syntax
> >>
> >>-- 
> >>Oleg Tkachenko
> >>Multiconn International Ltd, Israel
> >>
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> > 
> 
> 
> 
> -- 
> Oleg Tkachenko
> Multiconn International Ltd, Israel
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


Re: vertical fo:leader problem

2002-06-25 Thread Keiron Liddle

The leader is always in the inline progression dimension (same direction
as text). So if text is horizontal then the leader will be too.
As reference orienation is not implemented you cannot change the
direction.
You probably want to use svg.

On Tue, 2002-06-25 at 01:02, Muhammad Irfan wrote:
> Hi,
> 
> Could some one help me??? I am trying to get the vertical lines... 
> fo:leader. when i use the fo:leader it always gives me a horizontal line. 
> Anyone has got any clue???
> 
>   Thanks a lot in advance.
> 
> Regards
> Irfan




RE: keep-with-.. property

2002-06-25 Thread Jochen . Maes

in that case i use the table header and table footer function,

in your case i would use the row you never want to be alone as the table
header of the embedded table that follows.
put there in the table tage  "keep-together='always' " etc...

is this what you mean...?


Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



RE: keep-with-.. property

2002-06-25 Thread Hahn Kurt (CHA)
I don't exactly know what you mean, but I think that wouldn't fit my needs,
which is, that the table-row shown belown should be on a new page if there's
not enough space to add at least one more row (actually much like the title
of a chapter or a section, which should never stand alone, but doesn't have
necessarily to start a new page everytime)

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : mardi, 25. juin 2002 10:38
À : [EMAIL PROTECTED]
Objet : RE: keep-with-.. property



put it in one block together whith the data that it alsways be shown with
and try bertrands code on the fo:block property...

is a wild guess neva tried this one before :D

but wild guesses & fop has always worked for me :D

Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.


RE: keep-with-.. property

2002-06-25 Thread Jochen . Maes

put it in one block together whith the data that it alsways be shown with
and try bertrands code on the fo:block property...

is a wild guess neva tried this one before :D

but wild guesses & fop has always worked for me :D

Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



RE: keep-with-.. property

2002-06-25 Thread Hahn Kurt (CHA)
I'm using the same FOP version. If I look at the following code snippet,
this table row should never stand alone at the end of a page, but this is
exactly what happens (and not only once, but in many places over the entire
document. I assume that the property doesn't work in every case, but is
there any other way/solution?

Kurt


- 
- 
- 
- 
   
   
- 
- 
- 
   
  
- 
  JUSTICE, POLICE ET SECURITE* (DJPS) 
  
  
- 
   
- 
  (Titulaire: Mme Spoerri Micheline; suppléant: M. Laurent
Moutinot) 
  
  
  
  
  
  
  

-Message d'origine-
De : Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Envoyé : mardi, 25. juin 2002 09:31
À : [EMAIL PROTECTED]; Hahn Kurt (CHA); '[EMAIL PROTECTED]'
Objet : Re: keep-with-.. property


On Tuesday 25 June 2002 08:58, Hahn Kurt (CHA) wrote:
>. . .
> Is there another reason why my
> example here doesn't keep the rows together?

I don't know exactly what is supposed to work or not, but here we've been 
successfully using the following constructs with FOP 0.20.3rc:





Note however that bug 7449 is not fixed yet: rows that do not fit on one
page 
cause infinite loops
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7449)

-Bertrand


Re: keep-with-.. property

2002-06-25 Thread Bertrand Delacretaz
On Tuesday 25 June 2002 08:58, Hahn Kurt (CHA) wrote:
>. . .
> Is there another reason why my
> example here doesn't keep the rows together?

I don't know exactly what is supposed to work or not, but here we've been 
successfully using the following constructs with FOP 0.20.3rc:





Note however that bug 7449 is not fixed yet: rows that do not fit on one page 
cause infinite loops (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7449)

-Bertrand


RE: vertical fo:leader problem

2002-06-25 Thread Max Dcosta
try giving it a reference-orientation="90" maybe that will help it

Guys, pls tell me if this may help.

Max :)

-Original Message-
From: Ralf Steppacher [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 25, 2002 12:36 PM
To: [EMAIL PROTECTED]
Subject: Re: vertical fo:leader problem


 > Could some one help me??? I am trying to get the vertical lines...
 > fo:leader. when i use the fo:leader it always gives me a horizontal
 > line. Anyone has got any clue???

Try to specify a leader-pattern:



HTH
Ralf


Re: vertical fo:leader problem

2002-06-25 Thread Ralf Steppacher
> Could some one help me??? I am trying to get the vertical lines...
> fo:leader. when i use the fo:leader it always gives me a horizontal
> line. Anyone has got any clue???
Try to specify a leader-pattern:

HTH
Ralf


Re: What kind of TIFF does FOP support

2002-06-25 Thread Rodolphe VAGNER
It's fantastic :  
Many responses to my problems.
Thank you very much.


- Original Message - 
From: "J.Pietschmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 24, 2002 9:59 PM
Subject: Re: What kind of TIFF does FOP support


> Rodolphe VAGNER wrote:
> > In fact the first tests I've done seem to indicate the contrary :
> > my uncompressed file is a black area and my CCITT Gr4 or 3, and LWZ
> > compressed files
> > are well rendered.
> > It's bizarre, isn'it ?
> > What about jimy ? where can I find doc on it ?
> 
> Ok, here it goes.
> The Jimi home page is
>   http://java.sun.com/products/jimi/
> You can download the whole package there, including
> Source, JavaDoc and, most valuable, additional docs
> describing supported file and image formats.
> 
> For TIFF, the following compression schemes are supported
>- Uncompressed images
>- CCITT compressed Bi-level images with CCITT RLE, CCITT
>  Group 3 1D Fax, CCITT Group 3 2D Fax, CCITT Group 4 Fax
>- CCITT Class F Fax
>- Packbits compressed images (a simple RLE type compression)
>- LZW Compressed images
> JPEG compression is not supported.
> 
> The TIFF spec is available from
>   http://partners.adobe.com/asn/developer/PDFS/TN/TIFF6.pdf
> Compression schemes are
>Packbits: run length encoding (Sec. 9)
>CCITT G3 Fax (Sec. 10)
>CCITT Bilevel (Sec. 11)
>LZW (Sec. 13)
>JPEG (Sec. 22)
> CCITT Class F compression is apparently defined in a RFC,
> for example available here:
>   http://www.zvon.org/tmRFC/RFC2306/Output/chapter3.html
> 
> It is also mentioned that Jimi does only understand
> black and white (bilevel), grayscale (palette) and RGB
> (palette and direct color). CMYK, Cie L*a*b* and YCbCr
> color models are not implemented.
> 
> It is not mentioned whether compression predictors are
> supported, I supposed not (does anybody use them?). It is
> also not explicitely noted how Jimi deals with alpha
> channels.
> 
> If uncompressed TIFF comes out black, probably the color
> model or palette size is inconvenient for Jimi.
> 
> J.Pietschmann
> 



keep-with-.. property

2002-06-25 Thread Hahn Kurt (CHA)
I've read a lot in the archives about the different keep-with property; what
I understood is that some of them are not implemented yet, but that
keep-with-next should work on table rows. Is there another reason why my
example here doesn't keep the rows together?



- 
- 
- 
- 
   
   
- 
- 
- 
  10 
  
- 
  RAPPORTS DE LA COMMISSION DE GRACE 
  
  
- 
   
- 
   
  
  
  
  
  
  
  
   
  
- 
- 
- 
- 
   
   
   
- 
- 
   
   
- 
  7 rapports, préavis adoptés. 
  
  
- 
   
   
- 
   
  
  
  
  
  
  
  


Re: Memory usage w/ FOP

2002-06-25 Thread Jochen . Maes

Hi Philip,

I made a mailing for 14000 documents (roughly) i don't run it parallel,
buet sequencial. It takes me 2 hours and 15 mins now...
and this is not only a fop rendering i do, every document is reopened with
iText for some images and watermarks.

these documents are spread like this: 9000 of 2 pages, 3000 of 3 pages and
2000 of 4 and more pages.

my memory (on the taskmanager for the java.exe that does the whole process)
never goes higher then 36.000 Kb , and my cpu cycles are only used for 50%

so i would be able to riuns it twice @ the same time :D

if you want to be sure that your memory use won't jump to the sky make sure
you close every reference you don't need and garbage collect @ a regular
time...

i hope yur doing the same thing in java and if necessary i can help you
tweak the application

greetings,


Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



   
"Philip S.  
   
Constantinou"To: <[EMAIL PROTECTED]>
 
<[EMAIL PROTECTED]cc:   

er.net>  Subject: Re: Memory usage w/ FOP   
   

   
24/06/2002  
   
22:50   
   
Please  
   
respond to  
   
fop-user
   

   

   




This really helps...
One of the things that I need to do is a mail merge creating thousands of
one page letters. If the pages are simple with no table of
contents/references/page numbers. Is it safe to assume that the FO
processor
will use roughly the same memory printing 10 letters as 1000?

- Original Message -
From: "J.Pietschmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 24, 2002 1:44 PM
Subject: Re: Memory usage w/ FOP


> Philip S. Constantinou wrote:
> > Hi -
> > If I'm using an XSL Transformer and an XML ByteArrayOutputStream to
create a
> > FO formatted document which is rendered as PDF or printed, what is a
good
> > assumption to make about the memory utilization? Is the entire merged
FO
> > document stored in memory or can the FO processor stream out the PDF or
> > printed page?
>
> I'm not sure where t

RE: Weird behaviour of Apache fop

2002-06-25 Thread Michiel Verhoef
Hi, nope, we're running on JDK 1.3.02. 

Yesterday I removed the CDATA sections like Oleg advised and now I knew
again why we added the CDATA sections:
without the CDATA sections our html filter template did not work properly.
We could generate PDF but the underlined,
bold and italic texts were just plain text.

When we use the CDATA tags at least we can generate the formatting we need,
but we need to do this in two steps.
For development purposes it is not so bad to do this but if possible we'd
like

Michiel


$ -Original Message-
$ From: J.Pietschmann [mailto:[EMAIL PROTECTED]
$ Sent: maandag 24 juni 2002 21:46
$ To: [EMAIL PROTECTED]
$ Subject: Re: Weird behaviour of Apache fop
$ 
$ 
$ Michiel Verhoef wrote:
$ > Hi all,
$ > 
$ > Currently we have a weird problem: when converting an XML 
$ file (or rather,
$ > an XML-ified HML source) to a FO file and 
$ > converting this resulting FO file to a PDF all things are 
$ fine. However,
$ > when we try to convert the XML with the exact 
$ > same XSL script into a PDF we get errors:
$ > 
$ > [INFO]: FOP 0.20.3
$ > [INFO]: building formatting object tree
$ > [INFO]: Parsing of document complete, stopping renderer
$ > [INFO]: Parsing of document complete, stopping renderer
$ > [ERROR]: / by zero
$ > 
$ 
$ Are you running JDK1.4?
$ 
$ J.Pietschmann
$ 
$ 


Widow-Orphan Controls

2002-06-25 Thread Durai Murugan
Hi,
  I am encountering a problem on widow and orphan controls.




I tried the above code snippets, but doesn't have
influence.
Is widow-Orphan Control implemented in FOP?

Thanks in Advance.

Durai




__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com


Embedded FOP question.

2002-06-25 Thread mike . witt
I've been using the FopServlet as the basis for my servlet app which takes a
DOM document, stores it to an xml file, then uses XSLTInputHandler to
convert to fo and output the pdf.  Now I'm getting to the point where I want
to eliminate the xml file and convert using the DOM object or a serialized
string of the xml.  It looks to me like it can't be done with the
XSLTInputHandler class because it requires java.io.File parameters.  I'm
looking at XSLTransform to transform the DOM document input to a DOM
document containing FO output using the xsl file.  Just wondering if this is
the best approach and then how to best use the FO DOM document to output the
pdf.  If anyone knows where I can find some good sample code (or if you have
a sample yourself), I would appreciate the tips.

TIA,

Mike Witt