[ERROR] Image not found

2010-02-18 Thread pjmorce
Hello I used a simple example on the Internet about how to use FOP in java (http://javaboutique.internet.com/tutorials/FOP/): - I Created a simple Java application with a class that takes an XML and converts it into a PDF (using a XSL) containing an image. The name of my class is Process.java

Re: [ERROR] Image not found

2010-02-18 Thread philippe voncken
Hi, you must implementing the UriResolver and set your fopFactory with it. fopFactoy.setUriResolver() regards, Philippe 2010/2/18 pjmorce > > Hello > > I used a simple example on the Internet about how to use FOP in java > (http://javaboutique.internet.com/tutorials/FOP/): > > - I Created a

Re: [ERROR] Image not found

2010-02-18 Thread Venkat Reddy
Hi, It is more of a URL problem, try pass URL 'file:/img/logo.gif' instead of relative path. Thanks, Venkat. philippe voncken wrote: Hi, you must implementing the UriResolver and set your fopFactory with it. fopFactoy.setUriResolver() regards, Philippe 2010/2/18 pjmorce mailto:pjcarva...

Re: [ERROR] Image not found

2010-02-18 Thread pjmorce
Thanks for your answer. I am not familiarized with URIResolver but I check it and, if I understood, I must implement it creating a new class that implements the URIResolver class and the method resolve(String href, String base) In the javadoc the definition of both arguments are: href - An href

Re: [ERROR] Image not found

2010-02-18 Thread pjmorce
I tried your suggestion: in the XSL I have now the following code and the problem remains: However, i also tried to put this and it worked: It worked, but obvious reasons I cannot put this on the XSL that will be on production... :( Hi, It is more of a URL problem, try pass URL

Re: [ERROR] Image not found

2010-02-18 Thread philippe voncken
Yes, it's right. implement your UriResolver, set the fopFactory and debug your programme. You will see that you pass in your resolve(String href, String base) method when fop search your image. in href you'll see your image file name and so you can plugged your real image with the inputStream res

AW: [ERROR] Image not found

2010-02-18 Thread Georg Datterl
Hi pjmorce, Assuming TstFOP.jar is on the server and found by your application server, what happens if you use Mit freundlichen Grüßen Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführ

Re: [ERROR] Image not found

2010-02-18 Thread philippe voncken
Sorry, with this xsl it'll work in root element classpath : Philippe 2010/2/18 philippe voncken > With my SimpleUriResolver() you must use xsl as follow: > > > > > > if logo.gif is in your classpath root element, it will work. > > Philippe > > 2010/2/18 Georg Datterl > > Hi pjmorce, >

Re: [ERROR] Image not found

2010-02-18 Thread philippe voncken
With my SimpleUriResolver() you must use xsl as follow: if logo.gif is in your classpath root element, it will work. Philippe 2010/2/18 Georg Datterl > Hi pjmorce, > > Assuming TstFOP.jar is on the server and found by your application server, > what happens if you use > > > > > > > Mi

Re: [ERROR] Image not found

2010-02-18 Thread pjmorce
Thank you all. I found the answer for my prays. The answer were in dead on URIResolver. I just had to add this into my code to configure my FOUserAgent. (So easy, but so much difficult to find the solution) // configure foUserAgent as desired foUserAgent.setURIResolver(new URIResolver() {

RE: How to balance table columns?

2010-02-18 Thread lexa2009
yes, sorry. i meen thought, not think:). i think that it is possible in automatic mode when i write the first message:) thanks for help! Mario Madunic wrote: > > I'm guessing since no one else has replied maybe there is no automatic way > of doing it at the moment. Maybe someone has written an

Extremely long time for processing some kind of tif in rtf.

2010-02-18 Thread lexa2009
hello. i use fop. i have this xsl-fo: http://www.w3.org/1998/Math/MathML"; xmlns:fo="http://www.w3.org/1999/XSL/Format";>

Re: XMLFilterImpl producing SVG instream-foreign-object

2010-02-18 Thread Raphael Parree
I am still struggling with this one...anybody might have a answer or direction? On Tue, Feb 9, 2010 at 10:40 AM, Raphael Parree wrote: > Hi, > > I wrote an XMLFilterImpl which produces a instream-foreign-object. In > another filter i was able to call the super methods to push the result in > the

Table cell, vertical alignment with text and Instream

2010-02-18 Thread Jeandur
Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed "content" (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell

Re: Table cell, vertical alignment with text and Instream

2010-02-18 Thread Pascal Sancho
Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object

Re: Table cell, vertical alignment with text and Instream

2010-02-18 Thread Venkat Reddy
Hi, If you keep the third cell elements in another table, then it should work. Third cell should be border-style="solid"> Some text with instream centered

Re: Table cell, vertical alignment with text and Instream

2010-02-18 Thread philippe voncken
Hi, you can also uses a text-align attribute on the block element. Philippe 2010/2/18 Venkat Reddy > Hi, > > If you keep the third cell elements in another table, then it should work. > > Third cell should be > > > border-style="solid"> > > > > >

Re: Table cell, vertical alignment with text and Instream

2010-02-18 Thread jean.duracel
Thanks for your answer, but text-align works for horizontal alignment not vertical one Jean > Message du 18/02/10 15:22 > De : "philippe voncken" > A : fop-users@xmlgraphics.apache.org > Copie à : > Objet : Re: Table cell, vertical alignment with text and Instream > > Hi, > you can also uses a t

Re: Table cell, vertical alignment with text and Instream

2010-02-18 Thread jean.duracel
Thanks  Venkat for your answer, It seems a little bit difficult for us to get this solution working because the xsl-fo is produced automaticaly and the content of the cell could be very difficult to be split in a new table.  Jean. > Message du 18/02/10 14:57 > De : "Venkat Reddy" > A : fop-us

Re: Table cell, vertical alignment with text and Instream

2010-02-18 Thread jean.duracel
Thanks Pascal for your answer. You are right I'm speaking about the "vertical alignment of the image within its line". Putting a vertical-align on the instream does the work. To get this behavior we will have to analyze the cell content, before its xslt transformation to xsl-fo, to have the po

Re: Table cell, vertical alignment with text and Instream

2010-02-18 Thread Pascal Sancho
Jean, If you want to center each graphic on its own line, you have to adjust its vertical position regarding its vertical size. So this is a graphic-by-graphic treatment, witch cannot be done at cells level. Pascal jean.duracel a écrit : > > Thanks Pascal for your answer. > You are right I'm speak

Re: Table cell, vertical alignment with text and Instream

2010-02-18 Thread Pascal Sancho
Readind back your request, you probably want to align the 1st line of each cell of the same row on the same baseline. This is exactly the purpose of the relative-align property, witch unfortunately is not yet supported by FOP. Pascal Pascal Sancho a écrit : > Jean, > If you want to center each gr

RE: Flowing absolute positioned block-containers

2010-02-18 Thread Stuart Scott
Hi Vincent Many thanks for your guidance. I have tried with one surrounding block-container, which looks to be working OK. If I then place that within a table or alongside other non-positioned block-containers it does not work. I will need to test this some more and will come back with my findi