RE: Omitting content length
Well, the alternative is chunked transfer-coding (which can be used on either the request or response payloads). This is completely defined by HTTP 1.1, and _must_ be accepted in both directions by HTTP 1.1 compliant apps, so if you send it to a recent IE browser it should know what to do with it. I assume. :-) In the context of servlet engines it doesn't make sense for a servlet to be aware that a _request_ was transfer-coded, whether chunked or anything else. The HTTP layer should handle this transparently. If it doesn't then it will probably choke before your servlet ever gets a chance at it (this is what should happen anyway). Going in the other direction one can only that the servlet engine/HTTP server combo will pick up on the fact that, at the instant that it must commit the response, it doesn't have a content-length, and will therefore switch over to chunked transfer coding, thereby keeping the connection open _and_ allowing you not to worry about calculating an overall content-length. I see from mailing lists that the Tomcat people were talking about chunked transfer coding for Tomcat 3.2/3.3 a year or more ago - do they have it properly implemented in 4.0 - I don't know. Worth checking out. If all else fails I'd suggest that your servlet do all the work itself, but my gut feeling is that if the servlet engine doesn't do chunked transfer coding anyway, it's hardly going to properly react to the fact that your servlet is doing it itself - it'll probably close the connection on you anyway after committing the first buffer. Hope that helps. Regards, AHS -Original Message- From: Brian O'Kelley [mailto:[EMAIL PROTECTED] Sent: April 15, 2002 7:25 PM To: [EMAIL PROTECTED] Subject: Omitting content length Ignore the question below - it works (if anyone needs SAX example, this is decent). It looks like what is happening is that I was writing this directly to a servlet's outputstream, so I never set the content length header. This made IE puke, although Lynx caught it ok. I've read through the threads about how IE handles content length header and requests the document twice. Is there any alternative to writing to a byte array to calculate the length before rewriting to the servlet's output stream? I'd like to avoid the memory consequences. Thanks, Brian -Original Message- From: Brian O'Kelley [mailto:[EMAIL PROTECTED] Sent: Monday, April 15, 2002 5:28 PM To: [EMAIL PROTECTED] Subject: FOP and SAX I'm trying to take an XML document, combine it with an XSL stylesheet, and spit it to PDF using SAX events, and I'm having trouble finding an example that works. Here's my code (using Fop 0.20.3): TransformerHandler tHandler = XSLTranslateFactory. getHandler(FopInput.xsl) ; // gets TransformerHandler from this file Driver fopDriver = new Driver() ; fopDriver.setRenderer(Driver.RENDER_PDF) ; fopDriver.setOutputStream(out) ; ContentHandler cHandler = driver.getContentHandler() ; XMLReader reader = XMLReaderFactory.createXMLReader() ; reader.setContentHandler(tHandler) ; reader.setProperty(http://xml.org/sax/properties/lexical-handler;, tHandler) ; tHandler.setResult(new SAXResult(cHandler)) ; reader.parse(source) ; Any ideas? Thanks, Brian
RE: SVG rendering in release 0.20.3
Then why would the image display correctly in the Batik viewer 1_1_1? And why would it render correctly when I use the previous version of the batik.jar instead of the current one? This is what is mysterious to me. Still wondering and trying, matthew l. avizinis -Original Message- From: Keiron Liddle [mailto:[EMAIL PROTECTED] Sent: Monday, April 15, 2002 3:05 AM To: [EMAIL PROTECTED] Subject: Re: SVG rendering in release 0.20.3 The examples in the docs/examples/svg/ directory work fine, so how is yours different? Do these examples work for you? I suspect the svg referenced in the image is invalid. On 2002.04.13 18:51 Matthew L. Avizinis wrote: The rect renders fine. It's actually the image that actually causes the problem. Here, I have used an svg that I knew worked previously. I have tried an href URI that is relative and an absolute path, e.g. D:\pictures\test.svg. I have tried a URL, e.g. http://test.gleim.com/pictures/test.svg. I have tried file:[EMAIL PROTECTED], file:/[EMAIL PROTECTED], file://[EMAIL PROTECTED], and file:///[EMAIL PROTECTED] I believe I have tried every option I have ever seen suggested in this list to no avail.
Re: spna=all didn't work for fo:cell
Argyn, fo:table-row fo:table-cell number-columns-spanned=3fo:block margin-left=2cmfo:inline font-weight=boldCOMMENTS: /fo:inlinexsl:value-of select=COMPONENT_ID//fo:block/fo:table-cell /fo:table-row Where number-columns-spanned=3 3 or 4 or 5 or how ever many columns are in your table Chuck Paussa Argyn Kuketayev wrote: this didn't work either :( fo:table-row fo:table-cell fo:block span=all margin-left=2cmfo:inline font-weight=boldCOMMENTS: /fo:inlinexsl:value-of select=COMPONENT_ID//fo:block/fo:table-cell /fo:table-row -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Monday, April 15, 2002 6:47 PM To: [EMAIL PROTECTED] Subject: Re: spna=all didn't work for fo:cell Argyn Kuketayev wrote: I had to put number-columns-spanned=100 instead of span=all in fo:column element, because the latter didn't work. is it a bug? From the spec at http://www.w3.org/TR/xsl/slice7.html#span span=all: Specifies if a block-level object should be placed in the current column or should span all columns of a multi-column region. This property is not intended to be used on table cells. J.Pietschmann
Re: spna=all didn't work for fo:cell
Argyn Kuketayev wrote: this didn't work either :( fo:table-row fo:table-cell fo:block span=all margin-left=2cmfo:inline font-weight=boldCOMMENTS: /fo:inlinexsl:value-of select=COMPONENT_ID//fo:block/fo:table-cell /fo:table-row It shouldn't, span=all doesn't work *inside* tables. It is not designed for declaring table cells spanning multiple table columns, thats what number-columns-spanned is for. What's your problem? J.Pietschmann
Re: [Fwd: ZapfDingbats]
J.Pietschmann wrote: Patrick Andries wrote: lt;fo:block text-align="center" font="ZapfDingbats"gt; amp;#x2766; lt;/fo:blockgt; Why doesn't this print me a vignet ? The Unicode character Reference at http://www.unicode.org/charts/charindex.html says U+2766 is "aldus leaf", whatever this is. Ein Weinblatt gezeichnet durch Aldus. I tried to include it (I see it in Netscape Messenger) : It seems to print correctly with FOP 0.20.3. 1. does you FO file look exactly as above, with all the escaped stuff? No, I didn't want any program to interpret it (Messenger does). 2. Try font-family="ZapfDingbats", the font property not yet implemented. That's an idea. And it did the trick. Danke. P. Andries
Re: Omitting content length
There was a recent post on chunked transfer. I haven't checked it out, but it might help you. http://marc.theaimsgroup.com/?l=fop-devm=101791907122593w=2 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
size of pdf
Hi I createt a 3 page PDF with a FO file. On every Page is a Header and a Footer SVG grafic.I used a page-sequence-master for the body text and I made one before and after code block like this: !-- before region -- fo:static-content flow-name=xsl-region-before !-- the header grafic -- fo:block-container height=4cm width=21cm top=0cm left=0cm position=absolute fo:block space-before.minimum=0cm space-before.optimum=0cm space-before.maximum=0cm fo:external-graphic src={file:images/head.svg}//fo:block /fo:block-container !-- Title -- /fo:static-content My Problem is, that these SVG Grafics have a very big size, so my PDF File increases his size extremly whit every new page. Its always the same svg grafic! Is there a option or something else to include this picture just one time in the pdf and always make a reference on the pic when it use it?? thanks for help and sorry for my bad school english ;)
Sending generated PDF directly to printer
Hello, is there examples or docs to send the result of an FOP transformation to a printer ? thanks.
Re: Sending generated PDF directly to printer
yes, on this page: http://xml.apache.org/fop/output.html On 2002.04.16 09:44 RAYMOND Romain wrote: Hello, is there examples or docs to send the result of an FOP transformation to a printer ? thanks.
AW: Sending generated PDF directly to printer
Hello, if your printer supports PDF then calling -pdf \\ServerName\PrinterName should work. I am currently myself trying to directly send PostScript and this works really good (-ps \\ServerName\PrinterName) Greetings, Patrick Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH Service Prozesse Retail Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen Telefon: (0711)972-2437 Telefax: (0711)972-1949 E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.de -Ursprüngliche Nachricht- Von: RAYMOND Romain [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 09:44 An: [EMAIL PROTECTED] Betreff: Sending generated PDF directly to printer Hello, is there examples or docs to send the result of an FOP transformation to a printer ? thanks.
Re: size of pdf
There's currently no such option AFAIK. I've got the same problem, although I don't have such big graphics. This will eventually be improved. Work-around: If you include this header graphic on every page in your document you could skip it entirely in the FO file and create an overlay page as a PDF with only the ever repeating stuff. Then you have to use some PDF touch-up tool to include the overlay page in the target PDF and apply the overlay on every page. Another toolset I forgot to mention yesterday: http://www.pdf-tools.com I createt a 3 page PDF with a FO file. On every Page is a Header and a Footer SVG grafic.I used a page-sequence-master for the body text and I made one before and after code block like this: !-- before region -- fo:static-content flow-name=xsl-region-before !-- the header grafic -- fo:block-container height=4cm width=21cm top=0cm left=0cm position=absolute fo:block space-before.minimum=0cm space-before.optimum=0cm space-before.maximum=0cm fo:external-graphic src={file:images/head.svg}//fo:block /fo:block-container !-- Title -- /fo:static-content My Problem is, that these SVG Grafics have a very big size, so my PDF File increases his size extremly whit every new page. Its always the same svg grafic! Is there a option or something else to include this picture just one time in the pdf and always make a reference on the pic when it use it?? 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: Sending generated PDF directly to printer
Patrick wrote: if your printer supports PDF then calling -pdf \\ServerName\PrinterName should work. Hi Patrick, what system are you using that does this? I have been trying to get it to work on NT and it won't work because the path to the printer is always invalid. Do you know how I can get round this, or does it only work on unix / linux? Thanks for your help, TOm Weissmann
RE: Sending generated PDF directly to printer
Thanks Patrick, my problem is getting the path to work - I've tried using the path to the printer from Network Neighbourhood, and from the Printers folder, but no joy. Regards, Tom -Original Message- From: Chaumette, Patrick [mailto:[EMAIL PROTECTED] Sent: 16 April 2002 10:36 To: '[EMAIL PROTECTED]' Subject: AW: Sending generated PDF directly to printer Hello Tom, we use NT here. The printer is installed as a network printer on a NT server. With PostScript I do the call with -ps \\ServerName\PrinterName and it works. If you program in Java you will have to do something like ServerName\\PrinterName for the String used in the new File(fileName) for the Outputstream. Hope this helps, greetings, Patrick Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH Service Prozesse Retail Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen Telefon: (0711)972-2437 Telefax: (0711)972-1949 E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.de -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 10:54 An: [EMAIL PROTECTED] Betreff: RE: Sending generated PDF directly to printer Patrick wrote: if your printer supports PDF then calling -pdf \\ServerName\PrinterName should work. Hi Patrick, what system are you using that does this? I have been trying to get it to work on NT and it won't work because the path to the printer is always invalid. Do you know how I can get round this, or does it only work on unix / linux? Thanks for your help, TOm Weissmann
to J.Pietschmann (about keep-together)
If block elements should be kept together, you can put them into a one-column blind table. Thank you for your advice but what do you mean by blind table? Franck MARTIN
RE: spna=all didn't work for fo:cell
I thought there must be an attribute of the cell which makes it to span over all the row. I thought it's span=all. it appears that it's not. no problem :) -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Monday, April 15, 2002 7:12 PM To: [EMAIL PROTECTED] Subject: Re: spna=all didn't work for fo:cell Argyn Kuketayev wrote: this didn't work either :( fo:table-row fo:table-cell fo:block span=all margin-left=2cmfo:inline font-weight=boldCOMMENTS: /fo:inlinexsl:value-of select=COMPONENT_ID//fo:block/fo:table-cell /fo:table-row It shouldn't, span=all doesn't work *inside* tables. It is not designed for declaring table cells spanning multiple table columns, thats what number-columns-spanned is for. What's your problem? J.Pietschmann
Several questions about FOP
Hi all, i've got several questions about PDF generation with FOP. We want to use a open-source implementation of XSL-FO in our project, but stumbled across several open topics. Perhaps you can help us with these: 1) Can one use FOP on a host-environment, ie. IBM mainframe computers, or does EBCDIC somehow cause problems 2) Can one use font A, even is font A is _not_ installed on a client? Is this done automatically when rendering the PDF, or do I have to include additional fonts somehow in the PDF? 3) Is linearilazation possible, ie. displaying the first page while loading the rest? In Acrobat Reader, this can be queried in the File- Document Info-General-Optimized = true|false 4) How well does FOP perform in comparision to other XSL-FO implementations? Thanks for your time in advance, Sebastian Will
Using FOP to create a query string from XML and XSL
Is it possible to create a query string using FOP? I have been producing PDF's using the FileOutputStream which is working well. Do I just use a different OuputStream to create a query string that can be used to query a database? Thanks
Re: Several questions about FOP
At 14:29 16/04/2002, Sebastian H. Will wrote: Hi all, i've got several questions about PDF generation with FOP. We want to use a open-source implementation of XSL-FO in our project, but stumbled across several open topics. Perhaps you can help us with these: 1) Can one use FOP on a host-environment, ie. IBM mainframe computers, or does EBCDIC somehow cause problems In my year and a half of using FOP I have heard of several people with problems using EBCDIC and nothing much recently. Maybe they stopped using FOP or maybe they have no problems. You will probably have to suck it and see. 3) Is linearilazation possible, ie. displaying the first page while loading the rest? In Acrobat Reader, this can be queried in the File- Document Info-General-Optimized = true|false I think this is possible but I don't know whether I recommend it. If you generate on the fly then you will innevitably hit issues regarding Content Length and IE resulting in you generating the whole PDF before serving any of it at all. Is linearilazation a property of the PDF, the reader, or the thing serving the PDF? 4) How well does FOP perform in comparision to other XSL-FO implementations? FOP's strength is not really in its speed or memory use. It performs reasonably when compared to other engines (so I am told) but other commercial xsl:fo engines may be faster for what you need to do. Goodluck Alex McLintock Openweb Analysts Ltd, London: Software For Complex Websites http://www.OWAL.co.uk/ Free Consultancy for London Companies thinking of Open Source Software.
Re: Using FOP to create a query string from XML and XSL
At 14:39 16/04/2002, Ian Taylor wrote: Is it possible to create a query string using FOP? I have been producing PDF's using the FileOutputStream which is working well. Do I just use a different OuputStream to create a query string that can be used to query a database? Thanks You'll forgive me for suggesting that you are a bit confused, I sure am. FOP creates page descriptions suitable for printing eg PDF, RTF, or other more exotic formats. I can't see any reason for the output of FOP to be used for a query string. Do you perhaps mean the output of Xalan (the XSLT engine)? If so then perhaps an XSL or Xalan mailing list may be more appropriate. You will need to give a better explanation of what you need (and what you already understand) before people will be able to help you. Alex Openweb Analysts Ltd, London: Software For Complex Websites http://www.OWAL.co.uk/ Free Consultancy for London Companies thinking of Open Source Software.
Re: Several questions about FOP
i've got several questions about PDF generation with FOP. We want to use a open-source implementation of XSL-FO in our project, but stumbled across several open topics. Perhaps you can help us with these: 1) Can one use FOP on a host-environment, ie. IBM mainframe computers, or does EBCDIC somehow cause problems See Alex's comment. Search the mail archives for info. 2) Can one use font A, even is font A is _not_ installed on a client? Is this done automatically when rendering the PDF, or do I have to include additional fonts somehow in the PDF? You can use font embedding. It's documented on the FOP website. 3) Is linearilazation possible, ie. displaying the first page while loading the rest? In Acrobat Reader, this can be queried in the File- Document Info-General-Optimized = true|false Not with FOP, I think. Linearization requires all PDF objects to be in the right order within the PDF. FOP can't don that, yet. You need to postprocess a PDF if you want that. 4) How well does FOP perform in comparision to other XSL-FO implementations? See Alex's comment. 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
PDF Plugin Launch
Hello, I am using FOP embedded in a servlet. I use the following two lines to inform the browser that the result stream is a PDF file: response.setContentType(application/pdf); response.setHeader(Content-disposition, attachment; filename =\report.pdf\); Upon receiving the PDF file, Internet Explorer will launch the File Download dialog that asks What would you like to do with this file? with the options being Save or Open. This is not the behavior I want. I want Internet Explorer to simply launch the Acrobat plugin to view the PDF within the context of the browser. This is what IE does if there is simply a link in the HTML that points to file.pdf. Coincidentally, Mozilla launches the plugin to view the PDF, as desired. How can I set the content type and/or the header so that IE launches the Acrobat plugin rather than saving the PDF to file or launching Acrobat externally?
AW: PDF Plugin Launch
The disposition-type attachment says, that the display should not start automatic but continegent upon some further action of the user. Try using disposition-type inline or dont set this header and use instead of this only the contentType header Sample: response.setHeader(Content-disposition, inline; filename=\report.pdf\); or response.setContentType(application/pdf); Michael
AW: PDF Plugin Launch
Thanks for the help. Unfortunately I can't get anything to work. If I use inline instead of attachment, then nothing is shown. Same if I only use response.setContentType(application/pdf). I don't know what the problem is. I noticed the earlier question about getting the file name to appear. My file name does appear correctly when using the Save As dialog. I think IE has some bugs. - Forwarded by Ryan Asleson/sfm/spc on 04/16/2002 09:54 AM - Michael Heinen [EMAIL PROTECTED]To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] exum.de cc: Subject: AW: PDF Plugin Launch 04/16/2002 09:48 AM Please respond to fop-user The disposition-type attachment says, that the display should not start automatic but continegent upon some further action of the user. Try using disposition-type inline or dont set this header and use instead of this only the contentType header Sample: response.setHeader(Content-disposition, inline; filename=\report.pdf\); or response.setContentType(application/pdf); Michael
Transformation matrix wrong in PDF for some SVG files
Hi Foppers For once, I'm here with a problem. It's driving me crazy (probably because I'm not so good at math). I've got a few SVG files that work without problems and I've got a few that FOP 0.20.3cvs (14.2.2002) and FOP 0.20.4cvs (today) won't handle. I've identified the problem spot but haven't been able to find a fix, yet. Acrobat 5 will show the error message Wrong operand type because the second transformation matrix written by PDFRenderer.renderSVGDocument() is 0 0 0 0 0 0 cm instead of x 0 0 x 0 0 cm (where x 0). Here's the except from the PDF: snip/ q q 28.346 811.343 m 212.346 811.343 l 212.346 559.343 l 28.346 559.343 l h W n 1.0 0 0 -1.0 28.346 811.343 cm 0 0 0 0 0 0 cm q 0 0 m 6500 0 l 6500 8900 l 0 8900 l 0 0 l h W n 0 g 0 G 2607 4214 m 2367 4225 l 2136 4259 l 1909 4314 l 1687 4390 l 1467 4485 l snip what=more PDF/ I have attached a small FO file and an external SVG file describing a male sign. male.svg alone renders fine in Adobe SVG Plugin, CorelDraw and Batik v1.1 Browser. If I exchange the male.svg by boxes.svg from docs/examples/svg, everything works as expected. Thanks in advance for any help! 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 attachment: male.zip
Re: AW: PDF Plugin Launch
Inline works with my servlet fine (but I have the filename problem) Did you set content-length header ? No, I don't set the content-length header. This is all I do: response.setContentType(application/pdf); response.setHeader(Content-Disposition, attachment;filename =\report.pdf\); I use IE 5.5, with Service Pack 2 (I think). Has anyone by chance used IE 6?
RE: Absolute positioning?
Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Thanks, greetings, Patrick Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH Service Prozesse Retail Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen Telefon: (0711)972-2437 Telefax: (0711)972-1949 E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.de -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 An: FO Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
Re: Absolute positioning?
Patrick, First. Don't cross post to the dev and user list! This is a user list question and the user list is a great resource for your answers. Don't annoy the developers. Next. Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Thanks, greetings, Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
RE: Absolute positioning?
Hi Chuck, thanks for the information, I thought it was some FOP implementation specific problem so I posted it into dev. Will try to do better next time, sorry. I tried like below your tipp but did do nothing. It only shows the first Test on the top of the page. Doesnt bottom refer to the distance between the bottom of the xsl-region and the bottom of the block-container ? Any ideas ? Greetings, Patrick fo:static-content flow-name=xsl-region-before fo:block-container height=8mm width=190mm bottom=0mm left=0mm text-align=center position=absolute border=solid 1px white fo:block border=solid Test /fo:block fo:block border=solidTest2 /fo:block fo:block border=solidTest3 /fo:block /fo:block-container /fo:static-content Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH Service Prozesse Retail Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen Telefon: (0711)972-2437 Telefax: (0711)972-1949 E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.de -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:11 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, First. Don't cross post to the dev and user list! This is a user list question and the user list is a great resource for your answers. Don't annoy the developers. Next. Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Thanks, greetings, Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
Re: Future release and full compliancy
MARTIN Franck wrote: Does anyone have an idea of when is to occur the next fop release and how The next release (0.20.4), which will be a maintenance release without much new functionality should be out in some weeks. long is it going to take for fop to be full compliant w/ the W3 recommendation? Quite some time ;-) Seriously, nobody can give you an concrete answer here. Franck MARTIN Christian
Re: Absolute positioning?
Patrick, The block container size needs to be big enough to fit the contents. Any contents that don't fit in the height and width get cut off. Make the height 24mm. The border attribute needs all 3 components, solid 1px black I'm not sure if bottom is implemented. You can calculate the top by using (region-before-height - block-container-height) I haven't gotten to the position elements in my testing. Chuck Chaumette, Patrick wrote: Hi Chuck, I tried like below your tipp but did do nothing. It only shows the first Test on the top of the page. Doesnt bottom refer to the distance between the bottom of the xsl-region and the bottom of the block-container ? Any ideas ? Greetings, Patrick fo:static-content flow-name=xsl-region-before fo:block-container height=8mm width=190mm bottom=0mm left=0mm text-align=center position=absolute border=solid 1px white fo:block border=solid Test /fo:block fo:block border=solidTest2 /fo:block fo:block border=solidTest3 /fo:block /fo:block-container /fo:static-content Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:11 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
RE: Absolute positioning?
Hi Chuck, sure I can set the top attribute, but then I will have to take care that the table in the block container will have to fit 100% with the start of the table of the xsl-region-body. I hoped with using bottom I was always sure to get the bottom of the last block element in xsl-region-before attached correctly to the first block of xsl-region-body. What do you think ? Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH Service Prozesse Retail Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen Telefon: (0711)972-2437 Telefax: (0711)972-1949 E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.de -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:38 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, The block container size needs to be big enough to fit the contents. Any contents that don't fit in the height and width get cut off. Make the height 24mm. The border attribute needs all 3 components, solid 1px black I'm not sure if bottom is implemented. You can calculate the top by using (region-before-height - block-container-height) I haven't gotten to the position elements in my testing. Chuck Chaumette, Patrick wrote: Hi Chuck, I tried like below your tipp but did do nothing. It only shows the first Test on the top of the page. Doesnt bottom refer to the distance between the bottom of the xsl-region and the bottom of the block-container ? Any ideas ? Greetings, Patrick fo:static-content flow-name=xsl-region-before fo:block-container height=8mm width=190mm bottom=0mm left=0mm text-align=center position=absolute border=solid 1px white fo:block border=solid Test /fo:block fo:block border=solidTest2 /fo:block fo:block border=solidTest3 /fo:block /fo:block-container /fo:static-content Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:11 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
Re: Absolute positioning?
Patrick, Sounds good to me. Try it and see if it works. (Then write to the list to tell us if it does.) The bottom attribute is definately part of the spec. Chuck Chaumette, Patrick wrote: Hi Chuck, sure I can set the top attribute, but then I will have to take care that the table in the block container will have to fit 100% with the start of the table of the xsl-region-body. I hoped with using bottom I was always sure to get the bottom of the last block element in xsl-region-before attached correctly to the first block of xsl-region-body. What do you think ? -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:38 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, The block container size needs to be big enough to fit the contents. Any contents that don't fit in the height and width get cut off. Make the height 24mm. The border attribute needs all 3 components, solid 1px black I'm not sure if bottom is implemented. You can calculate the top by using (region-before-height - block-container-height) I haven't gotten to the position elements in my testing. Chuck Chaumette, Patrick wrote: Hi Chuck, I tried like below your tipp but did do nothing. It only shows the first Test on the top of the page. Doesnt bottom refer to the distance between the bottom of the xsl-region and the bottom of the block-container ? Any ideas ? Greetings, Patrick fo:static-content flow-name=xsl-region-before fo:block-container height=8mm width=190mm bottom=0mm left=0mm text-align=center position=absolute border=solid 1px white fo:block border=solid Test /fo:block fo:block border=solidTest2 /fo:block fo:block border=solidTest3 /fo:block /fo:block-container /fo:static-content Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:11 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
background-image and uri
Are background-images implemented in Fop 0.20.3 ? I get a message telling me no such function as url but no message telling me background-image not implemented... How can I specify the uri of the image otherwise ?
rendering more than one page
Does anyone know how to render more than one page in pdf. Can you please share some examples if you have any ? I am using Fop 0.20.3. Thanks naveen
FOP Servlet example problem
HI, I am trying the examples of FOP (0.20.3), most FO file run successfully except 'images.fo'. When I run FOP as a standalone application, all examples work fine, however, I encounter a problem when I try the servlet version. I deployed the fop.war in Tomcat 4.0.3. When I try the 'images.fo', the returned PDF do not have any images. The following messages displayed in the log of Tomcat. ERROR 10189 [fop ] (): Error while creating area : Error with image URL: ../../graphics/xml_feather.gif and no base directory is specified ERROR 10189 [fop ] (): Error while creating area : Error with image URL: ../../graphics/xml_feather_transparent.gif and no base directory is specified ERROR 10189 [fop ] (): Error while creating area : Error with image URL: ../../graphics/fop.jpg and no base directory is specified ERROR 10189 [fop ] (): Error while creating area : Error with image URL: ../../graphics/linux.bmp and no base directory is specified Then I modify the image file path from relative path to absolute path and retry. But this time have another exception, the root cause is listed below. java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument at org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFactory.jav a:46) at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:109) at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:125) at org.apache.fop.fo.flow.Block.layout(Block.java:262) at org.apache.fop.fo.flow.Block.layout(Block.java:262) at org.apache.fop.fo.flow.Flow.layout(Flow.java:156) at org.apache.fop.fo.flow.Flow.layout(Flow.java:113) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:296) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182) at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1398) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator .java:1019) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM LDocumentScanner.java:1256) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948) at org.apache.fop.apps.Driver.render(Driver.java:481) at org.apache.fop.apps.Driver.run(Driver.java:554) at FopServlet.renderFO(FopServlet.java:96) at FopServlet.doGet(FopServlet.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at
Re: PDF Plugin Launch
I wonder if this is a variation of the oft reported IE5 problem with recognizing document types. IE ignores (I think) content type and depends upon the 'pdf' extension. The extension gets mangled. To solve the problem, use 'a=b.pdf' as your extension name. Another exceedingly annoying issue is the interaction between Acrobat 5 and IE5. If you allow Acrobat to do its thing in the IE 5 browser window, eventually the connection will break and you'll be looking at a blank IE screen. The problem is in the ActiveX version of Acrobat used when Acrobat is opened within the browser. To assure that this will not happen, I'd advise running the Adobe reader outside the browser - this can be done by adjusting Acrobat's properties: in Acrobat 5.0 Edit-preferences-General Select 'options' in the left column, make sure checkbox next to Display PDF in Browser is unchecked. TJ - Original Message - From: Michael Heinen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 16, 2002 10:48 AM Subject: AW: PDF Plugin Launch The disposition-type attachment says, that the display should not start automatic but continegent upon some further action of the user. Try using disposition-type inline or dont set this header and use instead of this only the contentType header Sample: response.setHeader(Content-disposition, inline; filename=\report.pdf\); or response.setContentType(application/pdf); Michael
Re: PDF Plugin Launch
Can FOP be run on a Headless server without problems? I have a solaris Server that I am running this way and have a project that I would like to integrate FOP into. Anyone have any comments? Mik -- Mike JacksonWebObjects Developer Infoscribe Technologies, Ltd. Beavercreek Ohio, 45434 www.infoscribe.com
Re: Several questions about FOP
1) Can one use FOP on a host-environment, ie. IBM mainframe computers, or does EBCDIC somehow cause problems FOP is written in Java and Java uses UNICODE for characters. I know better than to suggest that EBCDIC won't be problematic but in theory it's not supposed to be a problem. Although it's been a while since I served on a battleship ;-) I understand that Big Blue now provide Linux on the Operating Systems formerly known as MVS and/or VM.
RE: Headless servers, not PDF Plugin Launch
Can FOP be run on a Headless server without problems? Yes. Add this option into the Java command: -Djava.awt.headless=true See the FOP FAQ for the Sun bug reference if you have problems. Regards, Roland Neilands Analyst/Programmer Pulse Mining Systems Pty Ltd (w) +612 4933 3300 (f) +612 4933 6732 (e) [EMAIL PROTECTED] This e-mail is solely for the use of the intended recipient and may contain information which is confidential or privileged. Unauthorised use of its contents is prohibited. If you have received this e-mail in error, please notify the sender immediately via return e-mail and then delete the original e-mail.
RE: rendering more than one page
I also need to do this with a fixed height table like the example border.fo: excess rows just get ignored, how would I make it start a new page (same format) with these instead, ideally with Continued ... printed to a field? Is this feasible? I haven't been able to find an example of this anywhere. Regards, Roland Neilands Analyst/Programmer Pulse Mining Systems Pty Ltd (w) +612 4933 3300 (f) +612 4933 6732 (e) [EMAIL PROTECTED] This e-mail is solely for the use of the intended recipient and may contain information which is confidential or privileged. Unauthorised use of its contents is prohibited. If you have received this e-mail in error, please notify the sender immediately via return e-mail and then delete the original e-mail. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 April 2002 4:24 AM To: [EMAIL PROTECTED] Subject: rendering more than one page Does anyone know how to render more than one page in pdf. Can you please share some examples if you have any ? I am using Fop 0.20.3. Thanks naveen