Memory measurement -- importance of Driver.reset()

2003-11-21 Thread John Austin
After reading the Sept 2003 thread about Memory Performance, leaks (and how wonderful ADA is), I modified my test program that generates 3 PDF files. The program now sleeps 30 seconds, calls Driver.reset(), nulls the reference and sleeps again. In JMP this plots a square wave between that you can

PDF-Report with dynamic JPEG-Image

2003-11-21 Thread Torsten Buslei
Hello,I'm using FOP (0.20.5) for several month. It's a nice tool to generatedynamic pdf-documents in a web-environment (tomcat 4, java 1.4.1).Now I want to integrate charts which I generate in a servlet powered by theJFreeChart-classes (an open source project). The response of the servlet

attribute-set

2003-11-21 Thread Manuel Reyes
I am having a problem when trying to use attribute sets, and I am unsure on whether this is a problem with FOP or my newbie implementation of the syntax (the most likely possibility) I have the following attribute-set within my document which reads in values from an XML file : xsl:attribute-set

Re: CMYK again

2003-11-21 Thread Ben Galbraith
Timo, Timo Haberkern wrote: 1.) FOP (or XSL:FO) doesn't support CMYK directly I don't know if the XSL-FO color space support supports CMYK or not. Others may comment on this who have read the spec more than I. 2.) CMYK JPEGs shouldn't be a problem in FOP through JAI support I use CMYK JPEGs in

Re: CMYK again

2003-11-21 Thread Timo Haberkern
Ben, The President of my employer is a lawyer. Dunno if open-source will happen anytime soon for that lib. ;-) Have you checked if the open-source Multivalent lib supports this type of operation? I'll try and take a gander too, but you should check and see. I will check it next week.

RE: CMYK again

2003-11-21 Thread Dennis Myrén
Well, in FOP 0.20.5 it is possible to generate uncompressed PDF documents. Although this may increase the file size, sometimes dramatically, it makes the RGB-CMYK replace operation much simpler, Because the PDF document wont need to be decompressed before performing those tasks. Then, what you

Re: CMYK again

2003-11-21 Thread Timo Haberkern
Then, what you will need is a regular expression, that finds any 'RG' or 'rg' color commands, to replace them with 'K' or 'k', respectively. Of course, the expression needs to be smart enough only to replace occurrences of 'RG' or 'rg' that is actually color commands. Searching for occurrences of

Re: CMYK again

2003-11-21 Thread Ben Galbraith
Timo Haberkern wrote: Ok, i understood that. But i think the color values must be changed too or i'm wrong. I think there must be a conversion from rgb to cmyk values?!? Right. I haven't created code that performs intelligent RGB - CMYK conversion; rather, I replace specific RGB values with

Re: XSL-FO Problem (Line not coming as proper location)

2003-11-21 Thread J.Pietschmann
shuva sinha wrote: I am using fo:leader in xsl. But it is not coming. Another attempt at guessing what your problem might be: use text-align-last=justify, see also: http://xml.apache.org/fop/faq.html#leader-expansion J.Pietschmann

Re: CMYK again

2003-11-21 Thread J.Pietschmann
Ben Galbraith wrote: I don't know if the XSL-FO color space support supports CMYK or not. XSLFO only supports sRGB (gamma corrected!) and ICC colors. Of course, the spec doesn'n mention how the colors in the output should look like. J.Pietschmann

Re: CMYK again

2003-11-21 Thread J.Pietschmann
Timo Haberkern wrote: A question to the FOP coding gurus: What would be the correct/best way to implement an extension to FOP that can generate a CMYK document? Check whether iText or any other of the handful of PDF libraries on sourceforge can help you with this problem. J.Pietschmann

Re: CMYK again

2003-11-21 Thread Clay Leeds
Timo Haberkern wrote: A question to the FOP coding gurus: What would be the correct/best way to implement an extension to FOP that can generate a CMYK document? rgds Timo Here're a couple of ideas of where to look: EXSLFO Project: http://exslfo.sourceforge.net/ EXSLFO Project Home: