Re: Multithreading problems

2001-06-13 Thread Jeremias Maerki
Kelly and Arved, thank you your comments. At 01:56 PM 6/12/01 -0600, Kelly Campbell wrote: I seem to remember fixing some of the possible problems in a more recent release. And I know Keiron or Arved also fixed a problem with a static page numbering variable that would cause problems like

Re: Help in XML Rendering to PostScript

2001-06-18 Thread Jeremias Maerki
I am fairly new to FOP and to Java as well. I am wondering if anyone has written a rendering to convert an XML stream to Postscript with FOP (similar to the PCL or PDF renderer) - I am in desperate need of a mechanism to do this. We have a current Java app that converts an XML stream into

Re: can i select which streams to encode and which not?

2001-06-21 Thread Jeremias Maerki
I have an urgent problem with Fop. I am using Fop 0.18.1 and 0.19-CVS. The config option of fop let me choose which filters to apply to stream. It doesnt let me choose however to which stream to apply these filters. What I need is that my generated pdf files only contain encoded image

Code conventions

2001-06-21 Thread Jeremias Maerki
Hi again When looking at the FOP source I encounter a lot of inconsistencies concerning tabs and spaces. Can we (or rather the committers) please agree on how to configure our editors to produce good-looking code? I'd like to propose prohibiting the use tabs, use an indentation level of 4 spaces

Re: Odds and Ends

2001-06-29 Thread Jeremias Maerki
Also if possible it might be good to create the branch for FOP II (2) after the next release so that there is a place to start working in. One question, how should we handle updates to FOP that are not specific to the new layout. For example: images, svg, logging, configuration etc. All

Re: Font Metric file from PFB file??

2001-07-05 Thread Jeremias Maerki
how can i generate font metric file from pfb fies which comes with font files.I don't have pfm files.I read that The PFMReader tool does not yet interpret PFB files.Please help me. The PFM is currently the only way. If you have a PFA (which is in a text format) you can quite easily construct

Re: Starting FOP as an standalone application

2001-07-10 Thread Jeremias Maerki
On the page http://xml.apache.org/fop/running.html under the title line Starting FOP as an standalone application the first key word Fop is supposed to be an executable program (or script file), but I just couldn't find it anywhere from the installed distribution Fop-0.17.0.tar.gz to be able

Re: Java Extensions in Xalan vs Fop

2001-07-12 Thread Jeremias Maerki
The Java class is on the classpath, I included a function 'main' to test this and all works fine. The XML, XSL and Java will all process through Xalan as expected, and an XSL:FO file is produced correctly, no problems. However, I wish to use FOP to do all this in one go with the usual java

Re: different Fonts in Same Line.

2001-07-16 Thread Jeremias Maerki
I want to add 2-3 different fonts in same fo:block. means in a paragraph there is serif,Richa,Arial in same line. If i use fo:block it will be in different lines. I tried with fo:inline-sequence.but was in vain. can anyone help me? Look at the samples. docs/examples/fo/testdeko.fo will

Re: PDF serialization

2001-07-17 Thread Jeremias Maerki
FWIW the PCL renderer should not be keeping much in memory. The same applies to the PostScript renderer and (I think) to the MIF renderer, which was my starting point for the PostScript renderer. Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002

Re: Code Style, was Re: PDF serialization

2001-07-17 Thread Jeremias Maerki
May I suggest to put up a code convention section in involved.xml? I think a short notice with the most important rules (tabs to spaces, 4 spaces for tab etc.) will suffice. That will make it easier to encourage people to follow the conventions. Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE

Re: FOP in a servlet under load

2001-07-18 Thread Jeremias Maerki
3. It takes quite a bit of time to do the generation. The minimum generation time for the four documents are from 1 to 4 seconds (the 4 seconds one is 5 pages with 13 tables with various cell colors and border styles). In the 30 user test, the average time are from 20 to 40 seconds, and

Re: Extracting xml data(different fonts) and putting them in same block???

2001-07-19 Thread Jeremias Maerki
Rajiv Thanks a lot for ur kind consideration. Yeah,i'm using xslt but all the tags of xslfo is working well in xslt.My actual need is to make pdf from a pure xml data file with xslt by using fop. So it's necessary for me to use .xsl instead of .fo file. I don't want you to give up XSLT.

