Can't use relative path to fonts metrics file in userconfig.xml (even while using fontBaseDir, baseDir and baseURL parameter)

2004-08-30 Thread s-oualid
Hello, I can't use relative path to my fonts file (xml + ttf). Even if I use the fontBaseDir property in the Configuration fop's object. I need to do that because my app will be deployed on different platform using a single JAR file which contains all the needed fonts stuff (there is not shared

Réf. : Can't use relative path to fonts metrics file in userconfig.xml (even while using fontBaseDir, baseDir and baseURL parameter)

2004-08-30 Thread s-oualid
I resolved it by myself ... If someone is interested by this workaround, here it is : // I just added this line in my static initializer to dinamycally set the font base directory to the directory where my app was started ... Then fop just have to use the relative path setted in the userconfig

Java App using FOP : How to communicate on the number of pages generated ?

2004-08-10 Thread s-oualid
Hi, I am using FOP to generate huge PDF document in a java/swing application. I made a little dialog box which tell the user about the progress of the transformation work (extracting data, serializing XML, first XSL transformation, etc..., and finally FOP). I saw in the FOP logs that he knows

Re: Java App using FOP : How to communicate on the number of pages generated ? (resolved)

2004-08-10 Thread s-oualid
Hi, Thank you, that's exactly what I did... In fact, I thought there was a prettier way to implement this. Something like a PageGenerationListener... But this hack works correctly, here is the code snippets, if someone is interested in a such trivial thing... //

Réf. : OutOfMemoryException

2004-08-10 Thread s-oualid
Just run your app with these parameters : -Xmssizeset initial Java heap size -Xmxsizeset maximum Java heap size Type java -X for detailled help on non-standard options. -- Simon OUALID

Re: Problem with conditionnal page sequences

2004-02-12 Thread s-oualid
Thanks for the address, and excuse me for the bad post ... :o) You're right, the biggest part of the problem was about XSLT. But I needed to remove some static contents on these pages, I used marker inside static content to resolve the problem, don't know if that's a pretty way to resolve this

Questions about memory

2003-07-11 Thread s-oualid
Hi,I work for a french TV Channel (so excuse my english) and we use FOP to generate catalogs of our programs. Until right now, we had no memory problem because we generated catalog of 300~400 pages on a 1Go RAM server.But we hav to generate a big catalog (more than 1 000 pages) and FOP throws a

Réf. : tables

2003-03-18 Thread s-oualid
Wanna put a cell between the North and the South of the world ? :P Just do like Georges, he is good at this. Cheers, Simon Myriam Delperier [EMAIL PROTECTED] 18/03/2003 12:46 Veuillez répondre à fop-user Pour : [EMAIL PROTECTED] cc : Objet : tables hello,

Re: How can I generate a read-only PDF document

