html output format
Hey all, I've spent a couple of hours searching for this with no luck, so feel justified in asking here now. If this is a really stupid question (read my post first), feel free to point it out (o: I have a requirement to edit a document, and then print it. The requirement had been just to print the document, with some basic merge functionality - so I implemented that using FOP for the printing side of it. Now that I need to edit it, my thought had been that I'd just go FOP - html - ekit (html editor) - html - html2fo - FOP - PCL long winded, but seems reasonable, basically all I'd have to do is some plumbing. Now, my question for the list is about going from FOP - html. I cant believe there isn't a standard html output or xsl stylesheet. Most of my searching has come up with answers along the lines of it'd be better to take the initial xml that you use for generating the .fo and applying XSL to that to make html that way. However, I dont have any initial xml, and besides, I dont see why the document shouldn't be stored in FOP (I need to save the lf as well as the data). So, is there somewhere I can find a simple straight forward html output, or even just a stylesheet? I'm convinced it must already exist. Look forward to any suggestions/answers. Please cc me as I'm subscribed in digest mode. cheers dim ps - putting 'html' in a search criteria on the web is almost pointless (o: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Batik error opening SVG (Was: Re: EPS images not shown in Acrobat)
Jeremias Maerki wrote: snip/ When we used outlines instead of an embedded font, the result in the PDF was rather ugly, not smooth. While the SVG looks perfect in Internet Explorer (Adobe SVG Viewer) and in Squiggle. There's a setting in Acrobat Reader (Preferences/Display) where you can turn on Smoothing for line art. The SVG should then look like in SVG Viewer and Squiggle. That works! Thanks. Strange that's an option - or at least, that it's not turned on by default. snip/ Squiggle can't open the generated SVG either when the font is embedded, it generates the same CSS stylesheet document error. So I guess you know now whom to address for this one. Isn't there a setting in Illustrator not to use a CSS stylesheet? I know there is one in CorelDraw. Maybe that could help. No, can't find such an option I'm afraid. snip/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html output format
Dmitri Colebatch wrote: I have a requirement to edit a document, and then print it. The requirement had been just to print the document, with some basic merge functionality - so I implemented that using FOP for the printing side of it. Now that I need to edit it, my thought had been that I'd just go FOP - html - ekit (html editor) - html - html2fo - FOP - PCL long winded, but seems reasonable, I don't think it's reasonable, much better would be XSLT-XHTML-edit-XHTML-XHTML2FO-FOP-PCL plumbing. Now, my question for the list is about going from FOP - html. You don't need FOP to get html, just use your favorite XSLT processor. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie using blocks
Luiz Cezar Medeiros Filho wrote: If i put this in my document: fo:blockegasehkagekjasgehkagekagekaegakgeakegakegaskegakjegajkegajkeagseka sgekjaegaskegaskjegakegakjeagkeasgekjaegajkegajkegasjkegaejagekajegasjkegasj kegasejkagekjageajkegakjegasjkegajkegakjegakeagekaeg/fo:block (means a big word) Turn on hyphenation on the block. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: brain dead newbe
Roger Roelofs wrote: I know this has been covered, I've been wandering the archives, but it hasn't sunk in yet. I have a xsl doc with the following basic structure. Instead of starting a new page for each iteration of this template, it resets to the top of the page and writes over the top of the previous content. How do I tell it to start a new page? You can use break-after=page attribute to enforce page break after a formatting object. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tableRow larger than a page
Hi, I would like to know if it is possible to have pagination in both direction of a page: left to right and top to botton. So when a table does not fit in a single page new pages are spawned!! Supose that I have table to large in width and height so the columns grows from left to right and the rows grows from top to botton. single page || | 1 | || after pagination in both direction: || || | 1 | |1.2 | || || || || | 2 | |2.1 | || || Thanks for helping!!! Marcio. __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: brain dead newbe
Oleg, Thanks. My problem was that I need a double border around the page and I had used absolutely positioned block-containers to get it. Once I removed them the pagination worked just great. On Wednesday, Feb 19, 2003, at 04:35 America/Detroit, Oleg Tkachenko wrote: Roger Roelofs wrote: I know this has been covered, I've been wandering the archives, but it hasn't sunk in yet. I have a xsl doc with the following basic structure. Instead of starting a new page for each iteration of this template, it resets to the top of the page and writes over the top of the previous content. How do I tell it to start a new page? You can use break-after=page attribute to enforce page break after a formatting object. -- Oleg Tkachenko Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Roger, Roger Roelofs Datacomp Appraisal Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Scaling of background-image
I'm working on getting a block to use a background image, but it seems that when the image is inserted into the PDF, it's put in at some terribly low resolution. I'm trying to get the image to scale to fit the space of the block, but to no avail. Here's a quick snippet of the FO I'm using: fo:layout-master-set fo:simple-page-master master-name=page-1 page-width=612pt page-height=792pt fo:region-body margin-top=54pt margin-bottom=54pt margin-left=54pt margin-right=36pt / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=page-1 fo:flow flow-name=xsl-region-body fo:block background-image=url(MO399Ver1med.jpg) width =522pt height=684pt fo:table table-layout=fixed The jpeg used in the background image is 1462x1982px, and I believe it's being put in the PDF at either 72 or 96 dpi, which causes the PDF to just show the upper left portion of the image. I saw that the FO spec includes the background-position-horizontal and background-position-vertical properties, which look like they'd fit the bill, but aren't implemented yet. I can create a full-page external-graphic using the height and width attributes, but anything else in my FO file flows on to the next page (of course...) I looked at creating a block-container, but it appears that FOP doesn't have any of the absolute positioning properties implemented yet, so I'm not sure how I can get a block on top of the full-page external-graphic. Does anyone have any ideas how to either specify the page size/scaling vector of a block's background-image, or how to overlay a block on top of a full-page external-graphic? I'd be most grateful for any pointers. -Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XPath axis usage with FOP
Hello ! The marker tag works perfectly with the 0.20.5rc3, that's a pleasure to use it ! It's so powerfull... =) I have another problem with the usage of the precedent-sibling axis, I want to add a break-before=page attribute to a table if the subtag SOUSTHEME of my main tag FICHE is different from the precedent FICHE's SOUSTHEME tag (I am not sure to be totally clear right now... I hope so ! ;o)). So I used the precedent sibling axis in a xsl:if tag to test this condition. --- xsl:template match=FICHE fo:table table-layout=fixed xsl:if test=SOUSTHEME != precedent-sibling :: SOUSTHEME xsl:attribute name=break-beforepage/xsl:attribute /xsl:if [...] the end of my template --- Here's the error outputted by fop 0.20.5rc3 running as standalone app on my workstation with the JDK 1.3.1. --- [ERROR] javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform. TransformerException: axis name not authorized : precedent-sibling --- Is there a problem with the usage of this axis ? Any idea on a best way to check this condition ? I forgot, a newbie question, what's the escape character in xsl ? Should I use the hexa code of a quote to test a string with a quote in ? Many thanks for your help, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XPath axis usage with FOP
Simon, There is no presecedent-sibling axis in Xpath. Try to use the preceding-sibling axis instead. Mark Dudley Xerox Corporation -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 2:17 PM To: [EMAIL PROTECTED] Subject: XPath axis usage with FOP Hello ! The marker tag works perfectly with the 0.20.5rc3, that's a pleasure to use it ! It's so powerfull... =) I have another problem with the usage of the precedent-sibling axis, I want to add a break-before=page attribute to a table if the subtag SOUSTHEME of my main tag FICHE is different from the precedent FICHE's SOUSTHEME tag (I am not sure to be totally clear right now... I hope so ! ;o)). So I used the precedent sibling axis in a xsl:if tag to test this condition. --- xsl:template match=FICHE fo:table table-layout=fixed xsl:if test=SOUSTHEME != precedent-sibling :: SOUSTHEME xsl:attribute name=break-beforepage/xsl:attribute /xsl:if [...] the end of my template --- Here's the error outputted by fop 0.20.5rc3 running as standalone app on my workstation with the JDK 1.3.1. --- [ERROR] javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform. TransformerException: axis name not authorized : precedent-sibling --- Is there a problem with the usage of this axis ? Any idea on a best way to check this condition ? I forgot, a newbie question, what's the escape character in xsl ? Should I use the hexa code of a quote to test a string with a quote in ? Many thanks for your help, Simon - 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: html output format
From: Oleg Tkachenko [EMAIL PROTECTED] Dmitri Colebatch wrote: I have a requirement to edit a document, and then print it. The requirement had been just to print the document, with some basic merge functionality - so I implemented that using FOP for the printing side of it. Now that I need to edit it, my thought had been that I'd just go FOP - html - ekit (html editor) - html - html2fo - FOP - PCL long winded, but seems reasonable, I don't think it's reasonable, much better would be XSLT-XHTML-edit-XHTML-XHTML2FO-FOP-PCL Can anyone suggest an XHTML editor? ekit (which is what I've identified as an editor) doesn't (afaik) support outputting as XHTML. plumbing. Now, my question for the list is about going from FOP - html. You don't need FOP to get html, just use your favorite XSLT processor. yes, an XSLT processor _and_ a stylesheet. That is what I was asking for. I could certainly go and implement whatever parts of a stylesheet that are required for the minimal usage of FOP's instructions that I am using, but it seems hard to believe that this requirement hasn't come up before, and someone else out there hasn't done it. cheers dim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do you set the memory size for FOP
Hello: FOP bombs at about 150 pages with a java.lang.outofmemory error. I gather that the solution is to adjust the size of the java vm using, say, -Xmx256m. Unfortunately, I know absolutely nothing about using java, so I don't know where to do this. I'm using windows NT and here's the batch file I use to run FOP: cd c:\fop java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;li b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf pause Can I increase the mem-size within this sequence of commands? And if so, how would it look? Thanks Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do you set the memory size for FOP
Jon, Amywhere before the FOP call should work: Can I increase the mem-size within this sequence of commands? And if so, how would it look? cd c:\fop java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2 .3.jar;li b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar -Xmx256m org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf pause Cheers, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scaling of background-image
Jeff, I'm working on getting a block to use a background image, but it seems that when the image is inserted into the PDF, it's put in at some terribly low resolution. I'm trying to get the image to scale to fit the space of the block, but to no avail. This worked. fo:block-container width=522pt height=684pt top=0cm left=0cm position=absolute fo:block fo:external-graphic src=url(MO399Ver1med.jpg) scaling=uniform/ /fo:block /fo:block-container fo:table ... top left properties are relative to the region it is in. Put it in the region-before flow(*) instead to get it right at the page top if you use margins. (*) or static-content to repeat on every page if it's a watermark. Cheers, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scaling of background-image
Roland- And just as Jeff was preparing to leave work, a ray of light came down from the sky, and a voice spoke to him. 'Jeff', the voice said, 'I am Roland, the keeper of the knowledge of absolute positioning. Check your e-mail one last time before leaving.' And Jeff checked his e-mail, and saw that instructions had come in electronic format from on high. And Jeff did cut. And Jeff did paste. And Jeff did edit. And Jeff did finally call FOP and open the resulting PDF, and it was good. Thanks a million. That worked beautifully. Now I won't have to kick the dog (actually cat, as we don't have a dog) when I get home. -Jeff Roland Neilands [EMAIL PROTECTED] To: [EMAIL PROTECTED] ng.com.au cc: Subject: RE: Scaling of background-image 02/19/2003 04:39 PM Please respond to fop-user Jeff, I'm working on getting a block to use a background image, but it seems that when the image is inserted into the PDF, it's put in at some terribly low resolution. I'm trying to get the image to scale to fit the space of the block, but to no avail. This worked. fo:block-container width=522pt height=684pt top=0cm left=0cm position=absolute fo:block fo:external-graphic src=url(MO399Ver1med.jpg) scaling=uniform/ /fo:block /fo:block-container fo:table ... top left properties are relative to the region it is in. Put it in the region-before flow(*) instead to get it right at the page top if you use margins. (*) or static-content to repeat on every page if it's a watermark. Cheers, Roland - 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: How do you set the memory size for FOP
Roland: I had already tried this command: java -cp -Xmx128 build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;li b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf and it caused java to run out of memory before even a single page was processed. (I ran it with my task manager performance screen displayed, so I know that there was more than 128 meg available, so I assumed I wasn't setting it properly.) Strangely enough, if I remove the -Xmx128, FOP processes 170 pages before running out of memory. Does this mean that the default setting is than 128? (I thought the java default was 64m). Jon -Original Message- From: Roland Neilands [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 1:06 PM To: [EMAIL PROTECTED] Subject: RE: How do you set the memory size for FOP Jon, Amywhere before the FOP call should work: Can I increase the mem-size within this sequence of commands? And if so, how would it look? cd c:\fop java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2 .3.jar;li b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar -Xmx256m org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf pause Cheers, Roland - 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: How do you set the memory size for FOP
Jon, java -cp -Xmx128 Try switching these two (-cp expects the path below as an argument. build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2 .3.jar;li b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf Cheers, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do you set the memory size for FOP
Try -Xms128m The m at the end means megabytes, of course. Not sure what it defaults to if you don't specify a unit. Pat -Original Message- From: Jon Steeves [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 5:33 PM To: '[EMAIL PROTECTED]' Subject: RE: How do you set the memory size for FOP Roland: Actually, java -Xmx128 -cp etc... was the order of the arguments I originally used -- and it was with this that FOP gave the out of memory error even before it started generating pages. Cheers -Original Message- From: Roland Neilands [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 2:26 PM To: [EMAIL PROTECTED] Subject: RE: How do you set the memory size for FOP Jon, java -cp -Xmx128 Try switching these two (-cp expects the path below as an argument. build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2 .3.jar;li b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf Cheers, Roland - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do you set the memory size for FOP
The m at the end means megabytes, of course. Not sure what it defaults to if you don't specify a unit. Must be kb. (worked on a small doc.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do you set the memory size for FOP
The missing m was the culprit. I put it in and FOP churned out a 450 page document. Thank you FOPlisters for all the help! Jon -Original Message- From: Patrick Dean Rusk [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 2:53 PM To: [EMAIL PROTECTED] Subject: RE: How do you set the memory size for FOP Try -Xms128m The m at the end means megabytes, of course. Not sure what it defaults to if you don't specify a unit. Pat -Original Message- From: Jon Steeves [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 5:33 PM To: '[EMAIL PROTECTED]' Subject: RE: How do you set the memory size for FOP Roland: Actually, java -Xmx128 -cp etc... was the order of the arguments I originally used -- and it was with this that FOP gave the out of memory error even before it started generating pages. Cheers -Original Message- From: Roland Neilands [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 2:26 PM To: [EMAIL PROTECTED] Subject: RE: How do you set the memory size for FOP Jon, java -cp -Xmx128 Try switching these two (-cp expects the path below as an argument. build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2 .3.jar;li b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf Cheers, Roland - 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] - 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]
Question about white-space-treatment=preserve !!!
Title: Question about white-space-treatment=preserve !!! Hi Guys, For the following properties: white-space-collapse linefeed-treatment white-space-treatment Which one is the FOP version that support all (or any) of the above? Thx! RC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javadoc for org.apache.fop.apps.*
Title: Javadoc for org.apache.fop.apps.* Hello, Where can I see javadoc for org.apache.fop.apps.* Thanks IL
RE: How do you set the memory size for FOP
450 pages is pretty good. Just curious did you use multiple page sequences? no large tables? Also do you see how much memory it did use? thanks -Original Message- From: Jon Steeves [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 3:26 PM To: '[EMAIL PROTECTED]' Subject: RE: How do you set the memory size for FOP The missing m was the culprit. I put it in and FOP churned out a 450 page document. Thank you FOPlisters for all the help! Jon -Original Message- From: Patrick Dean Rusk [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 2:53 PM To: [EMAIL PROTECTED] Subject: RE: How do you set the memory size for FOP Try -Xms128m The m at the end means megabytes, of course. Not sure what it defaults to if you don't specify a unit. Pat -Original Message- From: Jon Steeves [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 5:33 PM To: '[EMAIL PROTECTED]' Subject: RE: How do you set the memory size for FOP Roland: Actually, java -Xmx128 -cp etc... was the order of the arguments I originally used -- and it was with this that FOP gave the out of memory error even before it started generating pages. Cheers -Original Message- From: Roland Neilands [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 2:26 PM To: [EMAIL PROTECTED] Subject: RE: How do you set the memory size for FOP Jon, java -cp -Xmx128 Try switching these two (-cp expects the path below as an argument. build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2 .3.jar;li b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf Cheers, Roland - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]