RE : Contributing to FOP (Re: representative example needed)
Hi all, I was looking for a good example as well those pdf are impressive. I was wondering if the .fo and .xml regarding those examples have been posted somewhere? I looked into the bug database and haven`t found them are they available? Thanks for your help!! /David -Message d'origine- De : Dennis Myrén [mailto:[EMAIL PROTECTED] Envoyé : February 9, 2005 03:48 À : [EMAIL PROTECTED] Objet : RE: Contributing to FOP (Re: representative example needed) >Unfortunately, I get an error when I try to view those links: >HTTP Error 403.6 - Forbidden: IP address of the client has been rejected. >Internet Information Services (IIS) That was really awkward, and not what I intended. The URL’s should work by now. Sorry about that. Here they are again: http://dev.oslokb.no:8080/dennis/Sample1.pdf http://dev.oslokb.no:8080/dennis/Sample2.pdf http://dev.oslokb.no:8080/dennis/Sample3.pdf >BTW I have a couple of questions: >- if we like what we see (I get an error--see below), can we post this example PDF? >- if we like what we see (I get an error--see below), can we post the input files (XSL-FO, XML, XSLT, etc.)? Of course you are free to do that. >Perhaps after you've participated in the FOP community for some time, and your name becomes familiar to us (and hopefully >made some contributions to the code! :-p) you may be invited to become a committer for Apache FOP! I will do my best to get there! Maybe I could implement support for CMYK and Spot colors to get started, if this is of interest to you. Would’nt this be cool?: Hello FOP Regards, Dennis JD Myrén Developer Oslo Kodebureau Tel: (+47) 98 00 11 92 Mail: [EMAIL PROTECTED] Web: www.oslokb.no From: The Web Maestro [mailto:[EMAIL PROTECTED] Sent: 8. februar 2005 17:18 To: [EMAIL PROTECTED] Subject: Contributing to FOP (Re: representative example needed) Dennis, On Feb 8, 2005, at 7:54 AM, Dennis Myrén wrote: I should say a few words as well. I work as a computer programmer for a small software firm. We have thought for a long time that it is time to give something back to FOP, in form of development contribution. I have been programming PDF components for a long time and know the PDF file format, as well as XSL-FO. Therefore, i think i might be able to help out. However, we havent really taken the time for that. Now i think we can do that, so i hereby also let you know that i am interested in starting to contribute. Thanks for the kind words, and we look forward to receiving PATCHes from you. Here's a link to help you get started. http://xml.apache.org/fop/dev/#patches 3 examples of documents that we have generated(targeting mass printing for broschure production) you can find here: http://dev.oslokb.no:8080/dennis/Sample1.pdf http://dev.oslokb.no:8080/dennis/Sample2.pdf http://dev.oslokb.no:8080/dennis/Sample3.pdf BTW I have a couple of questions: - if we like what we see (I get an error--see below), can we post this example PDF? - if we like what we see (I get an error--see below), can we post the input files (XSL-FO, XML, XSLT, etc.)? Unfortunately, I get an error when I try to view those links: HTTP Error 403.6 - Forbidden: IP address of the client has been rejected. Internet Information Services (IIS) Perhaps after you've participated in the FOP community for some time, and your name becomes familiar to us (and hopefully made some contributions to the code! :-p) you may be invited to become a committer for Apache FOP! Cheers! Web Maestro Clay -- <[EMAIL PROTECTED]> - My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet
RE: Out of Memory problem
Manoj_Nair wrote: > I think someone asked this question ( inadvertently deleted > that email) But how do we programmatically increase the > memory size for FOP Java VM? AFAIK, it must be done from the command-line. I don't know of a way to do this from within a Java program. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Out of Memory problem
I think someone asked this question ( inadvertently deleted that email) But how do we programmatically increase the memory size for FOP Java VM? Thanks Manoj Chris Bowditch <[EMAIL PROTECTED]To: [EMAIL PROTECTED] otmail.com> cc: Subject: Re: Out of Memory problem 02/24/2005 01:25 AM Please respond to fop-user Manisha Sathe wrote: > I am trying for one Chinese PDF. When i do not make use of Arial Unicode > MS font then i do not get this error. All chinese characters are > displayed as #. Once i use this font then i get this error (even if it > is just 2-3 pages long - sometimes at very beginning i get the 1 page > report - after that even not that) > > I tried the the things mentined such as reduce the size of image, page > sequence (do not know how to increase the JVM memory on fly) - also > reset the Cache etc what ever given in docs, but still same. To increase JVM memory, just change your FOP.bat or whatever script starts your Java VM and specify command line parameter -Xmx256M. The default is 64Mb, which isnt sufficient due to the large number of glyphs in The Arial Unicode font. Chris - 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]
RE: N xml, 1 PDF
Yes it is possible One way to do it is to create an XML file containing nodes corresponding to your differents XML files. >From the XSL-FO generating your PDF, parse each node and load the corresponding file to the node using "document()". That's just my two cents and I dunno if there's a better way to do it but this works ;) Jack -Message d'origine- De : Tommaso Taglioni [mailto:[EMAIL PROTECTED] Envoyé : jeu. 24 février 2005 15:29 À : [EMAIL PROTECTED] Objet : N xml, 1 PDF Hi all, I have some XML file and I have to make only one PDF of them. I have also a configuration file that have the order and the names of the XML. The structure of the configuration file is like this: . . . . I have to bypass all concerns to SCORM and video, because obviously I don't need in the PDF. Is this all possible using FOP?How? Tommaso - 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]
Re: N xml, 1 PDF
That's an XSLT question rather than an XSL-FO question. XSLT can solve this problem with the document function, thus: Use a for-each to read each document spec in the configuration file. For each doc spec, read the referenced document and copy it to the result tree. Something like this (assuming you want the XML file specified by the Document element): If you want all three XML files in each Lesson element: I was going to say I hadn't tested it, but I took the time (not much - it has taken me longer to write this message) to write and test (with Saxon 8) a small set of files that illustrate the technique: Configuration file (conffile.xml): file1.xml: A B C file2.xml D E F XSL file: http://www.w3.org/1999/XSL/Transform";> The result (with some formatting for readibility): A B C D E F A couple things to note: I put in the attributes just to make sure that attributes would be copied correctly. Obviously, they are redundant and useless for any real purpose. The important note is how I handled the element in each source file. Had I not written a literal result element () around the for-each and had I used , I would have wound up with a file like this: Since only one element can be present at the root level of an XML file, that would be a bad result. I do similar things all the time, usually to interweave elements from two different documents or to compare documents. HTH Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) "Tommaso Taglioni" <[EMAIL PROTECTED]> 02/24/2005 08:29 AM Please respond to [EMAIL PROTECTED] To <[EMAIL PROTECTED]> cc Subject N xml, 1 PDF Hi all, I have some XML file and I have to make only one PDF of them. I have also a configuration file that have the order and the names of the XML. The structure of the configuration file is like this: . . . . I have to bypass all concerns to SCORM and video, because obviously I don't need in the PDF. Is this all possible using FOP?How? Tommaso - 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]
RE: xslt library
You can follow that: www.exslt.org Pascal > -Message d'origine- > De : Peter Menzel [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 24 février 2005 13:55 > > I am looking for some kind of XSLT Library, which provides a > set of standard components (HTML) for web applications, e.g. > menus, form stuff, ... > Substantially I would like to have somtething like Java > Server Faces, but in XSLT. > > Does anybody know some project providing such thing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: N xml, 1 PDF
Hi, This seems to be a more specific XSLT question. You can do that (you will complete the code as you want): relative_or_absolute_path_from_this_xsl_to_new_xml ... Pascal > -Message d'origine- > De : Tommaso Taglioni [mailto:[EMAIL PROTECTED] > > I have some XML file and I have to make only one PDF of them. > > I have also a configuration file that have the order and the > names of the XML. > > The structure of the configuration file is like this: > > > > > > > > > > > > > > > > > > > > > > > > . > > . > > . > > . > > > > > > > > > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Out of Memory problem
Can we set the memory programmaticaly? Thanks Rohit Chris Bowditch <[EMAIL PROTECTED] To: [EMAIL PROTECTED] otmail.com> cc: Subject: Re: Out of Memory problem 02/24/2005 04:25 AM Please respond to fop-user Manisha Sathe wrote: > I am trying for one Chinese PDF. When i do not make use of Arial Unicode > MS font then i do not get this error. All chinese characters are > displayed as #. Once i use this font then i get this error (even if it > is just 2-3 pages long - sometimes at very beginning i get the 1 page > report - after that even not that) > > I tried the the things mentined such as reduce the size of image, page > sequence (do not know how to increase the JVM memory on fly) - also > reset the Cache etc what ever given in docs, but still same. To increase JVM memory, just change your FOP.bat or whatever script starts your Java VM and specify command line parameter -Xmx256M. The default is 64Mb, which isnt sufficient due to the large number of glyphs in The Arial Unicode font. Chris - 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]
N xml, 1 PDF
Hi all, I have some XML file and I have to make only one PDF of them. I have also a configuration file that have the order and the names of the XML. The structure of the configuration file is like this: . . . . I have to bypass all concerns to SCORM and video, because obviously I don't need in the PDF. Is this all possible using FOP?How? Tommaso - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cell borders - headache
You might check the border-collapse attribute to control overlapping of borders. Rainer [...] What I've got is a table with 20 rows and 10 columns. Every second row has a background of grey, so the rows alternate between grey and nothing (white). Thats all fine. The problem is that I want to have a border down each of the columns and around the whole table itself. I've tried the following: 1. specifying the border on the table-column, however on those cells where I specify background-color="silver", the background seems to overwrite the border. So the border goes behind the background of the cell. 2. specifying the border on each individual cell. So in this case I specified the border-right attribute of each table-cell, and the problem there is that the right-border of one cell doesnt touch the right-border of the cell below it. There seems to be a gap equal to the width of the border itself at the top and bottom of the right-border. So I get a table similar to what I want (alternating rows of grey and white with column borders), however the column borders arent continuous. If I dont have background colours though its totally fine! But this is an important requirement unfortunately :( [...] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cell borders - headache
Hello Can you send some snippet of code of your problem? Do you have tables into the cells? Jack -Message d'origine- De : Robert Durant [mailto:[EMAIL PROTECTED] Envoyé : jeu. 24 février 2005 12:25 À : [EMAIL PROTECTED] Objet : Cell borders - headache Hi, I've been working on this one problem for about a day now and I cant seem to crack it so I thought I would ask here. What I've got is a table with 20 rows and 10 columns. Every second row has a background of grey, so the rows alternate between grey and nothing (white). Thats all fine. The problem is that I want to have a border down each of the columns and around the whole table itself. I've tried the following: 1. specifying the border on the table-column, however on those cells where I specify background-color="silver", the background seems to overwrite the border. So the border goes behind the background of the cell. 2. specifying the border on each individual cell. So in this case I specified the border-right attribute of each table-cell, and the problem there is that the right-border of one cell doesnt touch the right-border of the cell below it. There seems to be a gap equal to the width of the border itself at the top and bottom of the right-border. So I get a table similar to what I want (alternating rows of grey and white with column borders), however the column borders arent continuous. If I dont have background colours though its totally fine! But this is an important requirement unfortunately :( Does anyone at all know a solution to this problem? Im really lost. If you need a screen capture I can make one. Thanks in advance! Robert - 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]
xslt library
Hallo XSLT-experts, I am looking for some kind of XSLT Library, which provides a set of standard components (HTML) for web applications, e.g. menus, form stuff, ... Substantially I would like to have somtething like Java Server Faces, but in XSLT. Does anybody know some project providing such thing? Kind regards, Peter Menzel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cell borders - headache
Hi, I've been working on this one problem for about a day now and I cant seem to crack it so I thought I would ask here. What I've got is a table with 20 rows and 10 columns. Every second row has a background of grey, so the rows alternate between grey and nothing (white). Thats all fine. The problem is that I want to have a border down each of the columns and around the whole table itself. I've tried the following: 1. specifying the border on the table-column, however on those cells where I specify background-color="silver", the background seems to overwrite the border. So the border goes behind the background of the cell. 2. specifying the border on each individual cell. So in this case I specified the border-right attribute of each table-cell, and the problem there is that the right-border of one cell doesnt touch the right-border of the cell below it. There seems to be a gap equal to the width of the border itself at the top and bottom of the right-border. So I get a table similar to what I want (alternating rows of grey and white with column borders), however the column borders arent continuous. If I dont have background colours though its totally fine! But this is an important requirement unfortunately :( Does anyone at all know a solution to this problem? Im really lost. If you need a screen capture I can make one. Thanks in advance! Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP 0.20.5 AWTRenderer: Sometimes rendering fails in the middle of a table with no error message
Hi, My french team and I work on a Java project and we plan to embed FOP 0.20.5 for the needed print reports. We experience a problem when we are using the AWT renderer with documents that contain tables. Sometimes, a page is "cut" in the middle of a table and its header (fo:region-before) is missing. As far as we have investigated we can say that: * We have neither abnormal output message, nor exception stack trace. * We only experience this problem with the AWT renderer. Using the PCL renderer works fine (but it lacks multibyte characters support that is critical for some of our translated releases). * We only experience this problem on a true printer (we have tried several models from HP and OKI). We never reproduced the problem using a fake printer such as Adobe Acrobat Distiller. * With the FO document (bug.fo) that is attached, we experience the problem 20% of the time when launching the printing from our application (we tried both java.awt.print and javax.print APIs). When using the `fop.bat' script, we experience the problem 100% of the time with the same FO document. fop.bat -fo bug.fo -print We tried JDK 1.4.1_07 and 1.4.2_07. * So far, 100% of the time it happened, tables were involved in the document. * Using the same FO document and the same FOP command line several times may result in having the bug occuring on different pages of the document. The printing does not fail systematically at the same point of the document. I have attached: bug.fo.zip The reference FO document we have used to investigate this problem (zipped). If the attachment does not work (I don't know, it is the very first time I post to this mailing list), you can download it at http://www.guillaumeponce.org/fop/bug.fo.zip You can also download http://www.guillaumeponce.org/fop/bug.pdf I have not attached it because it is 12 Mb. It is an actual 8 pages long paper print that has been scanned. You can see that the problem I describe occured on page 7 out of 8. Sorry for any language mistake in this message, I am French. Best regards. -- Guillaume Ponce http://www.guillaumeponce.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Out of Memory problem
Manisha Sathe wrote: I am trying for one Chinese PDF. When i do not make use of Arial Unicode MS font then i do not get this error. All chinese characters are displayed as #. Once i use this font then i get this error (even if it is just 2-3 pages long - sometimes at very beginning i get the 1 page report - after that even not that) I tried the the things mentined such as reduce the size of image, page sequence (do not know how to increase the JVM memory on fly) - also reset the Cache etc what ever given in docs, but still same. To increase JVM memory, just change your FOP.bat or whatever script starts your Java VM and specify command line parameter -Xmx256M. The default is 64Mb, which isnt sufficient due to the large number of glyphs in The Arial Unicode font. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Out of Memory problem
I am trying for one Chinese PDF. When i do not make use of Arial Unicode MS font then i do not get this error. All chinese characters are displayed as #. Once i use this font then i get this error (even if it is just 2-3 pages long - sometimes at very beginning i get the 1 page report - after that even not that) I tried the the things mentined such as reduce the size of image, page sequence (do not know how to increase the JVM memory on fly) - also reset the Cache etc what ever given in docs, but still same. The report is all full with chinese characters. On logger i do not see anything but on jsp page i get java lang out of memory error. Is there any thing else which i can do here ? regards Manisha __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Blank Pages between Page Sequences.
Puppala, Kumar (LNG-DAY) wrote: Does anyone know if there is a way to get the correct behavior in Case 1. I have tested this using AntennaHouse and found similar results. I am not sure if this is a bug in both Apache and AntennaHouse (0R) if it is the desired behavior. Any input is greatly appreciated. This is a FAQ. See: http://xml.apache.org/fop/faq.html#blank-page-between-page-sequences Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]