Generating PDF on the fly using on the fly XML

2003-02-03 Thread joni santoso
Hi, I used to create a servlet that can produce PDF by setting its contentType. 1. Now, I wonder if I can use Apache FOP to take XML stream that I created using JDOM to produce a PDF? How? 2. Is it possible to produce a PDF that only contains JPEG using XML stream? I am thinking about

Re: java/util/Hashmap

2003-02-03 Thread Johan Ã…brandt
Matthew Lancashire wrote: Its 1.3.1_06. What do I need to do to get the class in to my classes folder. To be sure of the version, put System.out.println( System.getProperty( java.version ) ); in the same code as were you use FOP. Then you can be sure that it is really the version of the java

Table column width

2003-02-03 Thread sujata
Hi, I have a problem in displaying the data in the pdf table. Each column width in a table should be different from the other column depending on the data. Since I am using the same fop stylesheet for different tables, I cannot hardcode the column width in the stylesheet. Is there any option

single and double column on same single page

2003-02-03 Thread H. krishna
Hi everybody, i need the single and double column on same single page. It is possible in fop-0.20.5. immediate replay is highly appreciated. regards, bala __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

footnote in a list body

2003-02-03 Thread Karen Mergner
Hi all, I have to insert footnotes in my document. It works fine, if the footnote is in a paragraph. But if the footnote is in a list, the footnote has the same indent as the list body and it overwrites the last text rows at the bottom of the page. Is there a solution of this problem? Karen

Re: PDF to FO?

2003-02-03 Thread Oleg Tkachenko
Will Spies wrote: If I have an existing PDF file is there a way to convert it to a FO file? I would like to create dynamic forms but I would rather reverse engineer a PDF file. That's impossible, pdf is lower-level format relatively to fo. -- Oleg Tkachenko Multiconn Technologies, Israel

Re: Table column width

2003-02-03 Thread Oleg Tkachenko
sujata wrote: I have a problem in displaying the data in the pdf table. Each column width in a table should be different from the other column depending on the data. Since I am using the same fop stylesheet for different tables, I cannot hardcode the column width in the stylesheet. Is there

RE: FOP logo contest

2003-02-03 Thread Andy Joslin
Hi I've noticed that the deadline for submitting a design and voting are the same (28th Feb). Wouldn't it perhaps be better to set a deadline for the logo submission first and then a second deadline for voting? That way the voters can choose from the full range of entries when when placing their

Re: fop + servlet + multisession

2003-02-03 Thread Oleg Tkachenko
Gian Piero Bottini wrote: I am using FOP 0.20.5rc to produce PDF files from XML and XSL-FO I use a servlet in Tomcat 4.04 if I have a large file (100 pages) and 2 session of IE are working concurrently there are no exception but the two processes don't finish and the pdf files are not

RE: Generating PDF on the fly using on the fly XML

2003-02-03 Thread Mihael Knezevic
one method of using dynamically create xml content would be to use the StringReader. here some sample code: StringReader input = new StringReader(xmlString); try { FileReader inputxslt = new FileReader(new File(xslfile)); Transformer transformer =

Re: FOP logo contest

2003-02-03 Thread Oleg Tkachenko
Andy Joslin wrote: I've noticed that the deadline for submitting a design and voting are the same (28th Feb). Wouldn't it perhaps be better to set a deadline for the logo submission first and then a second deadline for voting? That way the voters can choose from the full range of entries when when

Re: Table column width

2003-02-03 Thread sujata
Thanks for the reply. How do you take the column width in a stylesheet. I don't want to take each column width data as a separate parameter because the no of columns vary from table to table. My Logic is get a string with all the column width s of the table seperated by coma. In xsl split it and

Re: fop + servlet + multisession

2003-02-03 Thread Gian Piero Bottini
Now I'll try to encrease the debug level...(by the way how can I do that??) Now my output in the dos-Tomcat window is this ( I'm creating a pdf document 99 pages long): [INFO] [99] [INFO] [86] [INFO] [87] [INFO] [88] [INFO] Parsing of document complete, stopping renderer [INFO] [89] and it seems

Re: fop + servlet + multisession

2003-02-03 Thread Fabrizio Tringali
ciao Gian Piero, this is the snippet to set the log level to debug -- //Setup logger Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_DEBUG); driver.setLogger(logger); MessageHandler.setScreenLogger(logger); -- and sometimes the