Re: stopping stdout messages

2001-07-22 Thread Jeremias Maerki
We are using FOP in our software, and I was wondering if there is an easy way of stopping the non-error standard out messages like : Have a look at the org.apache.fop.messaging package. You will have to implement a class that implements MessageListener (See DefaultMessageListener for example),

Re: back

2001-07-22 Thread Jeremias Maerki
5) there has been some discussion on Apache's general list to switch from stylebook to docbook or something else. afaik there has been a lot of voting for docbook but nobody has a working solution to replace stylebook. We should monitor this discussion and change as soon as possible.

Re: Performance Problems

2001-07-24 Thread Jeremias Maerki
I've noticed a bit of chat on the list the last few days concerning performance. I'm having a few problems in that area and I wondered if anyone had any suggestions. I have a 16 page document, consisting of text and embedded images, which is presently taking 30 seconds to generate. I've

Re: Performance Problems

2001-07-24 Thread Jeremias Maerki
My confidence level of being able to transition FOP to COM myself is very low. It would be really nice if someone would take this on :) Or maybe I'm just being lazy. You said earlier that Cocoon worked for you but you dropped it because it used an older version of FOP. Did you look at

Re: Getting number of rendered pages

2001-07-30 Thread Jeremias Maerki
does anybody know if it's possible to get the number of rendered pages? I searched the docs, but couldn't find anything about it. I think it should be possible, because the PDFRenderer prints the current page number to the message system. We have to print a book divided into several

Re: Current state of fonts+PDF files??? (embedding fonts in pdf)

2001-07-30 Thread Jeremias Maerki
Now, the faq states that FOP does not support embedding fonts in PDF documents. Is this information current? I see the barcode fonts in my generated PDF document on my local development machine. Is there planned support for embedded fonts in PDF? That's not correct anymore: FOP does

Re: AW: Getting number of rendered pages

2001-07-30 Thread Jeremias Maerki
THAT's exactly what I was searching for! But unfortunatetly, the Driver.format() in the current cvs versions looks like Do you mean an other class/method ? No, the problem is this: I'm using an older version which still returned the number of pages. Obviously, someone removed this

Re: FAQ (was: Current state of fonts+PDF files??? (embedding fonts in pdf))

2001-07-30 Thread Jeremias Maerki
Alex Your wish is my command! Notice that I clearly dated the answer saying that it wasn't implemented at that time (Dec 2000). The question and answer now states: Thanks! But please look at my lastname again. There seems to be a problem with a-umlaut. Folks - remember that I am not a

Re: AW: Getting number of rendered pages

2001-07-30 Thread Jeremias Maerki
On Mon, 30 Jul 2001 13:28:58 Jeremias Maerki wrote: THAT's exactly what I was searching for! But unfortunatetly, the Driver.format() in the current cvs versions looks like Do you mean an other class/method ? No, the problem is this: I'm using an older version which still returned

Re: pdf to xml ?????

2001-07-31 Thread Jeremias Maerki
Thanks a lot for ur prompt response.Actually I'm trying to create structured xml of the content of a PDF file. You may want to have a look at this: http://www.planetmarkup.com/mainpage.asp?webpageid=76 Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 -

Re: logging

2001-08-02 Thread Jeremias Maerki
Isn't logging going to be a standard part of JDK 1.4? I thought that was going to be based on IBM's Log4J. Is Avalon's logging based on that? If not, should the 'standard' be considered? IIRC JDK 1.4 logging includes the ability to log to syslog (on unix) and whatever the logging

Re: logging

2001-08-02 Thread Jeremias Maerki
So do others agree that this would be the way to go. I do. I have one question that hopefully someone knows answer (or knows who to ask). Since FOP is can be run in a number of ways (command line, in servlet (cocoon), embedded), how can the logging be setup so that the fop logger will

Re: javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser???

2001-08-09 Thread Jeremias Maerki
I am able to run the fo from command line and get the printed output. Now the next is to embed in servlet. I tried running this servlet from jbuilder. with the library pointing to fop.jar,xalan.jar xcerces.jar , batik.jar, buildtools.jar I run into following error.

