Re: Misalignment of list-item label and body when different fonts

2011-01-06 Thread Pascal Sancho
Hi,
What you need here is the relative-align property, witch is
unfortunately not yet supported by FOP (see [1]  [2]).
As a work-around, you can add a space-before property on the 1st element
of the list-item-body, with the .conditionality set to 'retain'

[1]
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-relative-align
[2] http://www.w3.org/TR/xsl/#relative-align


Le 06/01/2011 01:11, Steve Fogel a écrit :
 Hi, all…
 
 With FOP 0.95, for a list block that represents an ordered list of
 steps, we are attempting to use Helvetica for the numeric list item
 label, and Palatino for the list item body.
 
  
 
 In the PDF output, the numeric label does not properly align vertically
 with the text of the step (the list item body). The label is slightly
 below where it needs to b! e. I have tried fiddling with attributes to
 no avail. Can anyone offer a suggestion?
 
 Thanks
 
 Steve
--
Pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: how to extend the rendering part of fop

2011-01-06 Thread gen1986

I finally worked it out. Ouf.
I had to create a ImageFactoryLoader and a Loader to create my initial Image
from the context. After reading the code I conclude that we can't avoid
creating the Loader and LoaderFacotry.

If you look at the code of
PipelineFactory.determineCandidatePipelines(ImageInfo imageInfo, ImageFlavor
targetFlavor) you can see the call to
registry.getImageLoaderFactories(imageInfo, targetFlavor) and there,
surprise : to find a pipeline you first need to get a compatible
LoaderFactory (it seems finally logic as we need an initial image so we can
convert it).

So now I'm at the state where everything works (the fop part and my
extensions) and now hope that fops implementation of Graphics2D is
compatible with Jfreechart.

At the moment drawing basic forms to the Graphis2D works and it gets
displayed into the pdf, however I have still some problems when I'm drawing
with Jfreechart (but I suppose it's my fault and hope so).

When I'll have something clean and working well I'll share it so other can
benefit of that work.

Thanks for your help.

Eugen


Jeremias Maerki-2 wrote:
 
 On 05.01.2011 16:25:20 gen1986 wrote:
 
 Hi Chris,
 
  Did you add the 
  file named org.apache.xmlgraphics.image.loader.spi.ImageConverter to 
  the JAR containing your code in META-INF\services sub directory as 
  suggested by Jeremias?
 
 Yep (you can see it in the attachment).
 
 the attachment seems to be missing.
 
 I have created a ImageChartPreloader to preload the ImageInfo from
 DOMSource. 
 What I can see is that the originalURI is null. 
 
 Yeah, looks like I gave bad advice here, that the Preloader isn't
 necessary. Obviously, it is.
 
 1) Should I do something at some place to specifiy that uri? (where,
 how...)
 
 No, no URI is involved when fo:insteam-foreign-object is used.
 
 2) However even if the originalURI is null as I can get all the infos
 from
 the source it's ok.
 But what MimeType should I give to the created ImageInfo? (I've tried
 some,
 but I always get the same error : no suitable loader/converter
 combination...etc)
 
 I've used application/x-barcode4j+xml for Barcode4J. Create another
 custom one with application/x-[something]+xml.
 
 3) I've tried to solve my problem with the preloader, but if it's not the
 right way for doing it (ex: maybe
 setting some attributes to the Document is?) tell me.
 
 I think the important thing is to support a DOMSource in the preloader
 for your case. Again, take Barcode4J as a template.
 
 4) Please take à look at the attachment, so you can tell me what is
 missing.
 
 It didn't make it to the list. Try putting everything in a ZIP.
 
 
 
 Eugen
 
 
 cbowditch wrote:
  
  On 05/01/2011 10:52, gen1986 wrote:
  
  Hello,
  Stepan and Eric thanks for the suggestions but the whole thing must be
  done
  in java (the charting is only a part of the app).
  Jeremias solution is close to what I must do.
 
  After following the explanations of Jeremias and reading the sources
 of
  Barcode4J, etc. I manage to get something out, but it still doesn't
 work
  and
  I'm not sure about some points.
 
  1) I don't have to call imageManager.convertImage(image, flavors)
 right ?
  It's the fop framework who will do that. However if it's true,
 something
  is
  going wrong because my converters are not executed.
  
  Right, the Image Loader framework takes care of that. Did you add the 
  file named org.apache.xmlgraphics.image.loader.spi.ImageConverter to 
  the JAR containing your code in META-INF\services sub directory as 
  suggested by Jeremias? This is needed in order for the Image Loader 
  Framework to be made aware of your converter.
  2) When I'm running the transformation I've got an error
  GRAVE: Image not available. URI: (instream-object). Reason:
  org.apache.xmlgraphics.image.loader.ImageException: The file format is
  not
  supported. No ImagePreloader found for null (No context info
 available).
 
  After googling a bit I've found that we have to add the following line
 to
  the fop conf :prefer-renderertrue/prefer-renderer
  That is not the correct solution. The prefer-renderer option forces use 
  of the older renderers. The old Renderers don't benefit from the latest 
  bug fixes and improvements that have been made to the painters.
  
  If I'm doing so I've got another error : No handler defined for my
  namespace...
 
  So instead asking a lot of questions I've uploaded a basic test
 project
  so
  you can see what I'm doing wrong.
  http://old.nabble.com/file/p30594894/Fop-ChartExtension.rar
  Fop-ChartExtension.rar
 
  Thanks for your help!
  
  Thanks,
  
  Chris
  
  Eugen
 
 
 
  snip/
  
  -
  To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
  For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
  
  
  
 
 -- 
 View this message in context:
 http://old.nabble.com/how-to-extend-the-rendering-part-of-fop-tp30579066p30597037.html
 Sent 