Antwort: Re: multithreading issues - FOP, TIFFRenderer, Solaris 4-proc machine, pja x-server

2003-02-03 Thread reto . blunschi
ok, I run the same thing with PDFRenderer, and I found no problems there. This means that the multithreading issue is either within a) AWTRenderer b) TIFFRenderer (subclass of AWTRenderer) c) pja X-Server emulation. Since the issue is, that fontsize-changes from one Renderer influence another

RE: Generating PDF on the fly using on the fly XML

2003-02-03 Thread robert_hitchins
Try looking into Cocoon...I use it to take data from a database, parse it into an xml file, transform it using XSLT into an FO file and render the resulting FO file as PDF on the fly...it handles pictures/text/forms just fine. You can find it at www.apache.org/Cocoon. Hope this helps! Bob

Re: fop + servlet + multisession

2003-02-03 Thread Gian Piero Bottini
Thanks a lot but sometimes (with 3 session of IE) tomcat stops without exception or without particolar debug messages... Somebody have any ideas?? Could be a memory problem?? Regards Gian Piero - Original Message - From: Fabrizio Tringali [EMAIL PROTECTED] To: [EMAIL PROTECTED]

external-destination

2003-02-03 Thread Lucian Opris
Hi, The external-destination on basic-link is not working if I save the pdf locally. I'm getting the following massage The specified file http:/...com/pdf/test.pdf does not exist but I can see the pdf in browser. It worked fine when I open the pdf in browser. Thanks Lucian Opris

Using FopServlet with ISO-8859-1

2003-02-03 Thread Rob Staveley \(Tom\)
I've got an XML document encoded with ISO-8859-1 for which I have an XSL-FO which also outputs ISO-8859-1. This works nicely using the command line Fop. However, using the same XML and XSL with FopServlet I find that accented characters get clobbered in the retrieved PDF. It happens with Mozilla

Different JRE versions' affect on extent/margin(s)

2003-02-03 Thread Clay Leeds
In testing my application, I've noticed that different JRE's produce differing FOP output. Specifically, Java 1.3.1_04 tends to require more space for region-before region-after than Java 1.4.1_01. If I use the 1.4.1 extents/margin(s) with 1.3.1, I get a Some static text did not fit error,

RE: Using FopServlet with ISO-8859-1

2003-02-03 Thread Rob Staveley \(Tom\)
It was indeed the default charset. I've fixed it by explicitly setting the charset in the InputStreamReader used by the file fetcher. BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream(),ISO-8859-1)); Again, apologies for going off topic, but I hope this might be of some

RE: FOP extension functions

2003-02-03 Thread Matthew L. Avizinis
When I run FOP I get the following messages when it gets to the WritePageNumber extension function. Any suggestions? I have the idea that the extension function properties are not being mapped correctly -- am I right in this? thanks in advance. [INFO] FOP 0.20.4 [INFO] building formatting object

How to include an external graphic using a relative path

2003-02-03 Thread Gustavo Lopez
Using FOP, I succesfully wrote a servlet to generate PDF's from in-memory DOM object's containing XSL-FO markup. I able to embed graphics files by specifying a physical path as in: fo:external-graphic src=url(/project/img/image.gif)/ However, since this is a web application, I need to be able

Re: footnote in a list body

2003-02-03 Thread J.Pietschmann
Karen Mergner wrote: I have to insert footnotes in my document. It works fine, if the footnote is in a paragraph. But if the footnote is in a list, the footnote has the same indent as the list body and it overwrites the last text rows at the bottom of the page. Oddly enough, the indentation may

Re: Antwort: Re: multithreading issues - FOP, TIFFRenderer, Solaris 4-proc machine, pja x-server

2003-02-03 Thread J.Pietschmann
[EMAIL PROTECTED] wrote: ok, I run the same thing with PDFRenderer, and I found no problems there. This means that the multithreading issue is either within a) AWTRenderer b) TIFFRenderer (subclass of AWTRenderer) c) pja X-Server emulation. Since the issue is, that fontsize-changes from one

Re: external-destination

2003-02-03 Thread J.Pietschmann
Lucian Opris wrote: The external-destination on basic-link is not working if I save the pdf locally. I'm getting the following massage The specified file http:/...com/pdf/test.pdf does not exist but I can see the pdf in browser. It worked fine when I open the pdf in browser. The tool you use

Re: Prb: Using bold fonts with FOP??

