RE: between multiple table problem with spacing

2007-01-17 Thread Gregan, Miroslav
Thank you very much for your answers it solved my problem!!

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 16, 2007 5:54 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: between multiple table problem with spacing

Gregan, Miroslav wrote:

 Thank you for your answer, I have looked for information
 on the http://www.w3.org/TR/xsl/ page to find out how/where to use 
 space-before.conditionality=retain and
 space-after.conditionality=retain
 But I did not found any information about it.
 
 Is it a parameter for an fo:block, an fo:table, something else?
 Can you show me a small example of it's use?

You can use space-before.conditionality on any FO that works with 
space-before. I have attached your original dfg.fo file which I modified

to use space-before.conditionality=retain

Chris

snip/

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



RE: PROBLEM while trying to write text vertically with SVG

2007-01-17 Thread Gregan, Miroslav
Thank you for your answer,
The problem has been solved when I upgraded form Eclipse 3.1.1 to 3.2.1.
It must have been a problem with the class loader :-(

-Original Message-
From: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 10, 2007 1:48 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: PROBLEM while trying to write text vertically with SVG

AFAIK, with FOP 0.93, related SVG libraries are:

 - batik-all-1.6.jar

 - xmlgraphics-commons-1.1.jar

Pascal


 -Message d'origine-
 De : Gregan, Miroslav [mailto:[EMAIL PROTECTED] 
 Envoyé : mercredi 10 janvier 2007 11:40
  
 Not fair, I still get nothing correct!!
 
 Even when I put no font-family property.
 Could it be a library problem?
 
 Miroslav

 Hi,
 I get a vertical text with your a fo file undezr FOP 0.93 (I 
 suppose that is what you want to get).
 
 There is only 1 minor mistake in it:
 
 Use Sans-serif instead of SansSerif in your font-family property.
 
 Pascal
 
  -Message d'origine-
  De : Gregan, Miroslav [mailto:[EMAIL PROTECTED]
  Envoyé : mercredi 10 janvier 2007 08:59
   
  I'm trying to write text vertically in a PDF by using an 
 XSL-FO with 
  SVG code.
  I use FOP 0.93 like a library in a java code under windows XP, (but 
  should also work under Linux).
  The SVG code used is working fine in an SVG file, and with FOP 20.5.
   
  BUT it is NOT working with FOP 0.93.
   
  Could someone, please, have a look at it and tell my what 
 am I doing 
  wrong?
   
  fo start file:
  http://www.filefactory.com/file/f107a9/
  http://www.filefactory.com/file/f107a9/
   
  pdf result file:
  http://www.filefactory.com/file/d30969/
  http://www.filefactory.com/file/d30969/
   
  Thank you.
   
  Kind regards,
   
  Miroslav


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


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



Usage of setRendererOverride()

2007-01-17 Thread Daniel Noll

Hi all.

I have a situation where I need to use two different renderers for the 
same MIME type.  I thought I might be able to use the renderer override 
for this.


So what I have so far is...

  Fop fop = fopFactory.newFop(mimeType, outputStream);
  fop.getUserAgent().setRendererOverride(new MyRenderer());
  ...


However I have a breakpoint in startRenderer() of my custom renderer, 
and it isn't being called.


What am I doing wrong?

Daniel


--
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699
Web: http://nuix.com/   Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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



Re: Usage of setRendererOverride()

2007-01-17 Thread Daniel Noll

Andreas L Delmelle wrote:

On Jan 18, 2007, at 00:06, Daniel Noll wrote:


snip /
I guess if we're not supposed to set fields on the user agent after 
the Fop instance is created, the API should prevent it by either (a) 
throwing an exception when we try to change it, or (b) not giving 
access to the object in the first place.


Not quite. The second one you created, could be used for another Fop 
instance.
It is perfectly legal to instantiate a useragent after the Fop instance 
is created. Only, don't expect it to have any consequences... Each Fop 
instance is linked to a FOUserAgent. The factory doesn't keep track of 
all the Fops and FOUserAgents it creates.


The FOUserAgent passed in and the one obtained from fop.getUserAgent() 
are the same object, I didn't actually create a new one.


Daniel


--
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699
Web: http://nuix.com/   Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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



XSL FO newbie question - Hide overflow page content

2007-01-17 Thread Peter
Hello,

 

Upfront apologies for the 101 nature of this question. 

 

I want to make sure an xsl-fo stylesheet will only generate a single page.
Possible overflow should be hidden with a warning or, if possible, an error
should be generated.

 

I found how fo(p) can hide overflow with a block-container object, but I
would rather not use this if not needed.

 

Thanks,

 

Peter



Re: XSL FO newbie question - Hide overflow page content

2007-01-17 Thread Nicol Bolas


This is pretty easy, though it won't get you any warnings.

Make a 1-length page-sequence-master. That is, make a regular
page-sequence-master and then use it in a repeatable-page-master, but only
with 1 repetition. That will force the output to be one page.
-- 
View this message in context: 
http://www.nabble.com/XSL-FO-newbie-question---Hide-overflow-page-content-tf3031234.html#a8422453
Sent from the FOP - Users mailing list archive at Nabble.com.


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



OutputStream and renderers where it doesn't make sense.

2007-01-17 Thread Daniel Noll

Hi all...

In FOP 0.93 the Renderer framework's startRenderer() requires an 
OutputStream.  But to give a few examples, AWTRenderer gets passed no 
OutputStream at all (presumably it gets passed null, but it seems like a 
hack to me still) and PNGRenderer outputs multiple files so it can only 
use the OutputStream object to output to the first one.


Is this API going to be improved at some point so that subclasses don't 
need to implement hacks such as these?  Perhaps some kind of Destination 
object which could contain an OutputStream, multiple OutputStreams, or 
even just a marker saying that no, there is no destination stream.


Daniel


--
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699
Web: http://nuix.com/   Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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



awt performance 0.93 vs 0.92beta

2007-01-17 Thread paul
Hello

I'm running fop on my pc (windows xp, jre 1.6) locally, and just updated
from fop 0.92beta to 0.93. Using AWT-mode, I find that 0.93 processes my
xml and xsl much slower than 0.92beta, and less reliable. At the first
 try, the pdf-preview in awt usually looks mangled, only when I run it a
 second time with thedebug-button in the awt window, the preview looks as
expected. But rendering takes so much time that I went back to using 
0.92beta, which runs quick and smooth.

Is this a problem documented elsewhere already?
cheers
paul


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



RE: XSL FO newbie question - Hide overflow page content

2007-01-17 Thread Peter
Hello,

I tried the following with fop 0.93 

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=page 
  page-height=50pt page-width=200pt
  fo:region-body/fo:region-body
/fo:simple-page-master
fo:page-sequence-master master-name=single
fo:repeatable-page-master-reference master-reference=page 
 maximum-repeats=1/fo:repeatable-page-master-reference
/fo:page-sequence-master
  /fo:layout-master-set
  fo:page-sequence master-reference=single
fo:flow flow-name=xsl-region-body
  fo:block font-size=28pt linefeed-treatment=preserveLine
Line
Line/fo:block
/fo:flow
  /fo:page-sequence
/fo:root


Which results in 

fop -fo c:\temp\t.fo -pdf c:\temp\t.pdf
Jan 18, 2007 8:34:17 AM org.apache.fop.fo.pagination.PageSequenceMaster
getNextSimplePageMaster
WARNING: subsequences exhausted in page-sequence-master 'single', using
previous subsequence
Jan 18, 2007 8:34:17 AM org.apache.fop.fo.pagination.PageSequenceMaster
getNextSimplePageMaster
WARNING: subsequences exhausted in page-sequence-master 'single', using
previous subsequence

And 3 pages in t.pdf.

Anyone any thoughts on what I am doing wrong?


Not sure what it tells but XEP 4.5 results in 

XEP 4.5 build 20060313
(document [system-id file:/C:/DOCUME~1/pc/LOCALS~1/Temp/pro3B6.xml]
  (validate [validation OK])
  (compile 
(masters 
  (sequence-master [master-name page])
  (sequence-master [master-name single]))
(sequence [master-reference single]
  (flow [flow-name xsl-region-body])))
  (format 
(sequence [master-reference single]
  (flow [1]
[error] com.renderx.xep.cmp.NoPageMasterException: state: rest
filled even
  )
  (static-content [1])))
  (generate [output-format pdf][1]))


And a single page pdf

All suggestions or guidance warmly welcomed!


Thanks,

Peter



 -Original Message-
 From: Nicol Bolas [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 18, 2007 12:56 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: XSL FO newbie question - Hide overflow page content
 
 
 
 This is pretty easy, though it won't get you any warnings.
 
 Make a 1-length page-sequence-master. That is, make a regular
 page-sequence-master and then use it in a repeatable-page-master, but only
 with 1 repetition. That will force the output to be one page.
 --
 View this message in context: http://www.nabble.com/XSL-FO-newbie-
 question---Hide-overflow-page-content-tf3031234.html#a8422453
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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