Re: font embedding

2001-08-14 Thread Jeremias Maerki
Hi Ektan First of all, please post these questions to the mailing list and not to me directly because (among other reasons) these questions might also be interesting to others. On Tue, 14 Aug 2001 06:10:56 GMT ektan wrote: I 'm interested in doing font embedding in Postscript file, but I don't

Re: Fonts and reporting classes

2001-08-17 Thread Jeremias Maerki
On Thu, 16 Aug 2001 15:28:58 -0400 Spectron Caribe, Inc. wrote: 1. I know that in PDF files you can add a /FontDescriptor for a TrueType font without actually embedding the font. What this does is if the font is found in the system it uses it, if not it uses another font. Is there any way I

Re: [PATCH] Page citations do not work in PSRenderer

2001-09-05 Thread Jeremias Maerki
Hi Steven The PSRenderer was not really broken. I just hadn't implemented that, yet. On Wed, 5 Sep 2001 14:17:05 -0400 COFFMAN Steven wrote: Done. Are other renderers similarly broken? (PCL?) I don't have a way to check. -Steve -Original Message- From: Jeremias Maerki [mailto

Re: FOP Speed

2001-09-06 Thread Jeremias Maerki
On Thu, 6 Sep 2001 09:01:59 -0400 avespa wrote: I am rendering a two page document in PDF/PCL using FOP. I notice that the actual loading and render steps of the stylesheet take a rather long time (close to 10 seconds on a large server) I'm wondering if there are any XSL guidelines for

Re: FOP Speed

2001-09-06 Thread Jeremias Maerki
-0400 avespa wrote: No, it is implemented within a server. How do you define 'complex' document? I am filling in many fields into the document, maybe 50 - 60 at least. Only one image. -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Thursday

Re: Unable to perform PDF creation

2001-09-12 Thread Jeremias Maerki
Hi PDF is a binary format. Don't convert it to a String and don't use FileWriters. Your code should probably look approximately like this: FileInputStream file = new FileInputStream( new File( e:\\border.fo )); OutputStream out = new FileOutputStream(e:\\my.pdf); try { Driver driver = new

Re: PCL Problems on HP Deskjet 400

2001-09-13 Thread Jeremias Maerki
Hi I don't know much about PCL, but I know this: PCL laser printers usually build a whole page in memory and then print it to paper. They normally have a decent amount of memory. Especially older ink jet printers like yours only have a small buffer, so the page has to be delivered in bands (I

Re: PCL Problems on HP Deskjet 400

2001-09-13 Thread Jeremias Maerki
. How could I 'band' this? -Tony -Original Message- From: Jeremias Maerki To: [EMAIL PROTECTED] Sent: 9/13/01 2:34 AM Subject: Re: PCL Problems on HP Deskjet 400 Hi I don't know much about PCL, but I know this: PCL laser printers usually build a whole page in memory

Re: Logs, logs and more logs

2001-09-13 Thread Jeremias Maerki
There was a discussion of this topic on the Avalon mailing list. Also, there was a proposal of a revised Loggable interface. The current Loggable interface is somewhat hardcoded to LogKit. The proposal would basically solve the problem like Trunk would, except that this solution is well

[PATCH] Enhanced FOP Ant Task

2001-09-19 Thread Jeremias Maerki
Hi there I've done some tinkering with the FOP Ant Task, that I'd like to submit. Currently the FOP task can only generate PDF. I changed it so it can use the other renderers as well. Old syntax: fop fofile=myfile.fo pdffile=myfile.pdf/ New syntax: fop fofile=myfile.fo outfile=myfile.pdf/ or

Re: [PATCH] Enhanced FOP Ant Task

2001-09-19 Thread Jeremias Maerki
+0200 Keiron Liddle wrote: Would it be possible/suitable to define the output type using a mime type. ie. application/pdf rather than having our own definition. On Wed, 19 Sep 2001 14:24:41 Jeremias Maerki wrote: Hi there I've done some tinkering with the FOP Ant Task, that I'd like

Re: [PATCH] Enhanced FOP Ant Task

2001-09-21 Thread Jeremias Maerki
Hi foppers As promised, here's the new diff for the FOP Ant Task. I've changed the format designators to MIME types (although the other output types are supported, too) and added support for filesets. I didn't include support for -awt and -print, though. -awt IMHO makes not much sense in this

Re: Alternative to SVG

2001-10-30 Thread Jeremias Maerki
In the PDF specs I actually found something about including PostScript. Chapter 4.10 PostScript XObjects might be a solution but it also says there: Note: Since PDF 1.3 encompasses all of the Adobe imaging model features of the PostScript language, there is no longer any reason to use PostScript

Re: fonts

2001-10-31 Thread Jeremias Maerki
I take it you're talking about an Adobe Type 1 font, right? There are a few known issues with the generation of XML metric files in PFMReader with exotic fonts. This means sometimes a wrong value for Flags is set. If you have Acrobat (not Acorbat Reader), you could generate a PDF from a Word

Re: FOP, embedded fonts

2001-11-12 Thread Jeremias Maerki
Yes, FOP supports embedding fonts. Look here for instructions: http://xml.apache.org/fop/fonts.html On Mon, 12 Nov 2001 13:08:00 +0100 Matthias Fischer wrote: Ahm, if I recall right, the other day there was some mailing concerning FOP and embedded fonts. Unfortunately I cancelled all relating

Re: XSL-FO, embedded fonts

2001-11-12 Thread Jeremias Maerki
Aha! How about reading some good documentation at http://xml.apache.org/cocoon2/userdocs/serializers/pdf-serializer.html On Mon, 12 Nov 2001 13:27:09 +0100 Matthias Fischer wrote: Thanks for the really quick answer. I was inprecise in my formulation: I want to render PDF with embedded fonts

Re: PDF size

2001-11-20 Thread Jeremias Maerki
You're probably working with an older version of FOP. Recent versions include direct support for embedding JPEG which results in smaller PDF files. The files are bigger in your case because the JPEG gets decoded and compressed pixel by pixel using the Flate algorithm. On Tue, 20 Nov 2001

Re: How to set up external logger?

2001-11-20 Thread Jeremias Maerki
Hallo Ulrich The problem probably lies in org.apache.fop.messaging.MessageHandler which is used in a static context and constructs it's own Logger. FOP still needs some refactoring to do logging cleanly. All you probably need is to also set the Logger on MessageHandler. Good luck! On Tue, 20

[REDESIGN] Proposal: ProblemListener

2001-11-21 Thread Jeremias Maerki
Hello Karen, Keiron and others interested... I've been using FOP in a specially modified version derived from version 0.15 (CVS), because I had to have some special duplex functionality. Now, I'm in a major redesign of the application and I'm going to do the duplexing stuff differently. That way

Re: Font embedding in PostScript?

2001-11-23 Thread Jeremias Maerki
Hi Ulrich No, sorry. I haven't had the time to do that, yet. I'm still doing it the PDF-way and then converting the PDF to PostScript using Acrobat Reader 4.05. On 23.11.2001 14:04:20 Ulrich Mayring wrote: Hello, is it possible to use font embedding, when rendering to PostScript, or is

Re: Font embedding in PostScript?

2001-11-26 Thread Jeremias Maerki
Well, if the font is embedded in the PDF, it gets embedded in to resulting PostScript file. If it's not, no embedding is done. I don't think you can have the fonts embedded in the PostScript when they aren't embedded in the PDF. Not sure, though. Maybe Ghostscript can do that. I've never tried.

Re: Embedding Printer Control parameters in PCL

2001-10-13 Thread Jeremias Maerki
On Brian T. Wolf wrote: We are working on that as well, though I don't have any good solutions yet either. If you run across something please let me know. Just as an FYI, I tried hardcoding a duplex print escape sequence into PCLRenderer.java and it printed both sides as expected. So I

Re: Embedding Printer Control parameters in PCL

2001-10-13 Thread Jeremias Maerki
On -MM-ddT Brian T. Wolf wrote: We are working on that as well, though I don't have any good solutions yet either. If you run across something please let me know. Just as an FYI, I tried hardcoding a duplex print escape sequence into PCLRenderer.java and it printed both sides as

Re: Embedding Printer Control parameters in PCL

2001-10-13 Thread Jeremias Maerki
On -MM-ddT Brian T. Wolf wrote: We are working on that as well, though I don't have any good solutions yet either. If you run across something please let me know. Just as an FYI, I tried hardcoding a duplex print escape sequence into PCLRenderer.java and it printed both sides as

Re: Embedding Printer Control parameters in PCL

2001-10-13 Thread Jeremias Maerki
That's also going to be an issue for the PostScript renderer, when we want to apply individual PPDs (Files that contain control commands for individual printers) or controlling the PostScript Level to be used. What comes to my mind as an idea is a FOP extension where we can supply some

Polluting the list

2001-10-13 Thread Jeremias Maerki
I'm really sorry for having polluted the list with several empty answers. I was fiddling around with my mail client and... I still seem to be asleep. Sorry! Regards, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - 6002 Luzern Fon +41 (0)41 317 2020 - Fax

Re: FOP 0.20 leaves image files open?

2001-10-17 Thread Jeremias Maerki
PFMReader has nothing to do with images nor is it active when FOP is processing files. It is used to create XML font metric files. It doesn't hurt, that this particular file won't get closed. On Wed, 17 Oct 2001 10:22:26 -0400 Scott Moore wrote: I can't be sure of this, but it seems to me that

Re: FOP 0.20 leaves image files open?

2001-10-17 Thread Jeremias Maerki
directory which actually reads the images, but they seem to be handed an already open InputStream. I don't know which Java classes are opening the files originally. Scott -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 17, 2001 10:53

[PROPOSAL] FormattingResults

2001-12-04 Thread Jeremias Maerki
Hi foppers I did something I think is useful for some of us: It's basically a couple of new classes to report the results of a FO transformation. FormattingResults reports the total number of pages that have been generated and has a list of PageSequenceResult objects that return the number of

Re: number of pages generated

2001-12-11 Thread Jeremias Maerki
Yes, with the FormattingResults proposal I submitted on 2001-12-04 this would be possible. I'm still hoping one of the committers might consider integrating it in FOP. On 11 Dec 2001 13:34:27 +0100 Laurent Vaills wrote: Is there a way to get the number of pages generated after driver.run() ?

Re: [PROPOSAL] FormattingResults

2002-01-03 Thread Jeremias Maerki
. Thanks for having looked at it! Regards, Keiron. On 2001.12.04 16:04 Jeremias Maerki wrote: Hi foppers I did something I think is useful for some of us: It's basically a couple of new classes to report the results of a FO transformation. FormattingResults reports the total number

Re: [PROPOSAL] FormattingResults

2002-01-03 Thread Jeremias Maerki
On Thu, 3 Jan 2002 10:06:47 +0100 Keiron Liddle wrote: On 2002.01.03 10:01 Jeremias Maerki wrote: There is a problem that it doesn't actually compile due to a missing method on PageSequence. Oops. Which method? int getPageCount() Oh, now I understand. I forgot to include

Re: please help...PCL renderer not formatting properly

2002-01-09 Thread Jeremias Maerki
You have to make sure you check out with tag fop-0_20_2-maintain. The version you got is the one where the redesign is in progress. On Wed, 9 Jan 2002 11:06:28 +0200 Dudley.Butt wrote: ok, i did all that and got the cvs but now neither the pdf or pcl is being rendered. I dont get any errors,

Re: please help...PCL renderer not formatting properly

2002-01-09 Thread Jeremias Maerki
please assist me with the checkout command to get this maintainance version with the tag fop-0_20_2-maintain? Thanx, i would really appreciate it! -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 12:01 PM To: [EMAIL PROTECTED

Re: Numbre of pages

2002-01-10 Thread Jeremias Maerki
If you download the current CVS (tag: fop-0_20_2-maintain) you'll find a new method getResults() in Driver.java that gives you back a FormattingResults object containing this information. On Thu, 10 Jan 2002 13:04:58 +0100 Raúl Carazo wrote: Is it possible to know the numbre of pages of a

Re: Who does this stuff? and Christian

2002-01-12 Thread Jeremias Maerki
There's a list in the STATUS file. Not being a committer I can only say that I'm in favor of granting Christian committer status (if he wants it). Since obviously there currently aren't many active committers at the moment, that would do the FOP project some good. On 11.01.2002 19:27:02 Art

Re: PS printing

2002-01-14 Thread Jeremias Maerki
What exactly do you think is incorrect? It can very well be, that the PostScript renderer does not work well on every occasion, a lot of features are still missing. On Mon, 14 Jan 2002 11:49:32 +0100 Raúl Carazo wrote: I'd like to generate a PS file (or much better, to send it to the printer)

Re: PS printing

2002-01-14 Thread Jeremias Maerki
files, so I hope to see them... Where can I know if it is possible? Anyone has tried to create a PS file directly for printing it? Salve - Original Message - From: Jeremias Maerki [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 14, 2002 1:07 PM Subject: Re: PS

Re: PS printing

2002-01-14 Thread Jeremias Maerki
Now, I get it! Thanks. It seems as I suspected: The problems probably come from the tables. If you are on Unix, try Acrobat Reader 4.05 on the command-line (-toPostScript and friends) to generate PostScript from PDF and print it via LPR. If you are on Windows, try the command-line options of

Re: fo document as output

2002-01-14 Thread Jeremias Maerki
I'm not sure I understood everything. The FO is normally built using XSLT. And if it's done right, there's really no need to save the FO to a temporary file. Instead FOP can use SAX output events from the XSL transformation as direct input. Where have you seen this? So if you want to have an FO

Re: need help about adding fonts

2002-01-24 Thread Jeremias Maerki
Tony You've probably added an embed-file attribute in the user config file. This embeds the font in the PDF. Just remove it and your PDF should shrink again. Not embedding a font means that the viewer of the PDF will have to have the particular font installed on his system. But why do you go

Re: transforming fo to pdf

2002-02-01 Thread Jeremias Maerki
After looking closer at your mail, when Jörg replied, I realized what's wrong. Bhawana, you're using the CVS version (main branch) of FOP which is currently in a redesign phase. That version is not intended to be used, yet. FOP 0.20.x does not have any LayoutManagers. I suggest you download a

Re: making classes off your fonts...

2002-02-01 Thread Jeremias Maerki
Everything on fonts is on the following page: http://xml.apache.org/fop/fonts.html Sometimes the metric files need some tweaking, especially for Type 1 fonts, but that requires reading into the font specs. I'm still quite sure you're making yourself a hard time with little profit. Good luck.

Re: Seeking Comments on Status of Project

2002-02-06 Thread Jeremias Maerki
To make sure there is no confusion about this, could someone clarify (once more I guess) what exactly the main and maintenance branches are, and how to get the source code for both of them? You get the main branch by getting the sources from CVS without a tag. The maintenance branch is

Re: fire the SAX events

2002-02-07 Thread Jeremias Maerki
I use Fop-0.20.1 and try to fire SAX events from transformer directly to Driver renderer. With this source I have bunch of exceptions. Have you tried to do the same with a more current version of FOP and checked if the problem persists? Cheers, Jeremias Märki mailto:[EMAIL PROTECTED]

Re: How to use FOP in Java

2002-02-07 Thread Jeremias Maerki
I am generating PDF files using FOP by the code given below String[] arr = {-q, -xml,xmlFile, -xsl,xslFile, -pdf, pdfFile}; Fop.main(arr); I want to use streams (input stream and output stream) Actually i am using Jsps for displaying of reports. And report is generated on demand. So i

Re: is it possible to manually draw lines in a table ?

2002-02-07 Thread Jeremias Maerki
is it possible to manually draw lines in a table or on a page ? or something like that, because i have to following problem: i have text rows in a table that end before the table ends, so the table is larger. i have to columns separated by the borders of the cells ( lines ) but the don't

FOP hanging in multi-threaded environment (Win32)

2002-02-12 Thread Jeremias Maerki
Hi Foppers I'd like to share something I've just found out and which almost cost me my nerves so shortly before the first installation of our solution. What happened? I have here a multi-threaded server app. The thread that FOP was running on froze after the debug message building formatting

Re: Exceptions while running embedde fop multithreaded

2002-02-13 Thread Jeremias Maerki
Who are the developers of FOP. The committers (see file STATUS) and everyone who submits patches to this list. How do I ask to get a multithreaded version of FOP, or get that on the requirements list. I could probably do it, but it needs to be maintained. It is on the requirements list even

Re: Embedding fonts - works from command line FOP but not in Cocoon 2

2002-02-15 Thread Jeremias Maerki
You have to specify your user-config file. Look at the javadocs of org.apache.cocoon.serialization.FOPSerializer. From the javadocs... * The use of a config file for FOP is enabled by adding a configuration * element to the serializer in the sitemap. * user-config

Re: Embedding fonts - works from command line FOP but not in Coco on 2

2002-02-16 Thread Jeremias Maerki
Well, I'm no Cocoon-user. I just happen to have looked at the source code once or twice. Try to modify the logging configuration of Cocoon so it displays debug messages from FOPSerializer.java. It may help you to find out what really happens (for example if the user config could be loaded or

Re: Embedding fonts - works from command line FOP but not in Coco on 2

2002-02-17 Thread Jeremias Maerki
The user config file is getting loaded (seen this in the log file). But for some reason, the font is not getting embedded. I have a question on the way fonts are treated in FOP. Other pdf generators allow us to specify whether fonts need to be embedded or referenced in the pdf file. If

Re: cvs commit: xml-fop/docs/xml-docs/fop fonts.xml

2002-02-18 Thread Jeremias Maerki
keiron 02/02/18 01:01:50 Modified:docs/xml-docs/fop fonts.xml Log: some more font embedding info Thanks, Keiron! Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29

Re: Embedding fonts - works from command line FOP but not in Coco on 2

2002-02-18 Thread Jeremias Maerki
Removing the embed-font attribute results in an error. Removing the entire font tag is making the Serializer ignore the font altogether, thus embedding default font. Not embed-font, embed-file! And what error? What does your userconfig.xml look like? Don't remove the metrics-file attribute.

Re: Embedding fonts - works from command line FOP but not in Coco on 2

2002-02-18 Thread Jeremias Maerki
This looks good. I wonder where the string - error comes from. You've probably double-checked that the userconfig.xml can be loaded from where you're running Cocoon. I don't have any more ideas other than to debug it. Sorry. Does anybody else have an idea? Sorry for misquoting. I actually meant

Re: PDF to JPEG

2002-02-18 Thread Jeremias Maerki
FOP can read various file types (Jpeg etc ) make a FO Tree and save as a PDF. Could not find any other type of reader which read PDF into FOP , which then we can convert it into a JPEG /SVG Am I wrong ? FOP is a interpreter for XSL:FO that can write target formats like PDF, PCL,

Re: driver problem - finding source file

2002-02-19 Thread Jeremias Maerki
Have a look at the javadocs of org.xml.sax.InputSource. It will tell you that a String parameter in the constructor is a SystemID which corresponds more or less to a URL. So if you specify a relative path it's resolved by applying the base URL. And that's why it worked. I'd use: new

Re: problem with fop 20.3

2002-02-20 Thread Jeremias Maerki
Nick I think it's time you change to the fop-user mailing list for these kind of questions. And as a reminder there are wonderful mailing list archives around to get your answers. See: http://xml.apache.org/fop/resources.html Anyway, you need to change master-name to master-reference. This has

Re: Custom fonts (again)

2002-02-20 Thread Jeremias Maerki
Following lines from the Embedding FOP web page: userConfigFile = new File(userConfig); options = new Options(userConfigFile); Ok fine I got that, but what to do with the options variable after this? Nothing! :-) It's something static and registers itself in FOP. Not so beautiful, but it

Re: [Understanding] Images [4]

2002-02-22 Thread Jeremias Maerki
Note: this is still in progress, input in the code is welcome. Needs documenting formats, testing. So all those people interested in images should get involved. snip/ Threading Thanks for thinking about this! snip/ Caches -- LRU All images are in a common cache regardless of

Re: [Understanding] SVG [6]

2002-02-27 Thread Jeremias Maerki
Associated Tasks To get accurate drawing pdf transparency is needed. The drawRenderedImage methods need implementing. Handle colour space better. Improve link handling with pdf. Improve image handling. and... - Try to get the Batik team to remove the AWT dependencies so

Re: Using Avalon/Logkit

2002-02-27 Thread Jeremias Maerki
In order to clarify issues: I have to use FOP in an environment which already provides logging, configuration management and life cycle management. I don't want to look into another log file. I don't want to write more config files. (There is also the fact that said environment goes to great

Re: [Understanding] SVG [6]

2002-02-27 Thread Jeremias Maerki
Thanks a lot for this link. Too bad it's GPL. and... - Try to get the Batik team to remove the AWT dependencies so FOP can be run on a head-less Unix machine without Xvfb. Well, if you use PJA (http://www.eteks.com), you dont even need to do an X hack like that, and its pure

Re: Using Avalon/Logkit

2002-02-27 Thread Jeremias Maerki
One of the major criteria of a logging system is the minimal impact on performance. Surely having abstraction layers and implementation layers to provide logging will have an impact on this. There's almost no performance penalty. Most performance is lost because developers don't write their

Re: Options

2002-02-27 Thread Jeremias Maerki
Hmm, why not? What would your default entry in the system config be (or better: where does it look for the userconfig by default)? Yes you can, if you allow the command line configuration to take precedence. The system config file then contains your default user config, which defaults to

Re: FOP Interfaces

2002-02-27 Thread Jeremias Maerki
Since this seems to be a hot topic at the moment I thought I might jump in. To use FOP in the various contexts we need to properly setup the right interfaces. First we need to determine why and what those interfaces are. All of the interfaces are set through the Driver. The Driver is the

Re: Options

2002-02-27 Thread Jeremias Maerki
Peter (comments inline) In config.xml: entry keyuserConfigFileName/key valueuserconfig.xml/value /entry Ok, that means FOP looks in the current directory for userconfig.xml. I can agree with that. I guess there are pros and cons: This mechanism can reduce the work that needs

Re: Using Avalon/Logkit

2002-02-27 Thread Jeremias Maerki
I just tried to plug in fop .20.3 to an existing app that uses .20.2. I included the new avalon jar in my classpath, but I still get a logging error. From an end user persepective, I would just like to suggest that when you add a new component between non-version build changes that breaks the

Re: Options

2002-02-28 Thread Jeremias Maerki
Hi Peter snip/ Now, I think you're really start mixing things. I strongly recommend to separate configuration (as the filename says) and processing instructions. What you want to do means creating a new userconfig.xml for each call to FOP. This is much easier using the command line (and

Re: Exception

2002-02-28 Thread Jeremias Maerki
Seems like we have two people almost at the same time having problems with NPEs in loadImage() methods. Ivaylo, it looks like you're not using the latest version of FOP, so I haven't been able to find out what exactly caused the NPE. It's not that it will necessarily work if you update! I've

Re: FOP Interfaces

2002-02-28 Thread Jeremias Maerki
Output from FOP: - Generation statistics: Number of pages total What about: total=((Integer)processor.getAttribute(fop.totalNumberOfPages)).intValue() (Returns 0 before rendering, i suppose. Or is throwing an exception better?) Number of pages of each page-sequence Uh, perhaps

Re: EBCDIC os390

2002-02-28 Thread Jeremias Maerki
I'll apologize upfront as I think my question is really for the users list but, I was unable to find how to subscribe to it. No, I think you're in the right place. I'm developing under Websphere 4.0 and have had success in using FOP .20 on my NT machines. I take that ear file and install

Re: Example extension

2002-03-01 Thread Jeremias Maerki
Have a look at: http://www.exslt.org/ That's an XSLT extension, not a FOP extension. Right? Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch

Re: FOP Interfaces

2002-03-01 Thread Jeremias Maerki
I get it now, thanks. I think that's an interesting thing. Definitely, worth putting on the task list. I could use something like that, too. I would like to know where an arbitrary event has occured during fop rendering. Let me give you a short example: i produce a *big* pdf with fop that

  1   2   3   4   5   6   7   8   9   10   >