Re: JfreeChart
Hi Bhawana, I have worked a lot with the chart creation and also developed an API for it. JFreeCharts are not that flexible and provide very less flexibility to the developer. There is something called Kawacharts where u can do all the stuff with less pain and very less coding. Also, we have developed an API for Charts which is much more enhanced and provides full flexibility to the developer. But unfortunately that is not yet published to the market. If u can wait for sometime, then our API will soon be available free on internet. I don't have any demo code for JFreeCharts, but if u r interested in KawaCharts or my API, i have demo codes for them for image generation using simple java classes and also using servlets. If u need any help further, plz fell free to contact at [EMAIL PROTECTED] regards, achintay sagar On Thu, 07 Mar 2002 Katiyar, Bhawana wrote : Has anyone used JFreechart. I wish to use this to create a pie chart and then convert it into jpeg image using an encoder. I want to include this image in my PDF document. Does anyone know how can I convert a chart made of JFreeChart to JPeg. Also, if anyone knows a better way to do this. Thanks Bhawana -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 5:53 AM To: [EMAIL PROTECTED] Subject: Re: Problem with generated PDF files if you work with java, you should let your applicationserver make a temporarely file it self... then the minute you exit the servlet the file will be deleted... SeJo Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/docs/xml-docs/fop embedding.xml faq.xml resources.xml
keiron 02/03/08 01:53:21 Modified:docs/design book.xml embedding.xml useragent.xml docs/xml-docs/fop embedding.xml faq.xml resources.xml Added: docs/design extending.xml Log: more updates to documentation and design info Revision ChangesPath 1.2 +1 -0 xml-fop/docs/design/book.xml Index: book.xml === RCS file: /home/cvs/xml-fop/docs/design/book.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- book.xml 14 Dec 2001 07:32:28 - 1.1 +++ book.xml 8 Mar 2002 09:53:21 - 1.2 @@ -15,6 +15,7 @@ page id=optimiselabel=Optimisations source=optimise.xml / separator/ page id=embeddinglabel=Embedding source=embedding.xml / + page id=extendinglabel=Extending source=extending.xml / separator/ page id=status label=Status source=status.xml / /book 1.2 +89 -0 xml-fop/docs/design/embedding.xml Index: embedding.xml === RCS file: /home/cvs/xml-fop/docs/design/embedding.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- embedding.xml 14 Dec 2001 07:32:28 - 1.1 +++ embedding.xml 8 Mar 2002 09:53:21 - 1.2 @@ -22,6 +22,95 @@ of a server side application such as jump href=http://xml.apache.org/cocoon/index.html;Cocoon/jump. /p /s1 +s1 title=Settings +s2 title=User Agent +p +The user agent is responsible for supplying user or context +specific information. The list of user agent values can be found on the +jump href=useragent.htmlUser Agent/jump page. + /p + /s2 +s2 title=Logging +p +ul +lilogging level/li +lilogging messages of various levels/li +lierror handling/li +liLogging setup (LogKit, Log4J, JDK14Logging)/li +/ul + /p + /s2 +s2 title=XML input +p +ul +livarious ways to supply FOP with the xsl:fo file, fo, xml+xsl/li +lisax handler/li +/ul + /p + /s2 +s2 title=general options +p +ul +libase directory/li +liuri resolvers/li +liwhich implementation of a particular/li +liLayoutManager to use/li +/ul + /p + /s2 +s2 title=Rendering Options +p +ul +liembedding fonts/li +licompression in pdf/li +liimage embedding/li +/ul +/p +p +for the PS renderer (eventually): +ul +liPostScript Level/li +liPPD to use/li +libinary/ascii switch/li +/ul + /p + /s2 +s2 title=User Agent +p +Output from FOP: +- Generation statistics: Number of pages total, Number of pages of each + page-sequence, page-master used for each page (could be used to + control the paper bin to get paper from, important for me in + conjunction with PS Renderer). + /p + /s2 +s2 title=Setting Up +p +The Driver handles the XML input. +The user agent information is through the FOUserAgent. +We could handle logging through the user agent. +Options could also be handled through the user agent, using mime type +selection for renderer options. +/p + /s2 +s2 title=Others +p +render to more than one renderer at once (maybe not from the command line). Two independent +sources have asked me in the last few weeks if this works. I must say +that this would be nice, since I could generate a PDF for the archive +and the PS for the printer in one run. It would probably be faster than +converting the PDF to PostScript afterwards. +/p +p +I want to note that several code pieces for resolving URLs and/or +file locations are scattered all over FOP and Batik. Replacing +them all with an URIResolver invocation would unify behaviour and +remove redundancies. I'd also recommend to lift the default +URIResolver implementation from Saxon, it seems to tolerate the +usual abuse better than everything else i came across elsewere. + /p + /s2 +/s1 /body /document 1.5 +84 -84xml-fop/docs/design/useragent.xml Index: useragent.xml === RCS file: /home/cvs/xml-fop/docs/design/useragent.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- useragent.xml 14 Dec 2001 07:32:28 - 1.4 +++ useragent.xml 8 Mar 2002 09:53:21 - 1.5 @@ -37,136 +37,136 @@ p Standard Features: - itemizedlist - listitempara + ul + lip error handling, what to do if fo markup is invalid - /para/listitem - listitempara + /p/li + lip auto overflow value and handling error-if-overflow - /para/listitem - listitempara + /p/li + lip adjusting length values (eg. for borders) to renderable values - /para/listitem - listitempara +
cvs commit: xml-fop/contrib/plan/src/org/apache/fop/plan Main.java PlanElement.java PlanElementMapping.java
keiron 02/03/08 02:12:30 Modified:contrib/plan build.sh build.xml contrib/plan/docs plan.fo contrib/plan/src/org/apache/fop/plan Main.java PlanElement.java PlanElementMapping.java Log: added external image handler Revision ChangesPath 1.2 +1 -1 xml-fop/contrib/plan/build.sh Index: build.sh === RCS file: /home/cvs/xml-fop/contrib/plan/build.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- build.sh 5 Mar 2002 10:58:45 - 1.1 +++ build.sh 8 Mar 2002 10:12:30 - 1.2 @@ -12,7 +12,7 @@ exit 1 fi LIBDIR=../../lib -LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.4.3.jar:$LIBDIR/xalan-2.2D11.jar:../../build/fop.jar +LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.4.3.jar:$LIBDIR/xalan-2.2D11.jar:../../build/fop.jar:$LIBDIR/logkit-1.0.jar ANT_HOME=$LIBDIR echo 1.2 +1 -1 xml-fop/contrib/plan/build.xml Index: build.xml === RCS file: /home/cvs/xml-fop/contrib/plan/build.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- build.xml 5 Mar 2002 10:58:45 - 1.1 +++ build.xml 8 Mar 2002 10:12:30 - 1.2 @@ -15,7 +15,7 @@ property name=name value=plan/ property name=version value=0.1-CVS/ filter token=version value=${version}/ -property name=year value=2001/ +property name=year value=2002/ echo message=--- ${Name} ${version} [${year}] / 1.2 +7 -0 xml-fop/contrib/plan/docs/plan.fo Index: plan.fo === RCS file: /home/cvs/xml-fop/contrib/plan/docs/plan.fo,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plan.fo 5 Mar 2002 10:58:46 - 1.1 +++ plan.fo 8 Mar 2002 10:12:30 - 1.2 @@ -101,6 +101,13 @@ /fo:block + fo:block +A plan as an external graphic. + /fo:block + + fo:block +fo:external-graphic src=june.xml/ + /fo:block /fo:flow /fo:page-sequence /fo:root 1.2 +3 -6 xml-fop/contrib/plan/src/org/apache/fop/plan/Main.java Index: Main.java === RCS file: /home/cvs/xml-fop/contrib/plan/src/org/apache/fop/plan/Main.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Main.java 5 Mar 2002 10:58:46 - 1.1 +++ Main.java 8 Mar 2002 10:12:30 - 1.2 @@ -1,4 +1,4 @@ -/* $Id: Main.java,v 1.1 2002/03/05 10:58:46 keiron Exp $ +/* $Id: Main.java,v 1.2 2002/03/08 10:12:30 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -48,15 +48,12 @@ public Document createSVGDocument(InputStream is) { Document doc = null; -Element svgRoot = null; +Element root = null; try { -//DOMImplementation impl = javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().getDOMImplementation(); -//String ns = GraphElementMapping.URI; -//doc = impl.createDocument(ns, graph, null); doc = javax.xml.parsers.DocumentBuilderFactory.newInstance(). newDocumentBuilder().parse(is); -svgRoot = doc.getDocumentElement(); +root = doc.getDocumentElement(); } catch (Exception e) { e.printStackTrace(); 1.2 +13 -2 xml-fop/contrib/plan/src/org/apache/fop/plan/PlanElement.java Index: PlanElement.java === RCS file: /home/cvs/xml-fop/contrib/plan/src/org/apache/fop/plan/PlanElement.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- PlanElement.java 5 Mar 2002 10:58:46 - 1.1 +++ PlanElement.java 8 Mar 2002 10:12:30 - 1.2 @@ -1,4 +1,4 @@ -/* $Id: PlanElement.java,v 1.1 2002/03/05 10:58:46 keiron Exp $ +/* $Id: PlanElement.java,v 1.2 2002/03/08 10:12:30 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -23,6 +23,7 @@ Document svgDoc = null; float width;
cvs commit: xml-fop/src/org/apache/fop/svg PDFGraphics2D.java SVGElementMapping.java
keiron 02/03/08 03:00:20 Modified:src/org/apache/fop/fo/flow ExternalGraphic.java src/org/apache/fop/image AbstractFopImage.java FopImage.java ImageFactory.java src/org/apache/fop/image/analyser ImageReaderFactory.java SVGReader.java src/org/apache/fop/render/pdf PDFRenderer.java src/org/apache/fop/svg PDFGraphics2D.java SVGElementMapping.java Added: src/org/apache/fop/image XMLImage.java src/org/apache/fop/image/analyser XMLReader.java src/org/apache/fop/render/pdf PDFXMLHandler.java Removed: src/org/apache/fop/image SVGImage.java Log: renders images and ifo to pdf doc added xml reader for external graphics Revision ChangesPath 1.19 +6 -4 xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java Index: ExternalGraphic.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- ExternalGraphic.java 26 Feb 2002 12:43:09 - 1.18 +++ ExternalGraphic.java 8 Mar 2002 11:00:17 - 1.19 @@ -1,5 +1,5 @@ /* - * $Id: ExternalGraphic.java,v 1.18 2002/02/26 12:43:09 keiron Exp $ + * $Id: ExternalGraphic.java,v 1.19 2002/03/08 11:00:17 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -48,12 +48,14 @@ } protected InlineArea getInlineArea() { +setup(); if(url == null) { return null; } url = ImageFactory.getURL(url); // if we need to load this image to get its size -// FopImage fopimage = ImageFactory.getImage(url, userAgent); +ImageFactory fact = ImageFactory.getInstance(); +FopImage fopimage = fact.getImage(url, userAgent); // if(fopimage == null) { // error // } @@ -65,7 +67,7 @@ return vp; } -public void setup() throws FOPException { +public void setup() { // Common Accessibility Properties AccessibilityProps mAccProps = propMgr.getAccessibilityProps(); @@ -102,7 +104,7 @@ // this.properties.get(overflow); // this.properties.get(scaling); // this.properties.get(scaling-method); -// this.properties.get(src); +url = this.properties.get(src).getString(); // this.properties.get(text-align); // this.properties.get(width); } 1.8 +4 -4 xml-fop/src/org/apache/fop/image/AbstractFopImage.java Index: AbstractFopImage.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/image/AbstractFopImage.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- AbstractFopImage.java 25 Feb 2002 09:31:03 - 1.7 +++ AbstractFopImage.java 8 Mar 2002 11:00:18 - 1.8 @@ -1,5 +1,5 @@ /* - * $Id: AbstractFopImage.java,v 1.7 2002/02/25 09:31:03 keiron Exp $ + * $Id: AbstractFopImage.java,v 1.8 2002/03/08 11:00:18 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -100,7 +100,7 @@ this.imageInfo = info; this.m_width = this.imageInfo.width; this.m_height = this.imageInfo.height; -loaded = loaded DIMENSIONS; +loaded = loaded | DIMENSIONS; } public String getMimeType() { @@ -121,12 +121,12 @@ if(!success) { return false; } -loaded = loaded DIMENSIONS; +loaded = loaded | DIMENSIONS; } if(((type BITMAP) != 0) ((loaded BITMAP) == 0)) { success = success loadBitmap(ua); if(success) { -loaded = loaded BITMAP; +loaded = loaded | BITMAP; } } return success; 1.11 +2 -1 xml-fop/src/org/apache/fop/image/FopImage.java Index: FopImage.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/image/FopImage.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- FopImage.java 25 Feb 2002 09:31:03 - 1.10 +++ FopImage.java 8 Mar 2002 11:00:18 - 1.11 @@ -1,5 +1,5 @@ /* - * $Id: FopImage.java,v 1.10 2002/02/25 09:31:03 keiron Exp $ + * $Id:
cvs commit: xml-fop/src/org/apache/fop/fo FOText.java FObj.java
keiron 02/03/08 07:41:47 Modified:src/org/apache/fop/fo FOText.java FObj.java Log: removed unneeded imports Revision ChangesPath 1.30 +1 -2 xml-fop/src/org/apache/fop/fo/FOText.java Index: FOText.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FOText.java,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- FOText.java 8 Jan 2002 09:52:16 - 1.29 +++ FOText.java 8 Mar 2002 15:41:47 - 1.30 @@ -1,5 +1,5 @@ /* - * $Id: FOText.java,v 1.29 2002/01/08 09:52:16 keiron Exp $ + * $Id: FOText.java,v 1.30 2002/03/08 15:41:47 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -15,7 +15,6 @@ import org.apache.fop.datatypes.*; import org.apache.fop.fo.properties.*; import org.apache.fop.apps.FOPException; -import org.apache.fop.system.BufferManager; import org.apache.fop.layoutmgr.LayoutManager; import org.apache.fop.layoutmgr.TextLayoutManager; 1.28 +1 -2 xml-fop/src/org/apache/fop/fo/FObj.java Index: FObj.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FObj.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- FObj.java 21 Nov 2001 22:13:36 - 1.27 +++ FObj.java 8 Mar 2002 15:41:47 - 1.28 @@ -1,5 +1,5 @@ /* - * $Id: FObj.java,v 1.27 2001/11/21 22:13:36 klease Exp $ + * $Id: FObj.java,v 1.28 2002/03/08 15:41:47 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -17,7 +17,6 @@ import org.apache.fop.layout.Area; import org.apache.fop.layout.AreaClass; import org.apache.fop.layout.LinkSet; -import org.apache.fop.system.BufferManager; import org.apache.fop.fo.flow.Marker; // Java - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/system BufferArray.java BufferFile.java BufferManager.java
keiron 02/03/08 07:42:33 Removed: src/org/apache/fop/system BufferArray.java BufferFile.java BufferManager.java Log: no longer needed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: userconfig.xml
In the context of a servlet, where would I place userconfig.xml file relative to the webapps dir, and what path would I use to retrieve the file. According to java.io API JavaDoc file, a relative path is relative to the user's home dir. Would I actually have to say: File file = new File(c:\tomcat4\webapps\soap\WEB-INF\userconfig.xml) or something like: File file = new File(userconfig.xml) Any ideas? I need the config file because it has font info in it. -- David B. Bitton [EMAIL PROTECTED] www.codenoevil.com Diversa ab illis virtute valemus. - Original Message - From: Peter B. West [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 08, 2002 12:49 AM Subject: Re: userconfig.xml Polly, You are not the first, nor will you be the last, to be thrown by this. All of the work of the Options object is done in the constructor. You don't have to do anything more with it. It sets up a lot of static data, accessible by static methods, in a Configuration class. Have a look at org.apache.fop.configuration.Configuration for the access methods. Look at the example config.xml and userconfig.xml in xml-fop/conf to see what sort of data is stored in there. Hmm This seems to crop up a bit. Maybe something like a static Options.configure() would be less confusing for an essentially static operation. Peter Polly Tsang wrote: Hi all, How can I use userconfig in embedding servlet programs? I don't understand the following 2 statements that included in xml.apache.org web page. Could someone give a brief sample code about this? userConfigFile = new File(userConfig); options = new Options(userConfigFile); Thanks you so much!!! Regards, Polly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6992] New: - from-parent function returns invalid values
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6992. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6992 from-parent function returns invalid values Summary: from-parent function returns invalid values Product: Fop Version: 0.20.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: pdf renderer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I believe that from-parent is returning an unknown value if the property is not directly set. The value is the unit of measure if the value is set. Here are the two test cases. If the containing block is thus fo:block-container height=135mm width=75mm (No top property set) then fo:block-container . . . top=from-parent(top)-3mm . . . returns this error: [ERROR]: Error in top property value 'from-parent(top)-3mm': org.apache.fop.fo.expr.PropertyException: Non numeric operand in subtraction If the containing block is thus fo:block-container height=135mm width=75mm left=4mm top=4mm This error is returned [ERROR]: unknown length unit 'mm-3mm' Here is the complete test case supplied by Sebastien Foucault: This test case works in FOP-0.20.2 ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simplet page-width=240mm page-height=100mm margin-top=1in margin-right=1in margin-left=1in margin-bottom=1in fo:region-before extent=1in/ fo:region-body margin-top=1in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simplet fo:static-content flow-name=xsl-region-before fo:blockRegion before /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block-container height=135mm width=75mm left=4mm top=4mm fo:blockRegion body/fo:block fo:block-container height=15mm width=15mm left=4mm-3mm top=from-parent(top)-3mm position=absolute fo:blockHELLO/fo:block /fo:block-container fo:blockRegion body/fo:block /fo:block-container /fo:flow /fo:page-sequence /fo:root - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6992] - from-parent function returns invalid values
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6992. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6992 from-parent function returns invalid values [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2002-03-08 17:37 --- ack. The subtraction and addition functions require a space between the operator and values thus: 4mm-3mm = invalid 4mm - 3mm = valid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problems using fo:basic-link
Hello, I'm using fo:basic-link to point to a webpage. Now, when I convert it to a PDF document I see the following problem: fo:basic-link external-destination=www.google.com indicate-destination=true font-style=normal color=blue font-size=8ptClick here to search the web/fo:basic-link When I put the mouse over the text that has the link attached to(Click here to search the web). The mouse pointer doesn't change. It only changes when I move it a little ABOVE the linked text. After it changed to a little finger I can click it and it will open the webpage. I also notice that when I click, a little box over the text turns black. The size of the box is always the size of the word that is below it. You have to try this out urself to see what I mean. I will try to describe it here: [X] Click here to search the web So the mouse only changes when I point it above the text. If I'm over the word search the marked area([X]) will turn black temporarily. The area that turns black always is the size of the underlying word. What is going on here? It seems that Fop is having a problem with the referenced area? The link sensitive area seems to be displaced in relation to the corresponding text. Is this a bug? I'm using fop-0.20.2. Has this been fixed in fop-0.20.3 ? Thanks for any help, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problems using fo:basic-link
There was a post on this a while back; I can't remember all the specifics, but it appears that borders and/or padding was adding up. When I changed my 'padding-after=5mm' to 'space-after=5mm', the problem disappeared. HTH, John -Original Message- From: Roland [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 1:08 PM To: [EMAIL PROTECTED] Subject: Problems using fo:basic-link Hello, I'm using fo:basic-link to point to a webpage. Now, when I convert it to a PDF document I see the following problem: fo:basic-link external-destination=www.google.com indicate-destination=true font-style=normal color=blue font-size=8ptClick here to search the web/fo:basic-link When I put the mouse over the text that has the link attached to(Click here to search the web). The mouse pointer doesn't change. It only changes when I move it a little ABOVE the linked text. After it changed to a little finger I can click it and it will open the webpage. I also notice that when I click, a little box over the text turns black. The size of the box is always the size of the word that is below it. You have to try this out urself to see what I mean. I will try to describe it here: [X] Click here to search the web So the mouse only changes when I point it above the text. If I'm over the word search the marked area([X]) will turn black temporarily. The area that turns black always is the size of the underlying word. What is going on here? It seems that Fop is having a problem with the referenced area? The link sensitive area seems to be displaced in relation to the corresponding text. Is this a bug? I'm using fop-0.20.2. Has this been fixed in fop-0.20.3 ? Thanks for any help, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Web site update request
Weird. I posted a reply to this thread that I see on my work account, but my home Earthlink account never picked it up. This is the second time I've seen this. Anyone else experience this problem? -Matt Keiron Liddle wrote: Sure. I'll change that. Is there any chance that you could get together all the information about viewing pdf through IE so that we don't have to go through it all again. On 2002.03.07 13:35 alex wrote: Pretty please can someone amend this page http://xml.apache.org/fop/faq.html on the website / xdocs in cvs (I don't have CVS access otherwise I'd do it myself, however I'm happy to learn how to do a diff if someone says they will apply it.) Please change For up to date information or more details please visit the Fop FAQ site. The site uses Jyve to provide an interactive FAQ: http://www.OWAL.co.uk:8090/ to this For up to date information or more details please visit the Fop FAQ site. http://www.OWAL.co.uk/cgi-bin/fopfaq.cgi Any problems with the FAQ itself or new answers for the FAQ should be mailed to [EMAIL PROTECTED] More general questions about FOP should be directed to one of the mailing lists. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FOP Print Option
Hello Everyone, I need to use the FOP print option (-print) to print a FO directly to a printer. The problem is, I need to tell FOP which printer (by name, port or UNC name) to print to. Displaying the preview window (-awt) or printer dialog is not an option. I will be embedding this code in an application which will run unattended. The application will wake up, check for FOs to print and print them automatically without any user intervention and then go back to sleep. The print out must go to a specified printer containing a special paper which will most likely NOT be the default printer. Any ideas how to do this? Thanks, Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: FOP Print Option
At 03:53 PM 3/8/02, you wrote: I need to use the FOP print option (-print) to print a FO directly to a printer. The problem is, I need to tell FOP which printer (by name, port or UNC name) to print to. Displaying the preview window (-awt) or printer dialog is not an option. I will be embedding this code in an application which will run unattended. The application will wake up, check for FOs to print and print them automatically without any user intervention and then go back to sleep. The print out must go to a specified printer containing a special paper which will most likely NOT be the default printer. Any ideas how to do this? This was answered previously, please check the archives. The short answer is that you cannot in any straightforward fashion programmatically assign a printjob to a specific printer pre-Java 1.4. There new JavaPrintService facility in 1.4 is promising, but I think you might have trouble trying to run fop in 1.4 yet. If someone wishes to refine this answer, please jump in; Alex -- another topic for the faq? ' Best, -Ralph LaChance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: FOP Print Option
Of course if the PCL or PS renderers met your needs then the solution could be trivial. For example under AIX (IBM Unix) I do something like: proc = Runtime.getRuntime().exec(lp -d + print_queue + -o -dp -); out = proc.getOutputStream(); And give the OutputStream (out) to the PCLRenderer and it happily sends the PCL to the AIX print queue. I have also done something similar under Windows, but admittedly have not done this in a long time, so I do not recall the syntax off hand. IIRC it was as simple as opening a FileOutputStream to a network printer URL (or something like that). Of course if you need fancy things like SVG or user fonts then the PCLRenderer may not work for you (PS may do more, but I have not tried it). FWIW, I suspect that PCL or PS would be MUCH faster printing than AWT. Art -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 5:13 PM To: [EMAIL PROTECTED] Subject: RE: FOP Print Option That is what I thought, but I was hoping there may have been some progress made in this area. :) Jim -Original Message- From: Ralph LaChance [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 3:34 PM To: [EMAIL PROTECTED] Subject: Re: FOP Print Option At 03:53 PM 3/8/02, you wrote: I need to use the FOP print option (-print) to print a FO directly to a printer. The problem is, I need to tell FOP which printer (by name, port or UNC name) to print to. Displaying the preview window (-awt) or printer dialog is not an option. I will be embedding this code in an application which will run unattended. The application will wake up, check for FOs to print and print them automatically without any user intervention and then go back to sleep. The print out must go to a specified printer containing a special paper which will most likely NOT be the default printer. Any ideas how to do this? This was answered previously, please check the archives. The short answer is that you cannot in any straightforward fashion programmatically assign a printjob to a specific printer pre-Java 1.4. There new JavaPrintService facility in 1.4 is promising, but I think you might have trouble trying to run fop in 1.4 yet. If someone wishes to refine this answer, please jump in; Alex -- another topic for the faq? ' Best, -Ralph LaChance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6996] New: - Some % modifiers cause right-alignment to run raggedly
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6996. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6996 Some % modifiers cause right-alignment to run raggedly Summary: Some % modifiers cause right-alignment to run raggedly Product: Fop Version: 0.20.3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: page-master/layout AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If I scale a number of values in my xsl:fo document by 50% or 25%, the reduced size looks good. However, scaling the values by 30% breaks the right-alignment pretty badly. It looks like some internal number could be rounded badly. Two testcases included... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6996] - Some % modifiers cause right-alignment to run raggedly
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6996. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6996 Some % modifiers cause right-alignment to run raggedly --- Additional Comments From [EMAIL PROTECTED] 2002-03-09 00:02 --- Created an attachment (id=1319) Reduction by 30% - broken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6996] - Some % modifiers cause right-alignment to run raggedly
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6996. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6996 Some % modifiers cause right-alignment to run raggedly --- Additional Comments From [EMAIL PROTECTED] 2002-03-09 00:03 --- Created an attachment (id=1320) Reduction by 25% - works - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6996] - Some % modifiers cause right-alignment to run raggedly
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6996. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6996 Some % modifiers cause right-alignment to run raggedly --- Additional Comments From [EMAIL PROTECTED] 2002-03-09 00:04 --- Created an attachment (id=1321) Reference rendering - 100% scaled - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6997] New: - Row-spanned row data breaks over a page within a column
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6997. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6997 Row-spanned row data breaks over a page within a column Summary: Row-spanned row data breaks over a page within a column Product: Fop Version: 0.20.3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: page-master/layout AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The attached XSL:FO file renders in what I think is an incorrect manner with FOP 0.20.3. The column itself ends up being split across two pages. The row, however, contains a column with number-rows-spanned. I thought that a column with number-rows-spanned would be kept together across a page break- breaking in the middle of the row seems to be an error. I've tried adding the keep-together=always attribute and it still seems not to work. The column cells with borders are where I think the problem is. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6997] - Row-spanned row data breaks over a page within a column
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6997. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6997 Row-spanned row data breaks over a page within a column --- Additional Comments From [EMAIL PROTECTED] 2002-03-09 00:10 --- Created an attachment (id=1322) This testcase appears broken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6997] - Row-spanned row data breaks over a page within a column
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6997. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6997 Row-spanned row data breaks over a page within a column --- Additional Comments From [EMAIL PROTECTED] 2002-03-09 00:10 --- Created an attachment (id=1323) This one appears to work - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problems using fo:basic-link
I'm using fo:basic-link external-destination="url(http://www.bankone.com/)" color="#C0" text-decoration="underline"BankOne/fo:basic-link and all I'm getting is a blue underlined word, and not a link. This was working when I was using XEP from RenderX. I'm using 0.20.3. Also, I setup FOP as a WebService (Apache SOAP). Let me know what is the correct forum to post the code. It runs on either Linux or MS for the server part, and my client is MS. -- David B. Bitton[EMAIL PROTECTED]www.codenoevil.com Diversa ab illis virtute valemus. - Original Message - From: "Dunning, John" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 08, 2002 1:26 PM Subject: RE: Problems using fo:basic-link There was a post on this a while back; I can't remember all the specifics, but it appears that borders and/or padding was adding up. When I changed my 'padding-after="5mm"' to 'space-after="5mm"', the problem disappeared. HTH, John -Original Message- From: Roland [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 1:08 PM To: [EMAIL PROTECTED] Subject: Problems using fo:basic-link Hello, I'm using fo:basic-link to point to a webpage. Now, when I convert it to a PDF document I see the following problem: fo:basic-link external-destination="www.google.com" indicate-destination="true" font-style="normal" color="blue" font-size="8pt"Click here to search the web/fo:basic-link When I put the mouse over the text that has the link attached to("Click here to search the web"). The mouse pointer doesn't change. It only changes when I move it a little ABOVE the linked text. After it changed to a little finger I can click it and it will open the webpage. I also notice that when I click, a little box over the text turns black. The size of the box is always the size of the word that is below it. You have to try this out urself to see what I mean. I will try to describe it here: [X] Click here to search the web So the mouse only changes when I point it above the text. If I'm over the word "search" the marked area([X]) will turn black temporarily. The area that turns black always is the size of the underlying word. What is going on here? It seems that Fop is having a problem with the referenced area? The link sensitive area seems to be displaced in relation to the corresponding text. Is this a bug? I'm using fop-0.20.2. Has this been fixed in fop-0.20.3 ? Thanks for any help, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
HowTo Render PDF from XML string and XSL file
I have spent some time looking at the embedding sample, and I have some questions. I have successfully implemented FOP as a WebService having the XSL-FO data posted to the service and the service rendering the file onto the local machine. Now I want to do the XML/XSL to XSL-FO transform in the WebService. I noticed that the transform occurs in the XSLInputHandler. This then allows for an InputSource and XMLReader to be available to the Driver.render() overloaded method. The unfortunate part is the XSLInputHandler constructor only takes File object, no stream. I'd like to avoid bouncing the XML data off the disk just to statisfy this requirement for using XSLInputHandler. So, my question is this, how can I arrive at the same results, an InputSource and an XMLReader interfaced object for Driver.render()? Or better yet, what I'm asking is what is going on inside XSLInputHandler that I can slurp out into my code. Tx :) -- David B. Bitton [EMAIL PROTECTED] www.codenoevil.com Diversa ab illis virtute valemus. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]