Re: problems with printing: fop-0.91
I finally had a chance to look at this. Turns out that it works fine if you print directly, for example, using -print from the command-line. If you print from the preview dialog, however, the page size is not correct and therefore content gets swallowed. We'll have to find out why the Preview window does something different than the rest of the code. On 17.02.2006 17:35:12 Tim Dyck wrote: I went back to version 0.20.5 and was able to get it work fine so that is good. Thanks for the help. Tim. -Original Message- From: Andreas L Delmelle [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 12:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: problems with printing: fop-0.91 On Feb 16, 2006, at 18:49, Tim Dyck wrote: Hi, Not sure exactly what output renderer I am using at this point, but I believe I am using the following renderer (that is what I saw in the debugger): application/X-fop-awt-preview and once the awt preview is opened then I click on the print button which calls back into the AWTRenderer (which implements pageable) and that is what is failing to print correctly. Have you also tried different Java versions? Different printer drivers? If either one works, then it would be an unfortunate case of incompatibility between the Java AWT version and the driver... There's little we can do about this from within FOP. We just render to Java2D and pray that the used JRE has no trouble sending it through to the printer correctly :-/ (We had a recent post concerning such an incompatibility: replacing the printer driver made the whole thing work all of a sudden.) Might be worth a try... Also, are you saying there is another way to print via FOP with a PDF file or are you just saying open up a PDF file in Acrobat Reader and print it? What Manuel is referring to, IIC, is: render to PDF and pipe the resulting PDF through to AcroRead.exe via the command-line. (The same could be done with PostScript as intermediate format. If your printers understand PS, then you could bypass AcroRead.exe entirely and send the output to the printer directly.) Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fop beta performance
Is the new FOP beta any faster than the previous release? Cheers. Jimmy. -- Jimmy Dixon, Perfiliate Technologies email : [EMAIL PROTECTED] phone : +44 (0)191 241 6500 Registered Office: Perfiliate Technologies Limited 7-15 Pink Lane, Newcastle upon Tyne. NE1 5DW Registered No. 3783384 in the UK Telephone +44 (0)191 241 6500 Facsimile +44 (0)191 241 9302 www.perfiliate.com Please note that electronic mail may be monitored. This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful. We check all emails for viruses, but please note that we do not accept liability for any viruses which may be transmitted in or with this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help needed for allowing spaces in PDF O/P using fop-0.91beta version
Regards, Nitin Shrivastava POLARIS SOFTWARE LAB Ltd. Indiana Business Center +91-22-56482255 - LUCK is what happens when PREPARATION meets OPPORTUNITY - Forwarded by nitin.shrivastava/Polaris on 02/20/2006 04:45 PM - nitin.shrivastava To: Jeremias Maerki [EMAIL PROTECTED] 02/20/2006 03:31 cc: [EMAIL PROTECTED], [EMAIL PROTECTED] PM Subject: Help needed for allowing spaces in PDF O/P using fop-0.91beta version(Document link: nitin.shrivastava) Hi, With FOP 0.91 beta version I was able to overlapp the data over image. Now the problem I am facing is w.r.t the space in the XML file which is getting ignored in PDF output . My XML data between tags is as shown below |---| | AA B CC DD EE | | | | AA B 40041 | |0 | |---| My XSL is fo:simple-page-master master-name=cover page-height=1090pt page-width=714.78pt margin-top=0cm margin-bottom=0cm margin-left=0cm margin-right=0cm fo:region-body margin-top=0cm margin-bottom=0cm margin-left=0in margin-right=0in/ fo:region-after extent=0cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=cover fo:flow flow-name=xsl-region-body fo:block-container fo:block font-family=monospace linefeed-treatment=preserve white-space-treatment=preserve white-space-collapse=false xsl:apply-templates/ /fo:block /fo:block-container /fo:flow The PDF O/P that I get is |---| |AA B CC DD EE| | | |AA B 40041 | |0 | |---| Here the sapce inbetween the data A ,B is maintained in the output but the intial spaces are getting neglected which we need to display in the PDF O/P. Can you please suggest me where am I making the mistake / or I need to specify any addition property in the flow/block-container/or block level. Or any other workaround to maintain these initial spaces at every line as maintianed in the XML file. One more query the image which I am trying the display in the PDF output is not kaing the absolute size as maintained .The XSL for the image is as below xsl:template match=img fo:block-container position=absolute fo:block fo:external-graphic content-height=348% src=[EMAIL PROTECTED]/ /fo:block /fo:block-container /xsl:template Here if I dont specify the content-height it take its own default value and displays the image with diminished size.Where as in FOP 0.20.5 the command fo:external-graphic src=[EMAIL PROTECTED]/ used to display the absoluete size of image ... Please suggest me what can I do to dispaly the abolute size as content-height=auto does not work in 0.91 beta version Regards, Nitin Shrivastava POLARIS SOFTWARE LAB Ltd. Indiana Business Center +91-22-56482255 Jeremias Maerki [EMAIL PROTECTED] To: [EMAIL PROTECTED] erki.ch cc:
Re: Help needed for allowing spaces in PDF O/P using fop-0.91beta version
The white space handling for linefeed-treatment=preserve is currently not correct for fop trunk. Leading spaces are incorrectly deleted. Manuel On Monday 20 February 2006 19:17, [EMAIL PROTECTED] wrote: Regards, Nitin Shrivastava POLARIS SOFTWARE LAB Ltd. Indiana Business Center +91-22-56482255 - LUCK is what happens when PREPARATION meets OPPORTUNITY - Forwarded by nitin.shrivastava/Polaris on 02/20/2006 04:45 PM - nitin.shrivastava To: Jeremias Maerki [EMAIL PROTECTED] 02/20/2006 03:31 cc: [EMAIL PROTECTED], [EMAIL PROTECTED] PM Subject: Help needed for allowing spaces in PDF O/P using fop-0.91beta version(Document link: nitin.shrivastava) Hi, With FOP 0.91 beta version I was able to overlapp the data over image. Now the problem I am facing is w.r.t the space in the XML file which is getting ignored in PDF output . My XML data between tags is as shown below | | |---| | | AA B CC DD EE | | AA B 40041 | |0 | | | |---| My XSL is fo:simple-page-master master-name=cover page-height=1090pt page-width=714.78pt margin-top=0cm margin-bottom=0cm margin-left=0cm margin-right=0cm fo:region-body margin-top=0cm margin-bottom=0cm margin-left=0in margin-right=0in/ fo:region-after extent=0cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=cover fo:flow flow-name=xsl-region-body fo:block-container fo:block font-family=monospace linefeed-treatment=preserve white-space-treatment=preserve white-space-collapse=false xsl:apply-templates/ /fo:block /fo:block-container /fo:flow The PDF O/P that I get is | | |---| | |AA B CC DD EE| |AA B 40041 | |0 | | | |---| Here the sapce inbetween the data A ,B is maintained in the output but the intial spaces are getting neglected which we need to display in the PDF O/P. Can you please suggest me where am I making the mistake / or I need to specify any addition property in the flow/block-container/or block level. Or any other workaround to maintain these initial spaces at every line as maintianed in the XML file. One more query the image which I am trying the display in the PDF output is not kaing the absolute size as maintained .The XSL for the image is as below xsl:template match=img fo:block-container position=absolute fo:block fo:external-graphic content-height=348% src=[EMAIL PROTECTED]/ /fo:block /fo:block-container /xsl:template Here if I dont specify the content-height it take its own default value and displays the image with diminished size.Where as in FOP 0.20.5 the command fo:external-graphic src=[EMAIL PROTECTED]/ used to display the absoluete size of image ... Please suggest me what can I do to dispaly the abolute size as content-height=auto does not work in 0.91 beta version Regards, Nitin Shrivastava POLARIS SOFTWARE LAB Ltd. Indiana Business Center +91-22-56482255 Jeremias Maerki [EMAIL PROTECTED] To: [EMAIL PROTECTED] erki.ch cc: Subject: Re: Help needed !!! 02/10/2006 03:20 PM I thought you couldn't use a block-container approach. And as I told you before fo:float isn't implemented, yet. The latest version of Apache FOP is 0.91beta (http://xmlgraphics.apache.org/fop/download.html). It has some improvements over 0.20.5 WRT fo:block-container. But fo:float needs to be implemented, first. There are no free alternatives available. Apache FOP is the best open source XSL-FO implementation. You will have to use a commercial tool if you can't solve it with Apache FOP or look for an alternative to XSL-FO. On 10.02.2006 10:33:22 nitin.shrivastava wrote: Hi, Can you please suggest me is there any new FOP version available with the implementation of block-container or float
RE: convert from XSL-FO to MSWORD
I found this style sheet http://fo2wordml.sourceforge.net/which convert xsl-fo documents into WordML this succeeded with text but when there is graphics the images are omitted in addition to that not all the colors are mapped ,does any one know any reliable style sheet to convert from xsl-fo to wordML with all formatting tags (tables , images , links , columns, colors,etc...)? Is there any XSLT to convert to XML to gnumeric xml , CSV? Best Regards, Amgad Hanafy, [EMAIL PROTECTED] From: [EMAIL PROTECTED]Sent: Thu 16/02/2006 06:44 مTo: fop-users@xmlgraphics.apache.orgSubject: Re: convert from XSL-FO to MSWORD Below is a VERY simple framework sample stylesheet to get you started. I did not go this route due to the fact that WordML is not supported in older versions of Word: ?xml version="1.0" encoding="ISO-8859-1" ? ?mso-application progid="Word.Document"? xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xsl:output method="xml" indent="yes" encoding="utf-8"/ xsl:template match="/" w:wordDocument w:body w:p w:r w:tThis is a very simple paragraph that will be rendered OK in Word on an XP machine. Add stuff here and enjoy./w:t /w:r /w:p /w:body /w:wordDocument /xsl:template /xsl:stylesheet Good luck. -Lou "Mohamed, Amgad" [EMAIL PROTECTED] 02/16/2006 10:07 AM Please respond tofop-users@xmlgraphics.apache.org To "fop-users@xmlgraphics.apache.org" fop-users@xmlgraphics.apache.org cc Subject convert from XSL-FO to MSWORD Dear All, Is there is any way to convert from XSL-FO to MSWORD? Best Regards, Amgad Hanafy.
RE: putting an svg element into an fo document
You have shown what you expect to appear in the XSL-FO document, but not what actually does appear there. Consequently, it's hard to say where you are going wrong. With what information you have supplied, the second construction (the one using copy-of) appears to be the correct one. Show what you actually get in the XSL-FO document at the point where you have xsl:copy-of select=Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL PROTECTED]'1']/svg/ in the stylesheet and perhaps we can help. If that's where the problem is, you would be better off on the XSL list. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Tracey Zellmann [EMAIL PROTECTED] Sent: Mon, 20 Feb 2006 08:32:18 -0500 To: fop-users@xmlgraphics.apache.org Subject: putting an svg element into an fo document My problem may overlap FOP, XSLT, SVG and XPATH, but I would like to start here, because I am basically having a problem creating a PDF using FOP. If anyone thinks I should better ask another forum, please point me in that direction. I have an xml document that contains a number of svg elements. I am trying to use an XSLT stylesheet to put them into an fo document, which I then feed through FOP to create a PDF. I have control over the structure of everything. The xml document is of this form Report TrackT1 Position position=Left Front MCHistogram id=1 svg... many g elements /svg and so forth... As an example, I am trying to get the above svg element, in its entirety, with tags, into an fo document that looks like this: fo:block fo:instream-foreign-object content-width=6in svg... /svg /fo:instream-foreign-object fo:block If I manually paste the svg element in, the resulting PDF looks exactly how I want it to look. I have been trying to do this programmatically with XSLT, without success, and I would appreciate any help or advice. I have tried xsl:value-of select=Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL PROTECTED]'1']/svg/ also xsl:copy-of select=Report/TrackT1/[EMAIL PROTECTED]'Left Front']/[EMAIL PROTECTED]'1']/svg/ Neither approach is successful. I have tried many other combinations and permutations, without any real success. What would be a proper way of getting such an svg element into my report? ÿþ<