xsl:fo & word
Hello to all! i'm trying to convert a large ms word 2000 file to xsl:fo. Are there any converters available? I don't want to type everything again, and i also want to keep the existing text format. Has anybody done this before ??? Thanks a lot. Cheers Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fo:table-cell and wrap option
Hello ! when i use a fo:table cell with wrap-option="no-wrap", how can i stop that the text is expanding over the table cell's border? Thanks a lot. Cheers Mirko Sertic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: fo:external graphics and memory usage
Good tip. Thanks to all ! -Ursprungliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 15. Mai 2003 09:45 An: [EMAIL PROTECTED] Betreff: Re: fo:external graphics and memory usage Yes, the images are indeed cached in FopImageFactory and you can call org.apache.fop.image.FopImageFactory.resetCache() to empty the cache. On 15.05.2003 09:18:33 Mirko Sertic wrote: > I have a little question about fo:external-graphic and memory usage. > I think this question was answered before, but i did'nt find the right > thread :-(. > > Are images that were used in fo:external-graphic cached, and if , where ? > And how do i reset this cache ? I'm using 0.20.5rc2. > > I ask this question because my jvm ( sun, win2k ) heap size grows and grows > till i's sudden out-of-memory-death. Because we are using CORBA, i thought > about orb object references that where not corretly cleaned, but analysis > with jprofiler says that there are none, except that the heap seems not to > be cleaned up. > > What am i doing wrong ? Jeremias Maerki - 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]
fo:external graphics and memory usage
Hello! I have a little question about fo:external-graphic and memory usage. I think this question was answered before, but i did'nt find the right thread :-(. Are images that were used in fo:external-graphic cached, and if , where ? And how do i reset this cache ? I'm using 0.20.5rc2. I ask this question because my jvm ( sun, win2k ) heap size grows and grows till i's sudden out-of-memory-death. Because we are using CORBA, i thought about orb object references that where not corretly cleaned, but analysis with jprofiler says that there are none, except that the heap seems not to be cleaned up. What am i doing wrong ? Thanks a lot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: DTMException ?
Thanks a lot. I put the current xalan and xerces releases in my lib/endorsed dir and now it works very well. good tip! -Ursprungliche Nachricht- Von: J.Pietschmann [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. Mai 2003 23:48 An: [EMAIL PROTECTED] Betreff: Re: DTMException ? Jeremias Maerki wrote: > You've got to go to the Xalan guys with this. This has nothing to do > with FOP. It's a characteristic problem with the Xalan distributed with one of the 1.4 JDKs. J.Pietschmann - 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]
DTMException ?
Hello! I'm getting the following exception when transforming a really large document. What does the exception mean ( no more DTM-ID's available ) ? . How can i prevent this ? [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser javax.xml.transform.TransformerException: org.apache.xml.dtm.DTMException: Keine weiteren DTM-IDs verf³gbar at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown So urce) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source ) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source ) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source ) at de.dtmgmbh.system.fop.CommandLine.execute(Unknown Source) at de.dtmgmbh.system.fop.CommandLine.main(Unknown Source) Caused by: org.apache.xml.dtm.DTMException: Keine weiteren DTM-IDs verf³gbar at org.apache.xml.dtm.ref.DTMManagerDefault.getFirstFreeDTMID(Unknown So urce) at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(Unknown Source) at org.apache.xpath.XPathContext.getDTM(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transformToRTF(Unknown S ource) at org.apache.xalan.templates.ElemWithParam.getValue(Unknown Source) at org.apache.xalan.templates.ElemCallTemplate.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Un ... Thanks a lot for your help. Cheers Mirko Sertic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: accessing attributes in xml
Sorry, i mean -of select="[EMAIL PROTECTED] = 'SALES']"/> Cheers Mirko -Ursprüngliche Nachricht-Von: Mirko Sertic [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 2003 15:06An: [EMAIL PROTECTED]; [EMAIL PROTECTED]Betreff: AW: accessing attributes in xml I'd guess Hope this helps Cheers Mirko -Ursprüngliche Nachricht-Von: Torsten Erler [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 2003 15:03An: Fop-User (E-mail)Betreff: accessing attributes in xml Hi all, I've an xml like: ... Hans Friedrich Mueller Now I've to check inside the xsl this: Can anyone help me how to check the value for the tag where the attribute is 'SALES' and how to access this value. ThanX in Advance cu Torsten
AW: accessing attributes in xml
I'd guess Hope this helps Cheers Mirko -Ursprüngliche Nachricht-Von: Torsten Erler [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 2003 15:03An: Fop-User (E-mail)Betreff: accessing attributes in xml Hi all, I've an xml like: ... Hans Friedrich Mueller Now I've to check inside the xsl this: Can anyone help me how to check the value for the tag where the attribute is 'SALES' and how to access this value. ThanX in Advance cu Torsten
AW: Upgrade 0.20.3 to 0.20.5rc
I think you have avalon-framework-4.0 in your classpath. This file has changed. It is now called avalon-framework-cvs... and was part of my source distribution. Serach for such a file and change the classpath. This should fix your problem. Cheers Mirko Sertic -Ursprüngliche Nachricht- Von: Dipl.-Oec. Harald Meyer [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. März 2003 13:20 An: [EMAIL PROTECTED] Betreff: Upgrade 0.20.3 to 0.20.5rc Hello everybody, as I get a "/ by zero" error under FOP 0.20.3 I want to upgrade to 0.20.5rc. Unfortunately now I get a different error: C:\fop\fop-0.20.5rc>java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\ava lon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -xml C:\Inetpub\honeywell\quotation\xml\200443.xml -d -xsl C:\Inetpub\honeywell\quotation\xml2pdf.xsl C:\Inetpub\honeywell\quotation\pdf\200443.pdf Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger at org.apache.fop.apps.Fop.main(Fop.java:16) Has someone experienced something similar? By the way ... the "/ by zero" error was already posted in January, but I didn't find any solution for it. Has anyone some hints for me? ;-) Thanks Harald - 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]
AW: [ANNOUNCEMENT] OKI dot-matrix renderer available for download
Thanks! Mirko -Ursprungliche Nachricht- Von: Victor Mote [mailto:[EMAIL PROTECTED] Gesendet: Montag, 17. Marz 2003 18:15 An: [EMAIL PROTECTED] Betreff: RE: [ANNOUNCEMENT] OKI dot-matrix renderer available for download I have just added an entry to the "Related/Useful Products" section of the "resources" page for the Mogwai project: http://xml.apache.org/fop/resources.html The change should appear the next time the web site is updated. Victor Mote > -Original Message----- > From: Mirko Sertic [mailto:[EMAIL PROTECTED] > Sent: Monday, March 17, 2003 4:41 AM > To: [EMAIL PROTECTED] > Subject: AW: [ANNOUNCEMENT] OKI dot-matrix renderer available for > download > > > Hi! > > Yes, a third - party page with links would be cool ! > By the way, i forgot to make a link to the fop page on our site. > This will be done soon. > > Cheers > > Mirko > > -Ursprungliche Nachricht- > Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 17. Marz 2003 11:59 > An: [EMAIL PROTECTED] > Betreff: Re: [ANNOUNCEMENT] OKI dot-matrix renderer available for > download > > > Mirko Sertic wrote: > > > Finally, it has been done : our renderer to generate output for oki dot > > matrix printers is gone open source as part of the mogwai project on > > sourceforge.net. The current release can be downloaded at > > http://mogwai.sourceforge.net . > Good news, Mirko! > I believe it's worth to create another page on the FOP site about third > party > FOP plugins/renderers etc. > > -- > Oleg Tkachenko > Multiconn Technologies, Israel > > > - > 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] > > - 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]
AW: [ANNOUNCEMENT] OKI dot-matrix renderer available for download
Hi! Yes, a third - party page with links would be cool ! By the way, i forgot to make a link to the fop page on our site. This will be done soon. Cheers Mirko -Ursprungliche Nachricht- Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Gesendet: Montag, 17. Marz 2003 11:59 An: [EMAIL PROTECTED] Betreff: Re: [ANNOUNCEMENT] OKI dot-matrix renderer available for download Mirko Sertic wrote: > Finally, it has been done : our renderer to generate output for oki dot > matrix printers is gone open source as part of the mogwai project on > sourceforge.net. The current release can be downloaded at > http://mogwai.sourceforge.net . Good news, Mirko! I believe it's worth to create another page on the FOP site about third party FOP plugins/renderers etc. -- Oleg Tkachenko Multiconn Technologies, Israel - 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]
[ANNOUNCEMENT] OKI dot-matrix renderer available for download
Hello fop users ! Finally, it has been done : our renderer to generate output for oki dot matrix printers is gone open source as part of the mogwai project on sourceforge.net. The current release can be downloaded at http://mogwai.sourceforge.net . This renderer generates escape sequences which can be directly send to the matrix printer. Thus, the data is not printed pixel-per-pixel like printing with acrobat. The printing process is really speeded up. The release 0.1 has the following limitations : 1. No graphics and no svg is supported. 2. There are only two font sizes ( normal and double-height, double-width ) 3. Only horizontal lines are supported. Vertical lines are cut away. This renderer has been used in production environment, and it fits our needs very well. The few limitations are no real problem, because the printing is done on pre-printed business paper, so there is no need for lines and the artwork. Making this renderer available is our way to say "thank you" to the community. All the developers of the fop team have done a real great work. Thanks a lot. I hope that this renderer is also usefull for other people. If there are any problems, don't hesitate to contact me. Happy coding! Mirko Sertic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Detect page break in fo:flow
Hello! Yes, i need a partial sum. How would this be done using markers ? Is there an example available ? Thanks a lot Mirko -Ursprungliche Nachricht- Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. Februar 2003 10:55 An: [EMAIL PROTECTED] Betreff: Re: Detect page break in fo:flow Mirko Sertic wrote: > i need to detect a page break when i generate the fo:flow area of my > document. > How can this be done? No way unless you force page break yourself. > The background is that i need to generate a counting sum on the top of my > page. Are you talking about partial sum? It's quite complicated, but feasible using markers. -- Oleg Tkachenko Multiconn Technologies, Israel - 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]
Detect page break in fo:flow
Hello folks! i need to detect a page break when i generate the fo:flow area of my document. How can this be done? The background is that i need to generate a counting sum on the top of my page. Please help! Cheers Mirko Sertic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: PS & PostScript
Hello! that sounds not so good. Given the following requirements : 1. i need to produce an invoice or order using fop. 2. i need to specify the tray to which each page is printed out. 3. i want to support non ps-able printer. 4. i need a pdf file for our archive system. How could this be done? My first thought was to run a post-process after fop. It thould take the pdf result, split it using a given definition using itext and finally send it to a network printer hosted by our linux host. But that sounds really strange and is far to complex, not to think about its robustness. It also would result a really huge printcap file, due to the different initial sequences for each pager tray on each printer. Another idea is to extend the pdf renderer that it can produce ps pass thru paper tray selection code. The definition what should be printed where and how would be stored somewhere in my source data and would be adressed using xpath and a page-sequence extension. The final result should be converted to ps using pdf2ps and be send to a printer using ghostscript ( some newsgroups entries says that tray selection is supported in gs 6.x, but i really do not know ). I really want to do it this way. We could define the tray configuration in our source data and we do not neet to run a ugly post process. If i understand the source code right , the point i would need to hack is the renderPage method. Everything else would be left fine as it is. What do you think ?? Cheers Mirko -Ursprungliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 29. Januar 2003 14:13 An: [EMAIL PROTECTED] Betreff: Re: PS & PostScript On 29.01.2003 12:59:59 Mirko Sertic wrote: > Is there any way to generate "PS pass thru" via pdfmark using the > PDF-renderer? No. > Can i do this using the PS renderer? Also no. > I need a way to specify the paper input > and > output tray for each rendered page. Has anybody done this before ? Now, you're getting a yes. :-) I've done this. I've produced PDF converted it to PostScript using Acrobat Reader 4.05 on Unix (Linux and Solaris). The generated PostScript can be easily parsed because it follows the DSC conventions (Document Structuring Conventions, Specs at Adobe in the PostScript section). I've then patched the PostScript file with the necessary instructions for the target printer. There's one problem, though: There's currently no way to get information through which page was rendered with which page-master to get the input trays right. I ended up having XPath statements in the configuration of that system I was working on that evaluated the input XML file and generated information for the PostScript patcher to output the correct instructions for each page. Quite some work. But it's doable. The clean way, obviously, would be to extend the PostScript renderer to support PPD files which contain the instructions for selecting paper bins and the like. For that to work as expected we will need a FOP extension on the simple-page-master where we can specify the paper bins to be used because that lies outside of the XSL-FO standard. A simpler solution is to add a callback to FOP that sends you notifications of the page-master each page was layouted with. But that's just to get information on which page is on which page-master. You'll still have to do the PostScript patching. All this is on the todo list, but nobody's had the time or the need and it's probably better done in the redesign than in the maintenance branch. > And if it works, > will ghostscript understand that correctly and work even with a non PS-able > printer? GhostScript, to my knowledge, doesn't interpret paper bin etc. instructions. Another things that you can try is to create EPS files containing the bin selection code. I doubt very much that this will work, though. Good luck. Jeremias Maerki - 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]
PS & PostScript
Hello everybody! I need help. Is there any way to generate "PS pass thru" via pdfmark using the PDF-renderer? Can i do this using the PS renderer? I need a way to specify the paper input and output tray for each rendered page. Has anybody done this before ? And if it works, will ghostscript understand that correctly and work even with a non PS-able printer? Thanks a lot. Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: PDF & Printing
Ok, ok, youre right. But one of our goals is not to use the acrobat. We want to print directly from our application. Isn't there any open source java pdf printing api available -Ursprüngliche Nachricht- Von: Müller, Markus [mailto:[EMAIL PROTECTED] Gesendet: Montag, 20. Januar 2003 11:22 An: [EMAIL PROTECTED] Betreff: AW: AW: PDF & Printing On my RedHat AcrobatReader runs pretty good! # -Ursprüngliche Nachricht- # Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED] # Gesendet am: Montag, 20. Januar 2003 11:22 # An: [EMAIL PROTECTED] # Betreff: Re: AW: PDF & Printing # # Mirko Sertic wrote: # # > It should work on my linux server. # Does Acrobat for linux exist? # # -- # Oleg Tkachenko # eXperanto team # Multiconn Technologies, Israel # # # - # 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: PDF & Printing
Hello! It should work on my linux server. -Ursprüngliche Nachricht- Von: Müller, Markus [mailto:[EMAIL PROTECTED] Gesendet: Montag, 20. Januar 2003 10:45 An: [EMAIL PROTECTED] Betreff: AW: PDF & Printing Why not using AcrobatReader with the commandline option for printing? Markus # -Ursprüngliche Nachricht- # Von: Mirko Sertic [mailto:[EMAIL PROTECTED] # Gesendet am: Montag, 20. Januar 2003 10:43 # An: Fop-User # Betreff: PDF & Printing # # Hello Folks! # # I'm trying to print a generated pdf. I knew i could use the # PrintRenderer # from the PrintStarter class. # The only problem is that my pdf is not fopped in real - time. It was # generated some time ago and was # stored in out application pdf database for later use. So the # problem is how # can i print that pdf? # # Cheers # # Mirko Sertic # # # # - # 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PDF & Printing
Hello Folks! I'm trying to print a generated pdf. I knew i could use the PrintRenderer from the PrintStarter class. The only problem is that my pdf is not fopped in real - time. It was generated some time ago and was stored in out application pdf database for later use. So the problem is how can i print that pdf? Cheers Mirko Sertic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: FOP performance - frustrating.. help!!
Hi Folks! I think that java is not the problem. Sure, it has some problems with mass data computation, but it's the same than with every programming language : if your code is sh*t, your program will run slow. I don't want to blame fop as sh*it. Please don't misunderstand me. My thought is that the resulting slow fop translation depends on an unoptimized stylesheet, and also processor speed and system power. We are running fop on our JDK1.4.1 1.7 GB P4 512MB and the result is very satisfying. If i can believe the fop statistics, generating a simple list as described takes about 90ms per page, so ca. 10 pages per second with 80 rows per page. So the report should be ready in about 1,2 seconds The difference between 1,2 seconds and 5 minutes can result in slow CPU speed or an improper stylesheet. A word to the fop team : Fop is great. It's superb. Sure, some things needs to be implemented, but its a great tool for xsl-fo computation. Keep on the good work!! Cheers Mirko -Ursprungliche Nachricht- Von: Robert C. Leif [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 28. Dezember 2002 08:19 An: [EMAIL PROTECTED] Betreff: RE: FOP performance - frustrating.. help!! From: Bob Leif To: Lee Insoo A good deal of your problems comes from the selection of Java as the programming language. Java is a tremendous marketing success. Unfortunately, Java was obsolete the day it was created. Although Java is owned by SUN, it has been the second finest gift to Microsoft. It has their competitors using a flawed tool. The finest gift was when IBM told its customers that OS/2 would run best on Microchannel hardware. The best language for web tools is Ada, which is ISO/IEC standard 8652:1995(E). It is what Java claimed to be, portable. Ada includes generics (templates) which work; enumerated types; and, whenever possible, dispatches at compile time. Ada is like XML in that it has range checking and begin and end structures. There is an excellent GNU Ada compiler (GNAT) available at ftp://ftp.cs.nyu.edu/pub/gnat/ On a 1.4 gigaHz Pentium, the time for a GNAT compile and link is minimal. The error-messages are excellent. http://www.adaic.org/ is a source of useful information on Ada. -Original Message- From: Lee, Insoo [mailto:[EMAIL PROTECTED] Sent: Friday, December 27, 2002 12:30 PM To: '[EMAIL PROTECTED]' Subject: FOP performance - frustrating.. help!! Hello, I'm getting a little frustrated with FOP performance. We are generating an XML on the fly that contains a few tables with about 1,000 rows in total. We passdown this XML along with XSL to the transformer to generate PDF from our servlet. (transformer.transform( inXML, new SAXResult( driver.getContentHandler())); ) It works well, but it works slow. It takes about 5 minutes for 1,000 rows and this is only for transformer translation (excluing any data query time or jdom XML building time) I read through past emails/FAQs and I think I tried them all and it still does not improve the performance... Please help!! Here is what I have done. 1) run with more memory - yes I tried with 512MB (I don't get OutOfMemory error) 2) run in separate VM - only helps other requests coming to the site 3) try with the latest FOP - I did - mine is fop-0.20.4 4) try with the latest xalan.jar and xerces.jar - tried them, but no improvement 5) cache XSL style sheet - didn't really help... 6) use multiple page-sequence - got it to work and I don't get OutOfMemeory exception, but still performance didn't get better. (even if I break them into multiple page-sequences, I will still have to read through one row at a time, right? - that's why performance is not really improving..) 7) no forward-reference - I don't have any page numbers 8) try with new JDK - trying with JDK 1.3 9) seralize servlet request - haven't done this, but I doubt this will have any performance impact (I'm testing with one request for now) 10) no images - I don't have any... 11) Don't make the XML tree too deep - mine is very flat with 2 levels deep. I have 1,000 rows and each row looks something like following in XML 539 Some Fund 0.376 NA NA NA NA 1.4 1.58000 1. 09 Dec 2002 USD I Here is the question: Is this normal to take this long - 5 minutes - to produce a few tables with combined total 1,000 rows (about 30 pages)? Any other better way? Thank you for your suggestions. Regards, IL - 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]
AW: Call upon FOP within a c++ application
Hello! I'd prefer CORBA. It's more robust than sending a http request and easier to support. CORBA is also supported in the current jdk. For the C++ side, take a look at the ACE / TAO project. It's an open source orb and available for many platforms. Using CORBA also enables you to have a bidirectinal communication between the fop process and the client application. You can send the logger output to the client to show the state of the current fop processing ( page number, and so on ). It works for us and is already in use by some of our real world applications. Hope this helps. PS : You could set up a FOP - Server , a process that waits for CORBA requests and generates PDF or PCL output. This would also increase performance, since the java vm would not be loaded every request. This saves on slower machines in some cases more than 10 seconds -Ursprüngliche Nachricht- Von: Bertrand Delacretaz [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 29. November 2002 08:05 An: [EMAIL PROTECTED] Betreff: Re: Call upon FOP within a c++ application On Friday 29 November 2002 01:43, Amit Bhatnagar wrote: > Is it possible to call upon FOP with a c++ application? Should be possible using JNI, the Java Native Interface (info at java.sun.com). > If it isn't possible, is my only alternative to make a system call > and execute the FOP.bat? You could also use an HTTP-based interface along these lines: 1. C++ makes HTTP request to FOP servlet including a unique filename 2. FOP servlet in turn makes HTTP request to C++ to get the XSL-FO data, passing it the unique filename 3. C++ receives PDF from FOP Which is a nicely decoupled and language-independent interface. Hope this helps! -- Bertrand Delacrétaz (codeconsult.ch, jfor.org) buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding. blogspace http://www.codeconsult.ch/bertrand - 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]
AW: Invoice positions & partial sums
Hello! sounds good. Unlikely it's not possible to change the structure of the xml data. It's fixed by our customer. Isn't there any other way? ( i think of faking around with the sum() funktion and node tests? ) Cheers Mirko -Ursprüngliche Nachricht- Von: Müller, Markus [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 20. November 2002 15:36 An: [EMAIL PROTECTED] Betreff: AW: Invoice positions & partial sums Hi Mirko, when you provide the partial sums within the XML, you can work with markers. This would look like this: // -- the items all have a partialSum // -- find the last partial sum on the page and display on page bottom carry from this page: I hope, this will help a little bit (you can find many samples etc. on the web just using google). Markus # -Ursprüngliche Nachricht- # Von: Mirko Sertic [mailto:[EMAIL PROTECTED] # Gesendet am: Mittwoch, 20. November 2002 14:11 # An: FOP-User (E-Mail) # Betreff: Invoice positions & partial sums # # Hello! # # i'm working on a stylesheet that generates an invoice. I'd # like to have a # partial sum on the bottom of the first page of the invoice, when # it has more than one page. Has anybody done this before? # # Greetings # # Mirko #
Invoice positions & partial sums
Hello! i'm working on a stylesheet that generates an invoice. I'd like to have a partial sum on the bottom of the first page of the invoice, when it has more than one page. Has anybody done this before? Greetings Mirko
AW: Examples
Its not an error, its wrong java code RENDER_PDF is s static member variable of the Driver class, so you have to type: driver.setRenderer(Driver.RENDER_PDF); Cheers Mirko -Ursprungliche Nachricht- Von: Lee Goddard [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 16. Mai 2002 16:39 An: [EMAIL PROTECTED] Betreff: Examples On the examples page of the xml.apache.org/fop site, http://xml.apache.org/fop/embedding.html there is this sample: Driver driver = new Driver(new InputSource (args[0]), new FileOutputStream(args[1])); driver.setRenderer(RENDER_PDF); driver.run(); I thought perhaps RENDER_PDF referred to an (imported) constant. But I from Java1.4 am told: C:\PXML\_printing\test.java:33: cannot resolve symbol symbol : variable RENDER_PDF location: class test driver.setRenderer(RENDER_PDF); Could someone please tell me of my error? TIA Lee Lee Goddard perl -e "while(1){print rand>0.5?chr 47:chr 92}"
AW : Fop & OKI Matrix Printing
Hello FOP-Folks! After a few sleepless hours of work and pain, i created a FOP renderer wich supports the native instruction set of the EPSON emulation of my OKI matrix printer. It's more than a prototype than anything else at the moment, but i keep on working on it and maybe someday It currently supports only one font and normal font positioning. The next version will also support bold printing, underlining and so on. In fact i extended the printrenderer class and overwrote some methods to handle a limmited set of the printrenderer functionality. If anyone is interrested in my experience creating this renderer, let me know. Maybe we can make a deal... :-) Keep on coding.... Mirko Sertic
AW: XSL:FO and matrix printer problem...
Ok, sounds good. I took a look at the printrenderer class. Is there any documentation available? -Ursprungliche Nachricht- Von: J.Pietschmann [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 10. Mai 2002 12:27 An: [EMAIL PROTECTED] Betreff: Re: XSL:FO and matrix printer problem... Mirko Sertic wrote: > Is there any way to make matrix printing with xsl:fo faster? You could implement a OKI matrix printer renderer for FOP. J.Pietschmann
XSL:FO and matrix printer problem...
Hi there! Has anybody a sollution for the following problem : I want to print the results of the xsl:fo rendering to my oki matrix printer. The problem is that if i render my page to pdf and want to print it via windows, it is really slow due to the windows gdi printing device. So i need a way to give the printing instructions directly to the printer without any gdi stuff. I tried to generade a postscript file and print it via ghostscript to my oki printer. It has the same result because the ghostscript converted my ps file to a big image and sends this image to the printer!!! Is there any way to make matrix printing with xsl:fo faster? Has anybody a solluton for printing checks with xsl:fo and a matrix printer? Thanks a lot. Greetings Mirko
File seems to be kept open!
Hi there again. I'm running my FOP formatter in a java standalone application and let it render PDF's the hole day. It acts like a converter-server. Clients are giving it the xml and xsl file and the formatter does the rest. Sometimes it has also to render some images into the pdf file. These files are saved in a temp file so that the renderer can access it properly. And there is the problem! After the renderer has done its work, i want to delete my temp files. I can delete every temp file except the image files!!! (the java java.io.File.delete() method gives a false as return value, so the the file is not deleted and is still alive in my temp dir!!!). I do not like this because the formatter is doing a lot of work the hole day, and after a week or so, my disk would be full because of these temp files! Any idea? Thanks Mirko
AW: Memory usage on lage documents
Hi there again! Thanks for your help. I think you are right and my extremly long page sequences are the matter. In fact, i have only one page-sequence. The problem is, i cannot create multiple page sequences because i do not know where to break my pages. Every table-row in my document is unique and so i do not know where to break. I could limit the page-sequence to let me say 20 rows per page, but this would destroy my cool report layout ( I know that sounds silly but you know "customers whishes" !!! ) Is there any other way? Bye Mirko -Ursprungliche Nachricht- Von: Cyril Rognon [mailto:[EMAIL PROTECTED] Gesendet: Montag, 6. Mai 2002 16:49 An: [EMAIL PROTECTED] Betreff: Re: Memory usage on lage documents Mirko, there are many post on this list that point out the weaknesses of the FOP engine. The main enemies are : long page sequence and forward references. If you use long tables, then you most certainly have long page sequences. If you have logical page break in your tables, please, change your XSLT code to generate page-sequence break in your tables. The shortest page sequence the least memory used. As for the "lot of time" to complete the work, it appear that forward reference may be responsible for this. I hav had the same proble for 400 to 1000 pages documents that have the famous "total number of pages" at the bottom of every pages. I have successfully set up an unclean workaround : I generate my "total number of pages" after PDF generation is complete using iText software. I even generate my toc at the end of the fo file and then I move it at the top of the document and then write the number of pages at the right place on every pages. This is pretty simple if you look at iText sample code (itext.sourceforge.net). The last thing : C++ or C or ASM formatter won't help much because it is the global design that makes FOP slow and memory consumer. The redesign is on it's way. The workarounds I have mentionned are just gizmo to allow one to wait for the next generation of FOP. Hope that helps, Cyril At 16:29 06/05/2002 +0200, you wrote: >Hi there folks! > >I've a question regarding the memory usage of the fop formatter with large >documents. >I'm rendering a large list with about 450 pages and 1 table entries. > >When i look ad the memory usage of the fop formatter in my win32 >enrironment, i see >that it consumes about 180 MBytes of memory and it needs a lot of time to >complete its >work! > >Is there any way to make it faster or to let it use not so much memory >without throwing >an out ot memory error? > >Is there any c++ formatter out there that is open source and can do the work >faster and >without so much memory usage? > >Thanks a lot > >Mirko
Memory usage on lage documents
Hi there folks! I've a question regarding the memory usage of the fop formatter with large documents. I'm rendering a large list with about 450 pages and 1 table entries. When i look ad the memory usage of the fop formatter in my win32 enrironment, i see that it consumes about 180 MBytes of memory and it needs a lot of time to complete its work! Is there any way to make it faster or to let it use not so much memory without throwing an out ot memory error? Is there any c++ formatter out there that is open source and can do the work faster and without so much memory usage? Thanks a lot Mirko
AW: XML Schema and XSLT design tools
Hi there! I use Stylus Studio for XML and XSLT developing. It has also support for FOP and external Post-Processing. An evaluation version is available at www.stylusstudio.com. Greetings Mirko -Ursprüngliche Nachricht- Von: Buonincontri, Steve (CAP, MMF, ITSS) [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. April 2002 16:06 An: [EMAIL PROTECTED] Betreff: XML Schema and XSLT design tools Any of you folks know of good tools to do XML Schema design and XSLT development? -sb <>