2003-03-17 Thread s-oualid
As read in FOP FAQ (http://xml.apache.org/fop/faq.html#PDF-postprocess) : -- 5.4. How do I add security features (encryption, disable printing) to my PDF document?^ FOP does not currently support this feature.

Re: External Graphic border

2003-03-14 Thread s-oualid
That's a well known bug which nobody yet bothered to track down. You are invited. Thanks for the invitation, I hopefully have a light week end (that's pretty rare), so I'll have some time to ruminate the code and try to understand it well ! ;o) Don't count too much on me (I'd hate to disapoint

External Graphic border

2003-03-13 Thread s-oualid
Hello, I am trying to put a 1pt black border around images. I first tried to use the border common attribute on the fo:external-graphic tag, but it doesn't work (on fop 0.20.5rc2). Here is the tag I used : fo:external-graphic border-style=solid border-width=1pt border-color=black Then, I

Réf. : Re: Question about Word character encoding.

2003-03-13 Thread s-oualid
Thanks, I didn't know about that project... I think I'll use my own function to clean our users' input but this project looks like being quite interesting. Anyway, they choose really funny acronyms ! POI stands for Poor Obfuscation Implementation. HDF (Horrible Document Format) HDF is our

RE: Question about Word character encoding.

2003-03-12 Thread s-oualid
I am interested in your MS Word cleaner. Actually, I would like to see it right away if it is possible. Regards, Dennis Myrén Hi Dennis, Here is the function I just coded to resolve my issue with the Word's specific characters (appearing as # in the resulting PDF). As I said, I did'nt

AW: FOP in production app (clienside)

2003-03-12 Thread s-oualid
I agree with Markus. FOP needs so much JARs and rendering PDF take so much ressources that I think it's better to do the transformations server side and then send the result to the client. That is my opinion about using FOP clientside with an applet (for web app, I think the servlet approach

RE: FOP in production app (clienside)

2003-03-12 Thread s-oualid
We had the same needs, generate on-demand big PDF with some images (between 200 and 500 pages), fop is mostly used here by the employees in their usual apps, but there was also a few need for our websites' users. We first have integrated FOP in our front apps using SHELL32.DLL in Visual Basic

Réf. : RE: Question about Word character encoding.

2003-03-12 Thread s-oualid
Many thanks for your answer, and your expertise ! I didn't know about that unused range, it will help me a lot since I just have to focus my attention on it now. Simon Philip Semanchuk [EMAIL PROTECTED] 12/03/2003 15:53 Veuillez répondre à fop-user Pour : [EMAIL PROTECTED]

Question about Word character encoding.

2003-03-11 Thread s-oualid
Hi, I have a little query : I am looking for a table with the hexadecimal code for the MS Word specific characters (eg: ... or the ' character). I am coding a java class that will clean the Word input to avoid FOP to render specific character as #. eg : if (c == 0x85) {

RE: FOP in production app

2003-03-11 Thread s-oualid
Hi ! We are using fop 0.20.5 in client/server app (300 users, calls are synchronised) and in our websites (servlet embedded, synchronised too) running on tomcat 3.23 app server. We only use FOP for generating PDF dynamic catalogs (example here http://www.tatouage.fr/temp/fop_user_example.pdf).

Réf. : Re: page break or paper size ?

2003-03-05 Thread s-oualid
I know my contribution won't help you much but how did you convert a word document to an xsl:fo?? Have a look at http://wh2fo.sourceforge.net ! I think that is what you are looking for. Cheers, Simon - To unsubscribe,

Re: fo:leader weird output

2003-03-04 Thread s-oualid
Well. 1. Which FOP version are you using? I'm using the 0.20.5rc2 version of FOP, since I had some problem with the markers with the last official release 0.20.4, which ere corrected in this candidate. [white-space-collapse=false]. 2. Don't use this. Yep, you're right ! This tag was

Best way to uppercase text

2003-03-04 Thread s-oualid
Hi ! I would like to now your point of view on this subject : I want to use the text-transform=uppercase attribute in a fo:block tag, but I saw in the output console that it was not implemented yet (using 0.20.5rc2), so I am wondering on the best way to implement it with xsl... I thought

Réf. : AW: Best way to uppercase text

2003-03-04 Thread s-oualid
Thanks for your help Helmut. I haven't find better way to do it ! Cheers, Simon Hello Simon You can use the XSLT translate-function to change to upper-case. (See example below) xsl:call-template name=toUpperCase xsl:with-param name=wort select=name/ /xsl:call-template

fo:leader weird output

2003-03-03 Thread s-oualid
Hi ! I am using the fo:leader tag in a Table of Content (with fo:page-number-citation tags). I were working on my stylesheet and everything was working well. But, once I put a fo:block with the break-before=odd-page to write my TOC on a new odd page, the leader was not properly aligned

Re: Table's warning (was More newbie hyphenation and option flag issues ...)

2003-02-21 Thread s-oualid
[WARNING] table-layout=auto is not supported, using fixed! For this one, just use the attribute table-layout of fo:table tags : fo:table table-layout=fixed [WARNING] current implementation of tables requires a table-column for each column, indicating column-width To avoid this one, put a

Réf. : Javadoc for org.apache.fop.apps.*

2003-02-20 Thread s-oualid
Hi !Just download the source distribution of fop. You'll find everything needed here.http://xml.apache.org/dist/fop/http://xml.apache.org/dist/fop/fop-0.20.5rc-src.tar.gzSimon-"Lee, Insoo" [EMAIL PROTECTED] a écrit : -Pour : [EMAIL PROTECTED]De : "Lee, Insoo" [EMAIL PROTECTED]Date :

RE : Transparent background in GIF

2003-02-20 Thread s-oualid
Hi ! I actually use transparent GIF in my generated PDF. It worked nice with fop 0.20.4 and 0.20.5rc2. I think this may be a problem with your image encoding, here is one example of a gif I made to be used with fop. http://www.tatouage.fr/temp/cd_bord_histoire_ancienne_even.gif And here's a

break-before attribute

2003-02-20 Thread s-oualid
Hi, I am trying to use the break-before attribute to put a page break when I test a category changement in the XML. Here is my XSL code : - xsl:template match=FICHE fo:table table-layout=fixed xsl:if

Re: table-row +border

2003-02-20 Thread s-oualid
Is the border stuff not implementd for table-row ? I'm using FOP 0.20.4. I think borders are implemented on cells only. The answer is here : http://xml.apache.org/fop/implemented.html http://xml.apache.org/fop/compliance.html Simon

[repost] break-before attribute and xpath following sibling axis

2003-02-20 Thread s-oualid
I repost this message because I haven't find the solution yet ! This test always return TRUE : xsl:if test=not(string(./SOUSTHEME) = string(following-sibling :: ./SOUSTHEME)) And the old one always return FALSE : xsl:if test=SOUSTHEME != following-sibling :: SOUSTHEME Please someone, any

Re: break-before attribute

2003-02-20 Thread s-oualid
You are right again Oleg, many thanks to you ! I really need to improve my XPath knowledge... I'm really impressed by the power of XSL Transformations. And this feeling grows every day ! ;o) Simon Oleg Tkachenko wrote: Nope, SOUSTHEME != following-sibling::SOUSTHEME is true if and only

Re: break-before attribute

2003-02-20 Thread s-oualid
There is still one question : I do this test in a xsl:template match=FICHE tag, when I call this template, I do a sort : xsl:apply-templates select=FICHE xsl:sort select=SOUSTHEME / /xsl:apply-templates Do this test : xsl:if test=SOUSTHEME != following-sibling :: SOUSTHEME[1]

XPath axis usage with FOP

2003-02-19 Thread s-oualid
Hello ! The marker tag works perfectly with the 0.20.5rc3, that's a pleasure to use it ! It's so powerfull... =) I have another problem with the usage of the precedent-sibling axis, I want to add a break-before=page attribute to a table if the subtag SOUSTHEME of my main tag FICHE is

Réf. : RE: (not so private reply) Variable in Static Content

2003-02-18 Thread s-oualid
Thanks you a lot for the fo:marker tips, that is exactly what I was looking for !I can sleep peacelynow... ;)Simon-"Roland Neilands" [EMAIL PROTECTED] a écrit : -Pour : [EMAIL PROTECTED]De : "Roland Neilands" [EMAIL PROTECTED]Date : 18/02/2003 12:50AMObjet : RE: (not so private reply)

As expected, questions about fo:marker usage

2003-02-18 Thread s-oualid
Hi mates ! That's crazy, I was trying today to implement the fo:marker tag to solve my title problem, running fop-0.20.4, but I had NullPointerException at runtime (see bellow). I was about to write you one of my borring mail ;) but I decided to try with the new 0.20.5rc2 before annoying

RE: As expected, questions about fo:marker usage

2003-02-18 Thread s-oualid
-Roland Neilands [EMAIL PROTECTED] a écrit : - Put the graphic in the marker, ie test happens before assignment, not retrieval Block formatting is applied on assignment, but the graphic must be small enough to fit in the block containing the retrieve (ie use height width) or nothing is

Re: No pictures in PDF

2003-02-17 Thread s-oualid
Hello, I am not running FOP on a Windows server, so maybe my experience will be useless for you... But I had the same problem while givin the full unix path of my images into a servlet, and I remembered that the parameter is a URI, not a URL, so I just putted the file: prefix in my external

Variable and Static Content

2003-02-17 Thread s-oualid
Hello, I have a little problem using variable in a static content... I have a border on even pages of my document where I wanna draw the title of the current category. So I putted a static content with a test on the $THEME variable, which will select the right image for the current category.

Variable in Static Content (forgot)

2003-02-17 Thread s-oualid
I forgot, here's an example of my PDF output, it would be easier for you to understand my problem, my english is so bad ! :) The title I was speaking about in my previous message is HISTOIRE CONTEMPORAINE on the second page. http://www.tatouage.fr/temp/fop_user_example.pdf Simon OUALID Arte

Odd or Even in the xsl-region-body

2003-02-17 Thread s-oualid
Hi, I would like to know if it's possible to test the odd or even condition while writing in non-static content. Here's an example of what I want to do : fo:block font-size=13pt border-style=solid border-width=0pt font-family=Helvetica Black

Re: Odd or Even in the xsl-region-body

2003-02-17 Thread s-oualid
Thanks you for your answer mate ! I am so nervous on this project (because that's a totally new approach for me, I was working with VPE's DLL of ideal software before I managed to convince people here to use XSL:FO), that I am really happy to get some help even if it doesn't really solve my

Re: (private reply) Variable in Static Content (forgot)

2003-02-17 Thread s-oualid
Thanks you for your answer ! And many thanks for the english lesson, I really need it, excuse my poor grammar... But I think the usage of wanna was right in my sentence (I wanna draw the title ...), isn't it ? Anyway, that's not the question, thanks you for having a look on my problem, I'll

Réf. : Re: (private reply) Variable in Static Content (forgot)

2003-02-17 Thread s-oualid
Ooops... Sorry, that's public finally ! I really need to sleep! ;)Zz[EMAIL PROTECTED] a écrit : -Pour : [EMAIL PROTECTED]De : [EMAIL PROTECTED]Date : 18/02/2003 12:24AMObjet : Re: (private reply) Variable in Static Content (forgot)Thanks you for your answer !And many thanks for the english

How to detect page breaks ?

2003-02-14 Thread s-oualid
Hello ! I have a little problem to detect page breaks using xsl:fo... My english is bad so I putted you here an example of my problem here, I think it will be easier for you to understand me with it : http://www.tatouage.fr/temp/CtrlXML.pdf [132ko file] Here's my problem : I need to put the

Réf. : rtf to xml

2003-02-13 Thread s-oualid
What's your goal ? Exporting some data you have in RTF or PDF files ? That's a weird need, but you can do that by coding a custom SAX parser. I already saw that on the book JAVA with XSLT (O'REILLY) with a CSV to XML converter example that use SAX (Simple API for XML). I just found a similar

Writing top to bottom and controlling page break

2003-02-13 Thread s-oualid
Hello, I need to write some text from the top to the bottom of the page to make a border... like that : E X A M P L E I wanted to use the writing-mode properties (Values: lr-tb | rl-tb | tb-rl | lr | rl | tb | inherit) but I saw it was not implemented in the FOP API yet. I finally managed to

The best way to control page break.

2003-02-12 Thread s-oualid
Hi mates, I'm now using FOP for 2 months, we really appreciate this way to automatically generate our catalogs here. I have to work those days on a new XSL:FO layout that must manage fine page break system. Is there a better way for handling that than using the XSL string-length() and sum()