New babie question
I am havingHTML page with tables / images etcwhich i want to convert into PDF file as it is. Is there any direct way to convert it using FOP ? regards Manisha Do you Yahoo!? Send a seasonal email greeting and help others. Do good.
space between inline
Title: Message Hi, When I am using the following FO script for displaying "15th" (Expected), I am getting "15 th" (Actual). fo:inline font-family="Minion-Bold"15/fo:inlinefo:inline vertical-align="super" font-family="Minion-Bold" color="red" font-size="5pt"th/fo:inline An additional space is displayed in between two inline elements. Any help toresolve the same is greatly appreciated. Thanks, Kalu
Re: space between inline
On Dec 16, 2004, at 4:20 PM, Thirugnanam, Kalusivalingam wrote: Hi, When I am using the following FO script for displaying 15th (Expected), I am getting 15 th (Actual). fo:inline font-family=Minion-Bold15/fo:inlinefo:inline vertical-align=super font-family=Minion-Bold color=red font-size=5ptth/fo:inline This might work: fo:inline font-family=Minion-Bold15fo:inline vertical-align=super color=red font-size=5ptth/fo:inline/fo:inline Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: space between inline
Thanks for the quick response. Even this is giving me space between 15 and th. I am using FOP0.20.5. Thanks, Kalu -Original Message- From: The Web Maestro [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 4:35 PM To: [EMAIL PROTECTED] Subject: Re: space between inline On Dec 16, 2004, at 4:20 PM, Thirugnanam, Kalusivalingam wrote: Hi, When I am using the following FO script for displaying 15th (Expected), I am getting 15 th (Actual). fo:inline font-family=Minion-Bold15/fo:inlinefo:inline vertical-align=super font-family=Minion-Bold color=red font-size=5ptth/fo:inline This might work: fo:inline font-family=Minion-Bold15fo:inline vertical-align=super color=red font-size=5ptth/fo:inline/fo:inline Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New babie question
One shot conversion. HTML FO - PDF html2fo FOP http://html2fo.sourceforge.net/ -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 6:17 PM To: [EMAIL PROTECTED] Subject: New babie question I am having HTML page with tables / images etc which i want to convert into PDF file as it is. Is there any direct way to convert it using FOP ? regards Manisha Do you Yahoo!? Send a seasonal email greeting and help others. Do good. http://us.rd.yahoo.com/evt=29912/*http://celebrity.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New babie question
Hi, Well, you can definately do it if you write an XSL but you can achive it directly as well. Have a look on links:- http://www.activepdf.com/products/serverproducts/webgrabber/index.cfm http://www.adlibsys.com/Products-eXpressServer.html?source=googlecampaign=1group=multipleformatscreative=3 Hope it helps. Cheers. Arun From: Manisha Sathe [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: New babie question Date: Thu, 16 Dec 2004 16:16:34 -0800 (PST) I am having HTML page with tables / images etc which i want to convert into PDF file as it is. Is there any direct way to convert it using FOP ? regards Manisha - Do you Yahoo!? Send a seasonal email greeting and help others. Do good. _ Chat with 1000s of singles. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Let BharatMatrimony.com's Instant Messenger show you how. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multi-column page and background colors
Hi, I want to setup a page layout with 2 columns. The page background should have a background-color while the columns' backgrounds remain white. How is that possible? I did not find how to set the background for the whole page, but only for the columns, maybe it's a mix of padding's and backgrounds. Thx for you help. Soenke. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multi-column page and background colors
Sönke Ruempler wrote: Hi, I want to setup a page layout with 2 columns. The page background should have a background-color while the columns' backgrounds remain white. How is that possible? I did not find how to set the background for the whole page, but only for the columns, maybe it's a mix of padding's and backgrounds. Not totally clear on what you are trying to achieve, but couldnt you just set background color on the static regions and leave the body region without a background color? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multi-column page and background colors
On Dec 17, 2004, at 6:54 AM, Chris Bowditch wrote: Sönke Ruempler wrote: Hi, I want to setup a page layout with 2 columns. The page background should have a background-color while the columns' backgrounds remain white. How is that possible? I did not find how to set the background for the whole page, but only for the columns, maybe it's a mix of padding's and backgrounds. Not totally clear on what you are trying to achieve, but couldnt you just set background color on the static regions and leave the body region without a background color? Chris I think the user wants the bgcolor in the margins and between the columns. If nothing else, you should be able to add a background-image (the image would just be your one color) to the region-body, and then assign the background-color of each column to white. Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: space between inline
-Original Message- From: Thirugnanam, Kalusivalingam [mailto:[EMAIL PROTECTED] Hi, When I am using the following FO script for displaying 15th (Expected), I am getting 15 th (Actual). fo:inline font-family=Minion-Bold15/fo:inlinefo:inline vertical-align=super font-family=Minion-Bold color=red font-size=5ptth/fo:inline Not sure why why you need two fo:inlines for this... Just remember that the pieces of text can be considered inline areas even when not surrounded by an explicit fo:inline. The following code renders fine for me: fo:block font-family=Courier 15fo:inline vertical-align=super font-size=5ptth/fo:inline /fo:block So does: fo:block font-family=Helvetica some other text fo:wrapper font-family=Courier15fo:inline vertical-align=super font-size=5ptth/fo:inline/fo:wrapper /fo:block HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP and XInclude
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, Thank you Lars. It worked perfectly. But what i don't unserstand is, can i perform a transformation from xml (using XInclude) to pdf via FOP in one step? And if so, how? Why not try setting the SysProp in question before using FOP? Should work (in theory), since FOP relies on Xalan for the XSL Transform... HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with br/ tag
Hi, I have an HTML content which I am converting to PDF using FOP.I have problem with the carriage retrun tag br/. The new lines does not appear in the PDF. Any one has any idea abt it ? Please reply. Thanks and Regards Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: space between inline
Hi, Thanks for the response. Even if I use fo:wrapper, it still shows some space. Surprisingly if I move the create a new block with only 15th then it is working fine with inline/wrapper. But if I add this with some additional text, it still shows one character space between 15 and th. Thanks, Kalu -Original Message- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] Sent: Friday, December 17, 2004 10:06 AM To: [EMAIL PROTECTED] Subject: RE: space between inline -Original Message- From: Thirugnanam, Kalusivalingam [mailto:[EMAIL PROTECTED] Hi, When I am using the following FO script for displaying 15th (Expected), I am getting 15 th (Actual). fo:inline font-family=Minion-Bold15/fo:inlinefo:inline vertical-align=super font-family=Minion-Bold color=red font-size=5ptth/fo:inline Not sure why why you need two fo:inlines for this... Just remember that the pieces of text can be considered inline areas even when not surrounded by an explicit fo:inline. The following code renders fine for me: fo:block font-family=Courier 15fo:inline vertical-align=super font-size=5ptth/fo:inline /fo:block So does: fo:block font-family=Helvetica some other text fo:wrapper font-family=Courier15fo:inline vertical-align=super font-size=5ptth/fo:inline/fo:wrapper /fo:block HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Xalan preceding-sibling problem
I am attempting to compare the values in one node with the preceding node. When using the preceding-sibling on the first node, it retuns a null (which is good), but thereafter returns the value of the first node (only) as the tree is processed. If I use the axisName following:: or following-sibling:: then it works fine. I should be able to reverse my logic a bit and get it to work, but there has been a whole lot of testing trying to figure this out. The object of the test is to place a title row for each group of nodes in a table. Once I am returning the values I need from the preceding-sibling:: then I can build the xsl:if statement. Right now it's set to 1=1 to iterate through the nodes. I have reported this as a bug to the Apache XML buglist, but not having the expertise of many of the members, I'm unsure if it is a bug or maybe I'm expecting behavior that I won't get, given the way in which I'm doing things here. I would apreciate it very much if someone could confirm this works with another engine or explain why it won't work at all. I have been through MK's XSLT book working on a solution and by all rights this should work. It's not elegant, but hey, how do you eat an elephant? One bite at a time :=) XSLT Template - ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:fox=http://xml.apache.org/fop/extensions; xmlns:xalan=http://xml.apache.org/xslt; xsl:output method=xml indent=yes encoding=UTF-8 omit-xml-declaration=yes/ xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:fox=http://xml.apache.org/fop/extensions; !--Start master-sets-- xsl:commentStart master-sets/xsl:comment fo:layout-master-set fo:simple-page-master master-name=default-cover-master page-width=11in page-height=8.5in fo:region-body margin-top=0.50in margin-bottom=0.50in/ fo:region-before extent=0.50in background-color=white/ fo:region-after extent=0.40in background-color=white/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=default-cover-master fo:static-content flow-name=xsl-region-before fo:block text-align=center font-size=12pt font-weight=bold color=black Region Before /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:block text-align=center font-size=12pt font-weight=bold color=black Region After /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block text-align=center font-size=12pt font-weight=bold color=black Region Body /fo:block /fo:flow /fo:page-sequence !--Using for-each loop to get from sections-- fo:page-sequence master-reference=default-cover-master fo:static-content flow-name=xsl-region-before fo:block Page Header inserted here !--xsl:copy-of select=$PAGE-HEADER/ -- /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:block Page Footer Here !-- xsl:copy-of select=$PAGE-FOOTER/-- /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:table width=8in border=solid 1px black xsl:comment Count the number of repeated columns /xsl:comment fo:table-column width=1in xsl:attribute name=number-columns-repeated3/xsl:attribute /fo:table-column fo:table-body xsl:for-each select=MUInventory/Category !-- Outer Loop -- xsl:if test=1=1!-- self::node()[not(text()=preceding-sibling::node()/text())] This is the latest test that was not working-- fo:table-row fo:table-cell fo:blockxsl:value-of select=concat(text(),' - ', ./Type)/ and the following-sibling is xsl:value-of select=preceding-sibling::node()/Model/ /fo:block !-- Just change the preceding-sibling to following-sibling and the output will give you the proper value -- /fo:table-cell /fo:table-row /xsl:if fo:table-row xsl:for-each select=Make !-- Inner Loop -- fo:table-cell border=solid 1px black width=1in fo:block xsl:value-of select=../Year/./ /fo:block /fo:table-cell fo:table-cell border=solid 1px black width=1in fo:block xsl:value-of select=./ /fo:block /fo:table-cell fo:table-cell border=solid 1px black width=1in fo:block xsl:value-of select=../Model/./ /fo:block /fo:table-cell /xsl:for-each /fo:table-row /xsl:for-each /fo:table-body /fo:table /fo:flow /fo:page-sequence !-- add the blank Page at end of report...-- /fo:root /xsl:template /xsl:stylesheet XML File - !-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by your name here (Honeywell FMT) -- MUInventory name=Major Units xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=C:\fop\fop-0.20.5\files\poi.xsd CategoryMotorcycles TypeCruisers/Type MakeHarley Davidson/Make ModelXL1200 Sportster/Model Year2001/Year
RE: space between inline
-Original Message- From: Thirugnanam, Kalusivalingam Hi, Surprisingly if I move the create a new block with only 15th then it is working fine with inline/wrapper. But if I add this with some additional text, it still shows one character space between 15 and th. Strange... the only thing I can think of would be that you have something like: fo:inline15 fo:inline ...th or fo:inline15fo:inline ... th/fo:inline in which case there's a line separator in the source --flattened to a space during formatting. If this is so, be sure to avoid it. HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: space between inline
Thirugnanam, Kalusivalingam wrote: Thanks for the response. Even if I use fo:wrapper, it still shows some space. Do you use justified text (text-align=justify)? If so, you are almost out of luck. Either don't use justified text, or represent the 15th as a graphic, for example a SVG. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with br/ tag
[EMAIL PROTECTED] (Rohit) wrote: Hi, I have an HTML content which I am converting to PDF using FOP.I have problem with the carriage retrun tag br/. The new lines does not appear in the PDF. Any one has any idea abt it ? Please reply. There is no br element in the fo: namespace. IIRC, you can accomplish the same thing with an empty fo:block/ element: fo:blockText on first line.fo:block/Text on second line./block Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP, JSP, TOMCAT, IE .. How to make it works!!! Please help!!
Hi All, Im on known problem for a while. I searched all around the web but havent found an answer that matches my requirement. Its not directly a problem with FOP but rather a problem on own to make FOP works on tomcat. Il read all the stuff that explain how to make FOP works with IE in a servlet an its works. But thats not enough for the need of my application. So I want to know: -Is there a way I can have the PDF displayed on the browser as its generated on the server. Let say I start to generate a 1 pages document; I want the document to appear in the browser window as soon as possible. This way the user can start reading the document while the server finishes it. More, if the user closes the window while the server generates the document. Is there a way to stop the processing on the server? I want to have the smallest delay possible between the time the user click the button on is browser an the time he gets the 1st page displayed in the browser. I want a way, if possible, to stop the processing of a report that have been launched from a Window that have been closed. I read stuff about using chunked transfer-coding. Is that works? Any idea if I can found an example somewhere.I need to support IE6 and Firefox.Any help will be appreciated since I browsed all the web and I havent found something relevant.Thanks for your help, I really appreciate it!!/David
RE: Xalan preceding-sibling problem
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, I am attempting to compare the values in one node with the preceding node. When using the preceding-sibling on the first node, it retuns a null (which is good), but thereafter returns the value of the first node (only) as the tree is processed. Not completely sure, but the problem might be that: preceding-sibling::node() returns the first node on the preceding-sibling axis, but 'first' here being 'in document order'... (as in: take the set of all preceding-siblings and of that set, return the one that appears first in the source document) If I use the axisName following:: or following-sibling:: then it works fine. Yes, because here the immediately following (sibling) node is always also first one following in the document as well. Try: self::node()[not(text()=preceding-sibling::node()[1]/text())] IIC, the addition of '[1]' should make sure you return the immediately preceding-sibling. HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Xalan preceding-sibling problem
[EMAIL PROTECTED] wrote: I am attempting to compare the values in one node with the preceding node. ... self::node()[not(text()=preceding-sibling::node()/text())] ^^^ This expression will be true if at least one text node child of the context node is equal to at least one text node child of any of the preceding siblings of the context node. If you want to compare to the immediatly preceding sibling only, use text()=preceding-sibling::node()[1]/text() instead. Also this may or may not do what you want if the nodes in question have multiple text node children (may happen if they have mixed content). You'll probably want to use the folllowing form, which compares the string values of the nodes instead of the text node children: .=preceding-sibling::node()[1] Node comparision in XSLT are tricky until you get a grasp on working with sets (somewhat similar to SQL). Note further that this is a pure XSLT question, which would have better been asked on the XSLT list: http://www.mulberrytech.com/xsl/xsl-list/ J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hyphenation
robert frapples wrote: This leads me to believe that I should be using 7. With 7 or with 1 (and no other 1's), it still breaks: Frap- ples,Robert(Age- ncy) I also tried setting this in my {src-dir}/src/hyph/en.xml and recompiling fop.jar. Still no luck. Try running java -classpath ...fop.jar \ org.apache.fop.layout.hyphenation.HyphenationTree This class has a main function, which can be used for debugging (check the source for details). You can use this to check whether the problem is with the hyphenation librabry code and/or your pattern definitions or whether it is in the code invoking the hyphenator in the line layout. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Xalan preceding-sibling problem
i have found that different XSLT processors return nodes in the preceding-sibling axis differently. So in some cases the immediately preceding node is: preceding-sibling::node()[1] - but in some other cases this always returns the very first node in document order. In those cases you might want something like preceding-sibling::node()[last()] which takes the last of the preceiding-sibling nodes, which is the one immediately prior to the current node ... I don't recall which way xalan does it... -Riz Rizwan Virk CTO CambridgeDocs [EMAIL PROTECTED] personal: [EMAIL PROTECTED] From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Fri 12/17/2004 3:59 PM To: [EMAIL PROTECTED] Subject: Re: Xalan preceding-sibling problem [EMAIL PROTECTED] wrote: I am attempting to compare the values in one node with the preceding node. ... self::node()[not(text()=preceding-sibling::node()/text())] ^^^ This expression will be true if at least one text node child of the context node is equal to at least one text node child of any of the preceding siblings of the context node. If you want to compare to the immediatly preceding sibling only, use text()=preceding-sibling::node()[1]/text() instead. Also this may or may not do what you want if the nodes in question have multiple text node children (may happen if they have mixed content). You'll probably want to use the folllowing form, which compares the string values of the nodes instead of the text node children: .=preceding-sibling::node()[1] Node comparision in XSLT are tricky until you get a grasp on working with sets (somewhat similar to SQL). Note further that this is a pure XSLT question, which would have better been asked on the XSLT list: http://www.mulberrytech.com/xsl/xsl-list/ J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Xalan preceding-sibling problem
Andreas L. Delmelle wrote: Not completely sure, but the problem might be that: preceding-sibling::node() returns the first node on the preceding-sibling axis,... It returns a node set. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP, JSP, TOMCAT, IE .. How to make it works!!! Please help!!
Original Message- From: David Gagnon [mailto:[EMAIL PROTECTED] Hi, Is there a way I can have the PDF displayed on the browser as it's generated on the server. I think this obstacle isn't presented by FOP/TOMCAT... Actually, if you look at what most browsers usually do with PDFs --even those that aren't generated on-the-fly--, it isn't likely to be possible. Download first, then use a plugin to display it. Maybe a way to work around this is to not generate one huge PDF, but a lot of small ones, linked by fo:basic-links. That way, only the documents pointed to by the links the user visits will be generated (and will have to be downloaded before the user can start reading). HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP, JSP, TOMCAT, IE .. How to make it works!!! Please help!!
David Gagnon wrote: -Is there a way I can have the PDF displayed on the browser as its generated on the server. You mean a sort of streaming? Well, PDF isn't a formate well suited for this (in contrast to HTML, sans tables without colspecs), because there is an object directory in the PDF and FOP writes it at the end of the stream, as well as embedded fonts and the likes. It should be possible to get the PDF renderer pop up immediately in a non-IEx browser, but I suspect it would only show a blank page until the whole content is generated and downloaded. With IEx at least up to the IEx 6/AcrobatReader 5 combo there is the problem that the PDF plugin wont start unless there is a content-length HTTP header, which can of course only be set after the whole PDF has been generated. Any help will be appreciated since I browsed all the web and I havent found something relevant. Asking in a PDF or Adobe-related formum might get you further insights. It is mainly a PDF problem. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : FOP, JSP, TOMCAT, IE .. How to make it works!!! Please help!!
You mean a sort of streaming? Well, PDF isn't a formate well suited for this (in contrast to HTML, sans tables without colspecs), because there is an object directory in the PDF and FOP writes it at the end of the stream, as well as embedded fonts and the likes. It should be possible to get the PDF renderer pop up immediately in a non-IEx browser, but I suspect it would only show a blank page until the whole content is generated and downloaded. That's what I got when I tried yesterday .. On Firefox the plug-in starts but nothing have been displayed until the end :-( That's a really bad limitation! Thanks for your help!! /David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]