fo:table space-after

2011-01-06 Thread Philippe Pithon

Hello all,

I start upgrade from FOP 0.20.5 to FOP 1.0

I have a problem with space-after in fo:table
(space-before works fine)

fo:table border=1  space-before=40px space-after=40px 
table-layout=fixed width=100%


With my test page, there isn't space after my table

But with FOP 0.20.5 it's OK.

any ideas ?

Philippe Pithon

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: fo:table space-after

2011-01-06 Thread Amick, Eric
It wouldn't surprise me if it has something to do with conditionality. Have you 
tried adding space-after.conditionality=retain?

Eric Amick   Systems Engineer II
Legislative Computer Systems

 -Original Message-
 From: Philippe Pithon [mailto:ppit...@sigal.fr]
 Sent: Thursday, January 6, 2011 10:51
 To: fop-users@xmlgraphics.apache.org
 Subject: fo:table space-after
 
 Hello all,
 
 I start upgrade from FOP 0.20.5 to FOP 1.0
 
 I have a problem with space-after in fo:table
 (space-before works fine)
 
 fo:table border=1  space-before=40px space-after=40px
 table-layout=fixed width=100%
 
 With my test page, there isn't space after my table
 
 But with FOP 0.20.5 it's OK.
 
 any ideas ?
 
 Philippe Pithon
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: fo:table space-after

2011-01-06 Thread Philippe Pithon


OK, it's works fine !
Thanks !

I read this attribut on http://www.w3.org/TR/xsl/#spacecond :

Conditionality is an enumerated value which controls whether a 
space-specifier has effect at the beginning or end of a reference-area 
or a line-area. Possible values are retain and discard; a conditional 
space-specifier is one for which this value is discard.


But I don't understand this sentence...
Do you have a link to a better explanation ?

Philippe Pithon


Le 06/01/2011 17:16, Amick, Eric a écrit :

It wouldn't surprise me if it has something to do with conditionality. Have you tried 
adding space-after.conditionality=retain?

Eric Amick   Systems Engineer II
Legislative Computer Systems


-Original Message-
From: Philippe Pithon [mailto:ppit...@sigal.fr]
Sent: Thursday, January 6, 2011 10:51
To: fop-users@xmlgraphics.apache.org
Subject: fo:table space-after

Hello all,

I start upgrade from FOP 0.20.5 to FOP 1.0

I have a problem with space-after in fo:table
(space-before works fine)

fo:table border=1  space-before=40px space-after=40px
table-layout=fixed width=100%

With my test page, there isn't space after my table

But with FOP 0.20.5 it's OK.

any ideas ?

Philippe Pithon

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



barcode4j and 3 of 9 compressed barcode type

2011-01-06 Thread BLAYKM

Hi 
I am using barcode4j-2.1.0 to develop barcodes using XSL-FO. Actually we are
trying to develop XSL-FO
templates for Documents that were developed using Jet-Forms. Does Barcode4j
support the barcode type 3 of 9 compressed format. If Not what could be
closest barcode type to 3 of 9 compressed. If Yes can you provide a code
sample. I have been googling for this a lot but could not find the answer.
Help needed

Regards
Ajay
-- 
View this message in context: 
http://old.nabble.com/barcode4j-and-3-of-9-compressed-barcode-type-tp30612044p30612044.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org