2003-02-03 Thread J.Pietschmann
Hugo Oliveira wrote: My problem is that I want to use the courier Font, normal and bold. I get the courier font file from my /WINNT/Fonts/ directory and generate the XML file for the two fonts, courier new (cour.ttf) and courier new bold (courbd.ttf). When I generate the pdf file I have two

Re: How to include an external graphic using a relative path

2003-02-03 Thread Oleg Tkachenko
Gustavo Lopez wrote: Using FOP, I succesfully wrote a servlet to generate PDF's from in-memory DOM object's containing XSL-FO markup. I able to embed graphics files by specifying a physical path as in: fo:external-graphic src=url(/project/img/image.gif)/ However, since this is a web

RE: external-destination

2003-02-03 Thread Lucian Opris
Hi, I'm using Adobe to see the pdf. The issue is only when I've tried to use a pdf as external-destination; if I'm using another extension for that file (.xml, .xsl etc.) the link is fine when I save the pdf locally. Thanks Lucian Opris

Re: Antwort: Re: multithreading issues - FOP, TIFFRenderer, Solaris 4-proc machine, pja x-server

2003-02-03 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote: ok, I run the same thing with PDFRenderer, and I found no problems there. This means that the multithreading issue is either within a) AWTRenderer b) TIFFRenderer (subclass of AWTRenderer) c) pja X-Server emulation. Since the issue is, that fontsize-changes from one

Re: external-destination

2003-02-03 Thread Oleg Tkachenko
Lucian Opris wrote: I'm using Adobe to see the pdf. The issue is only when I've tried to use a pdf as external-destination; if I'm using another extension for that file (.xml, .xsl etc.) the link is fine when I save the pdf locally. That reminds me bug #9885 -

Re: Block Problem

2003-02-03 Thread Oleg Tkachenko
Jim Chundevalel wrote: I'm trying to generate an XSL:FO document on the fly by taking contents from an XML file. My XML file looks like this. DATATEXT SECTIONS SECTION HEADINGTest One/HEADING MATTERThis is some

Re: Block Problem

2003-02-03 Thread J.Pietschmann
Jim Chundevalel wrote: Now, I want to underline certain words contained in the MATTER Node. For this, I was thinking of doing like this in the XML document. MATTER This is some fo:inline text-decoration=underlineother/fo:inline text. /MATTER (After referencing the fo namespace at the

Re: Different JRE versions' affect on extent/margin(s)

2003-02-03 Thread Oleg Tkachenko
Clay Leeds wrote: In testing my application, I've noticed that different JRE's produce differing FOP output. Specifically, Java 1.3.1_04 tends to require more space for region-before region-after than Java 1.4.1_01. If I use the 1.4.1 extents/margin(s) with 1.3.1, I get a Some static text did

cannot render a solid border around a table row

2003-02-03 Thread Gustavo Lopez
I can render a solid border around a table and around a table cell, but I cannot specify a solid border around a table row as in: fo:table-row border-bottom-color=black border-bottom-width=0.5pt border-bottom-style=solid I am using the following configuration: fop 0.20.4 jre 1.3.1_06 /**

Re: cannot render a solid border around a table row

2003-02-03 Thread Oleg Tkachenko
Gustavo Lopez wrote: I can render a solid border around a table and around a table cell, but I cannot specify a solid border around a table row as in: fo:table-row border-bottom-color=black border-bottom-width=0.5pt border-bottom-style=solid It seems to be very old bug #2475, see

Re: Different JRE versions' affect on extent/margin(s)

2003-02-03 Thread Clay Leeds
Oleg Tkachenko wrote: Clay Leeds wrote: In testing my application, I've noticed that different JRE's produce differing FOP output. Specifically, Java 1.3.1_04 tends to require more space for region-before region-after than Java 1.4.1_01. If I use the 1.4.1 extents/margin(s) with 1.3.1, I get a

RE: Block Problem

2003-02-03 Thread Jim Chundevalel
Hi, I tried using xsl:copy-of select=MATTER/. But FOP gives me an erro saying NULL. All other code remains the same. Jim -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Monday, February 03, 2003 4:12 PM To: [EMAIL PROTECTED] Subject: Re: Block Problem

Borders in cell tags

2003-02-03 Thread Paulo Gustavo Benfatti
Hi All, I tried to render a border minor than 1pt, but i only obtained results in table tag, but in cell tag i did not obtain any result. There is a way to render borders minor than 1pt in cell tag? Thanks, Paulo Benfatti ___