Re: FOP performance on Win98/JRE 1.3.1
Thanks, James, for the detailed comments. Not that I understood everything of it--I'm afraid I'm rather unexperienced with Java in general. Your suggestions sound quite convincing, only I don't know how to actually carry them out. Now maybe what follows is terribly boring newbie stuff. In that case, perhaps somebody could point me to some relevant tutorial or similar stuff on the web? (1) making the JVM survive a single FOP run or a single document conversion. How? The only way I know of invoking FOP is by saying java org.apache.fop.apps.Fop in a .bat program. (2) Adjusting JVM memory settings. How? Okay, I've found something about -Xms and -Xmx commandline parameters, but how do I find out what the present default values are? (3) Eden heap space settings. No idea what those are, let alone how I could change them... (4) Increasing physical memory. Well, okay, I do understand how I could achieve this--just spend a couple of hundred bucks. ;-) But are you really suggesting it's hopeless to run FOP on a 128MB machine? Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: FOP performance on Win98/JRE 1.3.1
Well, okay, I do understand how I could achieve this--just spend a couple of hundred bucks. ;-) PC133, 512MB = 40 USD. S. -Original Message- From: Lukas Pietsch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 10:46 AM To: [EMAIL PROTECTED] Subject: Re: FOP performance on Win98/JRE 1.3.1 Thanks, James, for the detailed comments. Not that I understood everything of it--I'm afraid I'm rather unexperienced with Java in general. Your suggestions sound quite convincing, only I don't know how to actually carry them out. Now maybe what follows is terribly boring newbie stuff. In that case, perhaps somebody could point me to some relevant tutorial or similar stuff on the web? (1) making the JVM survive a single FOP run or a single document conversion. How? The only way I know of invoking FOP is by saying java org.apache.fop.apps.Fop in a .bat program. (2) Adjusting JVM memory settings. How? Okay, I've found something about -Xms and -Xmx commandline parameters, but how do I find out what the present default values are? (3) Eden heap space settings. No idea what those are, let alone how I could change them... (4) Increasing physical memory. Well, okay, I do understand how I could achieve this--just spend a couple of hundred bucks. ;-) But are you really suggesting it's hopeless to run FOP on a 128MB machine? Lukas - 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: FOP performance on Win98/JRE 1.3.1
I use FOP with Xalan and I have noticed that the performance is really better with the last version of Xalan (the speed is multiply by 10) !!! That sounds interesting. FOP 0.20.2 is being distributed with a file called xalan-2.0.0.jar. Is it technically okay to just go and grab a newer version of a Xalan jar file somwhere and put it in that directory instead of the old one? Lukas (with some revived hope...) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
A simple question: Hot to close acrobat??????????????????
It's not for this place, but... When I open a pdf-report on a IE I see it. OK. But when I close the IE, there is an acrobat.exe process still open... Any idea? thx
Re: A simple question: Hot to close acrobat??????????????????
AFAIK, it remains in memory to be able to handle subsequent requests faster. AKAIK, there is no simple programmatic way to disable this. Nicola Ken Barozzi These are the days of miracle and wonder... ...so don't cry baby, don't cry [EMAIL PROTECTED] Paul Simon - Original Message - From: Raúl Carazo To: FOP Sent: Wednesday, December 12, 2001 12:04 PM Subject: A simple question: Hot to close acrobat?? It's not for this place, but... When I open a pdf-report on a IE I see it. OK. But when I close the IE, there is an acrobat.exe process still open... Any idea? thx
Re: FOP performance on Win98/JRE 1.3.1
Hello, okay, here's the result: with the new version of Xalan (2.2.D14), the .fo to .pdf part of the conversion is really a good deal faster. ([DEBUG]: Avg render time: 1050ms/page). What's still slow is the preceding docbook-to-.fo conversion. And I've also found out that it makes no big difference whether I do this with FOP or with xt. It takes about 25 seconds for the same (tiny) test document either way. So maybe it's really the complexity of the docbook xsl stylesheets that's the main culprit? Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: FOP performance on Win98/JRE 1.3.1
On Wednesday 12 December 2001 12:24, Lukas Pietsch wrote: What's still slow is the preceding docbook-to-.fo conversion. One thing I've seen is document referring to a DTD using an http:// URL. This is ok, but usually the parser will go out to the Internet to fetch the DTD, which can slow down the process noticeably. I'd suggest checking your documents or remove any DOCTYPE declarations to see if it makes a difference. -- -- Bertrand Delacrétaz, www.codeconsult.ch -- web technologies consultant - OO, Java, XML, C++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: FOP performance on Win98/JRE 1.3.1
relax, before making any modification to your docbook stylesheet, I suggest you simply use some XML parser feature to deactivate the DTD validation and DTD loading. Every major XML parser use these feature that you can configure (see Xerces for instance). This way you will not endenger the docbook code you are using or introduce any bugs :) By the way, apart from the lack of speed, do docbook stylesheet generate a good looking FO ? (I mean PDF) At 14:35 12/12/2001 +0100, you wrote: On Wednesday 12 December 2001 12:24, Lukas Pietsch wrote: What's still slow is the preceding docbook-to-.fo conversion. One thing I've seen is document referring to a DTD using an http:// URL. This is ok, but usually the parser will go out to the Internet to fetch the DTD, which can slow down the process noticeably. I'd suggest checking your documents or remove any DOCTYPE declarations to see if it makes a difference. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: FOP performance on Win98/JRE 1.3.1
On Wednesday 12 December 2001 14:42, Cyril Rognon wrote: before making any modification to your docbook stylesheet, I suggest you simply use some XML parser feature to deactivate the DTD validation and DTD loading. Yes, of course to actually solve the problem (assuming DTD fetching *is* the problem), I agree. But for a quick test, trying to find out if DTD fetching is the problem, I'd rather take out the DOCTYPE from a test document - quicker and I wouldn't have to mess with configuration settings. - Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: need help
I have the same problem but I could not easily change the XSLT to generate different page sequences. (The data is tables from a DB that go into a report.) However, since the PDFs are to be viewed only online, I split the input (with position()) and generate multiple page sets. That way no one PDF stream is more than a few hundred kilobytes over a 56k connection. In researching this, I found the Driver.setBufferFile(File buf) method. I've set this, but it doesn't seem to work. There are no Javadocs on it. I've looked at the code but I don't think its being actively called by the renderer. Does anybody know the intent and design of this function? Do any developers know if it will be implemented soon? FOP is great, but it requires way too much kid gloving when it comes to performance and memory utilization. I read a note a while back (2000 I think) that someone said they were trying to achieve 100% conformance with the spec before they addressed these issues. I might agree with that, but few web browsers were 100% compliant with W3C standards before they were used daily by 10s of millions of users. FOP is in a good enough state to be useful in production environments. Isn't it time to address the scalability aspects of FOP to meet those needs? I suggest that out of the box FOP needs to manage its own resources much better. XSLT is already a drain. Ed --- Cyril Rognon [EMAIL PROTECTED] wrote: Hello, I have already posted a message about memory issue but it went unseen. My problem is : I have 50-500 pages document to generate. Fop handles this perfectly and fastly (1200 ms / page average). I just have one draw back : I need to provide much memory to FOP. I have managed to have no more than 20 pages in each page sequences and yet need more than 128 Mo for a 81 pages document. I wloud like to know if someone can help or tell me where to look to downsize my memory requierments. If I succeed, Fop will be heavily used in a production environnement. Thanks Cyril - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
image file path
Hi , When i run my FOP code on unix machine , it is not able to pick the image file , it gives error error on relative URL : no protocol: null/home/opt/weblogic610/wlserver6.1/config/mydomain/applications/DefaultWebApp/images/english/global_navbar/d.gif my code is like this fo:external-graphic xsl:attribute name=srcxsl:value-of select=concat('file','/home/opt/weblogic610/wlserver6.1/config/mydomain/applications/DefaultWebApp//images/english/deutschelogo.gif') / /xsl:attribute /fo:external-graphic plz tell me , what should i give in path to make it work thanks -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: need help
The best way to do this is by using a smaller page region. I don't remember the exact instructions, but if you look through the message archive you will see this explained in detail. Paul Branham [EMAIL PROTECTED] 24/7 Media, Inc. Phone:(301)897-7722 -Original Message- From: Cyril Rognon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 8:16 AM To: [EMAIL PROTECTED] Subject: need help Hello, I have already posted a message about memory issue but it went unseen. My problem is : I have 50-500 pages document to generate. Fop handles this perfectly and fastly (1200 ms / page average). I just have one draw back : I need to provide much memory to FOP. I have managed to have no more than 20 pages in each page sequences and yet need more than 128 Mo for a 81 pages document. I wloud like to know if someone can help or tell me where to look to downsize my memory requierments. If I succeed, Fop will be heavily used in a production environnement. Thanks Cyril - 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: need help
- Original Message - From: Keiron Liddle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 12, 2001 3:54 PM Subject: Re: need help While that is true there are certain things you need to realise. - there are serious layout issues that need to be addressed - performance and memory is very much tied up to how the whole system works, this makes it difficult to fix Are there any discussions on how to reorganize fop on a more scalable framework? Maybe going to SAX or other internal representations? Sorry for the questions, I'm not able to check the list arcives right now. - getting FOP to a stage where there is a clear development direction is difficult - none of this will happen by itself Right. It appears that more effort needs to be put towards communicating the issues involved and the way in which FOP can be improved. What are the plans for FOP. Are the releases giong to be so slowly incremental? I'm really in the need of enhancements on the performance side and I don't know where to start. I also needed something that could render fo dynamically but FOP is not made for this... How can I help regarding these issues? Nicola Ken Barozzi These are the days of miracle and wonder... ...so don't cry baby, don't cry [EMAIL PROTECTED] Paul Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: need help
Keiron, Maybe Ed went a little too far about this. of course I do not request immediate magical memory solution that would enable me to generate my pdf on a cell phone :) I have read in this list that some people have 200+ pages documents with low memory footprint (around 20-50 Mo). I just want to know if someone could give me any hints of achieving a nice FOP generation within 128 Mo knowing that I am using page sequences under 15 pages. Thanks in advance. As for me, the speed of FOP is not an issue. The memory would not be an issue if I had not a physical limit of 128Mo for now (too many units involved). At 15:54 12/12/2001 +0100, you wrote: On 2001.12.12 15:39 Ed Howland wrote: In researching this, I found the Driver.setBufferFile(File buf) method. I've set this, but it doesn't seem to work. There are no Javadocs on it. I've looked at the code but I don't think its being actively called by the renderer. Does anybody know the intent and design of this function? Do any developers know if it will be implemented soon? This was not a full or solid solution and was disabled due to problems. FOP is great, but it requires way too much kid gloving when it comes to performance and memory utilization. I read a note a while back (2000 I think) that someone said they were trying to achieve 100% conformance with the spec before they addressed these issues. I might agree with that, but few web browsers were 100% compliant with W3C standards before they were used daily by 10s of millions of users. FOP is in a good enough state to be useful in production environments. Isn't it time to address the scalability aspects of FOP to meet those needs? I suggest that out of the box FOP needs to manage its own resources much better. XSLT is already a drain. While that is true there are certain things you need to realise. - there are serious layout issues that need to be addressed - performance and memory is very much tied up to how the whole system works, this makes it difficult to fix - getting FOP to a stage where there is a clear development direction is difficult - none of this will happen by itself - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
reuse of PDFRenderer
Hi, this is my first time contacting the mail group. If you received this mail in error, I am sorry. I am building a batch printing application. This application processes huge number of documents. I did some measurements and found out that every document beeing processed (Driver.run()) locks about 6 kB of memory. I invastigated the problem and did a pool of Driver objects to reuse them. This doesn't help since the Driver object by starting the setRenderer() method instantiates a PDFRenderer and this is the object that after beeing finished still keeps allocated memory. If I reset() the driver to perform another transformation it creates a corrupted PDF since the renderer was not reinitialized (my opinion). Does anyone have an idea how to make a pool of Driver, PDFRenderer objects or how to get rid of the memory leak? thanks Zdenek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: need help
On 2001.12.12 16:11 Nicola Ken Barozzi wrote: Are there any discussions on how to reorganize fop on a more scalable framework? Maybe going to SAX or other internal representations? Sorry for the questions, I'm not able to check the list arcives right now. Yes there have been. This is important information that needs to be more accessible. Briefly the idea is to keep information minimal and use/dispose of any data as soon as possible, failing that a simple caching mechanism will be available. What are the plans for FOP. Are the releases giong to be so slowly incremental? I'm really in the need of enhancements on the performance side and I don't know where to start. I also needed something that could render fo dynamically but FOP is not made for this... How can I help regarding these issues? I think first you need to understand what is goind on. So we need to provide information: - what the plans and issues are - what is currently being done I will be working on this! Then should have a better idea and you can then ask more specific questions. For now getting a general idea of the code might help you get started. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: need help
Keiron, I would gladly share this info in order to contribute to FOP. here is the last transcript from FOP : [DEBUG]: Initial heap size: 1828Kb [DEBUG]: Current heap size: 127392Kb [DEBUG]: Total memory used: 125564Kb [DEBUG]: Memory use is indicative; no GC was performed [DEBUG]: These figures should not be used comparatively [DEBUG]: Total time used: 67054ms [DEBUG]: Pages rendererd: 85 [DEBUG]: Avg render time: 788ms/page As everyone see, speed is ok, but memory ? I thought Fop would dispose of all the objects inside a page sequence when it's done. I have tested the following : adding some content to generate more page sequences and fop did you more memory. so there might be a leak somewhere. anyway, I would gladly participate in whatever plan ther is to improve this great FO processor. Thanks Cyril I think first you need to understand what is goind on. So we need to provide information: - what the plans and issues are - what is currently being done I will be working on this! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Funny
Hi All. I am playing around to get my application run. And I have met some funny piece of code. Like this: package org.apache.fop.viewer; ... public class PreviewDialog extends JFrame implements ProgressListener, MessageListener { ... And when I get look at method dispose I was surprised: public void dispose() { System.exit(0); } It's really cool - 100% of free resources :-) Sincerely yours, Ivan Latysh. [EMAIL PROTECTED] http://ivan.yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[PATCH] update documentation for maintenance release
Hi, I've taken a first look at the documentation and updated some links etc. You need to run makedoc in docs/xml-doc to generate the html documentation. I had a lot of problems to get makedoc.bat to work and after fixing those I realised that makedoc.sh had already been fixed. (Doh, should have used linux ;-) Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[PATCH] update documentation for maintenance release
I'm really sorry, forgot again the attachment ;-( Hi, I've taken a first look at the documentation and updated some links etc. You need to run makedoc in docs/xml-doc to generate the html documentation. I had a lot of problems to get makedoc.bat to work and after fixing those I realised that makedoc.sh had already been fixed. (Doh, should have used linux ;-) Christian Index: docs/xml2pdf.xsl === RCS file: /home/cvspublic/xml-fop/docs/xml2pdf.xsl,v retrieving revision 1.4 diff -u -r1.4 xml2pdf.xsl --- docs/xml2pdf.xsl2000/12/16 22:48:48 1.4 +++ docs/xml2pdf.xsl2001/12/12 17:17:41 @@ -21,7 +21,7 @@ /fo:simple-page-master /fo:layout-master-set - fo:page-sequence master-name=simple + fo:page-sequence master-reference=simple fo:static-content flow-name=xsl-region-before fo:block text-align=end font-size=10pt Index: docs/xml-docs/makedoc.bat === RCS file: /home/cvspublic/xml-fop/docs/xml-docs/Attic/makedoc.bat,v retrieving revision 1.13 diff -u -r1.13 makedoc.bat --- docs/xml-docs/makedoc.bat 2001/08/20 21:11:02 1.13 +++ docs/xml-docs/makedoc.bat 2001/12/12 17:19:15 @@ -8,14 +8,14 @@ if %JAVA_HOME% == goto error set LIBDIR=..\..\lib -set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-1.2.2.jar;%LIBDIR%\bsf.jar;%LIBDIR%\avalon-framework-4.0.jar;%LIBDIR%\logkit-1.0b4.jar;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\stylebook.jar;%LIBDIR%\..\build\fop.jar +set +LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-2.0.0.jar;%LIBDIR%\xalan-1.2.2.jar;%LIBDIR%\xalanj1compat.jar;%LIBDIR%\bsf.jar;%LIBDIR%\avalon-framework-4.0.jar;%LIBDIR%\logkit-1.0b4.jar;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\stylebook.jar;%LIBDIR%\..\build\fop.jar set ANT_HOME=%LIBDIR% %JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath %LOCALCLASSPATH%;%CLASSPATH% org.apache.tools.ant.Main %1 %2 %3 %4 %5 -%JAVA_HOME%\bin\java.exe -classpath %LOCALCLASSPATH%;%CLASSPATH% org.apache.stylebook.StyleBook targetDirectory=../html-docs/ fop.xml style/ +%JAVA_HOME%\bin\java.exe -classpath %LOCALCLASSPATH%;%CLASSPATH% +org.apache.stylebook.StyleBook targetDirectory=../html-docs/ fop.xml +skins/xml.apache.org/ goto end Index: docs/xml-docs/xml2pdf.xsl === RCS file: /home/cvspublic/xml-fop/docs/xml-docs/xml2pdf.xsl,v retrieving revision 1.9 diff -u -r1.9 xml2pdf.xsl --- docs/xml-docs/xml2pdf.xsl 2001/08/20 16:19:58 1.9 +++ docs/xml-docs/xml2pdf.xsl 2001/12/12 17:19:16 @@ -37,7 +37,7 @@ /fo:simple-page-master /fo:layout-master-set - fo:page-sequence master-name=simple + fo:page-sequence master-reference=simple fo:static-content flow-name=xsl-region-before fo:block text-align=end font-size=10pt Index: docs/xml-docs/fop/involved.xml === RCS file: /home/cvspublic/xml-fop/docs/xml-docs/fop/involved.xml,v retrieving revision 1.7 diff -u -r1.7 involved.xml --- docs/xml-docs/fop/involved.xml 2001/06/06 12:34:05 1.7 +++ docs/xml-docs/fop/involved.xml 2001/12/12 17:19:17 @@ -41,6 +41,18 @@ pBTW: The Apache project knows different roles for contributors, namely 'users', 'developers', 'committers' and the 'Project Management Committee' (An explanation of these roles can be found jump href=http://xml.apache.org/roles.html;here/jump)./p /s2 + + s2 title=Coding Conventions + pAs mentioned in jump href=http://xml.apache.org/source.html;Apache XML +Project Guidelines/jump, + emall Java Language source code in the repository must be written in conformance +to the + jump href=http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html;Code +Conventions + for the Java Programming Language/jump as published by Sun/em. Additionally we +agreed on 4 + spaces (no tabs) for indenting./p + pIf you don't like those conventions, just use your own standards while +developing and reformat the source before + committing with a tool like jump +href=http://astyle.sourceforge.net/;astyle/jump (Artistic Style). + /p + /s2 + s2 title=Get familiar with the Fop related standards pAt the moment Fop is mainly a tool to render XSL:FO files to pdf. Therefore if you want to contribute to Fop you should become familiar with these standards. You can find their
[PATCH] text-decoration for blocks (maintenance branch)
Hi, this patch adds text-decoration support for blocks. There still some things I want to do (like inherit text-decoration from a parent inline, problems with hyphenation and nbsp). Christian Index: docs/examples/fo/textdeko.fo === RCS file: /home/cvspublic/xml-fop/docs/examples/fo/textdeko.fo,v retrieving revision 1.3.4.1 diff -u -u -r1.3.4.1 textdeko.fo --- docs/examples/fo/textdeko.fo2001/12/06 21:28:18 1.3.4.1 +++ docs/examples/fo/textdeko.fo2001/12/11 19:36:36 @@ -77,7 +77,7 @@ line-height=15pt space-after.optimum=10pt text-align=start -This is simple test of the text-decorationfo:inline text-decoration=underlineunderline/fo:inline. +This is simple test of the text-decoration fo:inline +text-decoration=underline'underline'/fo:inline. /fo:block fo:block font-size=22pt font-family=sans-serif @@ -96,7 +96,7 @@ /fo:block fo:block font-size=12pt font-family=sans-serif line-height=15pt text-align=justify space-after.optimum=3pt - The following text decorations are defined in the CR: + The following text decorations are defined in the REC: /fo:block fo:list-block space-after.optimum=13pt @@ -244,6 +244,12 @@ space-after.optimum=10pt text-align=start What about underlining of whitespace onlyfo:inline text-decoration=underline /fo:inline? + /fo:block + + + fo:block space-after.optimum=13pt font-size=14pt +text-decoration=underline + A whole block should work now. + And again some more Text to get at least two lines. /fo:block Index: src/org/apache/fop/fo/FObjMixed.java === RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/fo/FObjMixed.java,v retrieving revision 1.12 diff -u -u -r1.12 FObjMixed.java --- src/org/apache/fop/fo/FObjMixed.java2001/08/01 22:12:52 1.12 +++ src/org/apache/fop/fo/FObjMixed.java2001/12/11 19:36:45 @@ -8,6 +8,7 @@ package org.apache.fop.fo; import org.apache.fop.layout.Area; +import org.apache.fop.layout.TextState; import org.apache.fop.apps.FOPException; /** @@ -16,6 +17,9 @@ */ public class FObjMixed extends FObj { +// Textdecoration +protected TextState ts; + public static class Maker extends FObj.Maker { public FObj make(FObj parent, PropertyList propertyList) throws FOPException { @@ -33,7 +37,14 @@ } protected void addCharacters(char data[], int start, int length) { -addChild(new FOText(data, start, length, this)); +// addChild(new FOText(data, start, length, this)); +FOText ft = new FOText(data, start, length, this); +ft.setLogger(log); +ft.setUnderlined(ts.getUnderlined()); +ft.setOverlined(ts.getOverlined()); +ft.setLineThrough(ts.getLineThrough()); +addChild(ft); + } public Status layout(Area area) throws FOPException { Index: src/org/apache/fop/fo/PropertyManager.java === RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/fo/PropertyManager.java,v retrieving revision 1.7 diff -u -u -r1.7 PropertyManager.java --- src/org/apache/fop/fo/PropertyManager.java 2001/08/06 09:12:58 1.7 +++ src/org/apache/fop/fo/PropertyManager.java 2001/12/11 19:36:47 @@ -26,6 +26,8 @@ import java.text.FieldPosition; import org.apache.fop.layout.Area; import org.apache.fop.layout.ColumnArea; +import org.apache.fop.layout.TextState; +import org.apache.fop.fo.properties.TextDecoration; public class PropertyManager { @@ -247,4 +249,29 @@ AbsolutePositionProps props = new AbsolutePositionProps(); return props; } + +public TextState getTextDecoration() throws FOPException { +TextState ts = new TextState(); + +int textDecoration = this.properties.get(text-decoration).getEnum(); + +switch (textDecoration) { +case TextDecoration.UNDERLINE: +ts.setUnderlined(true); +break; +case TextDecoration.OVERLINE: +ts.setOverlined(true); +break; +case TextDecoration.LINE_THROUGH: +ts.setLineThrough(true); +break; +case TextDecoration.NONE: +ts.setUnderlined(false); +ts.setOverlined(false); +ts.setLineThrough(false); +} + +return ts; +} + } Index: src/org/apache/fop/fo/flow/Block.java === RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/fo/flow/Block.java,v retrieving revision 1.41.2.1 diff -u -u -r1.41.2.1 Block.java --- src/org/apache/fop/fo/flow/Block.java 2001/12/06 21:28:21 1.41.2.1 +++
Re: FOP performance on Win98/JRE 1.3.1
Just a thought... did anybody try FOP with jRockit JVM? James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: reuse of PDFRenderer
I don't have a solution, but I also would like to reuse or reset the driver. I remember seeing that reset had problems, any fixes or a way to make it work? I'm generating 70,000 pdf's with pretty complex fo markup and would like to speed up the process anyway possible. I have no memory problems (avg pdf is less than 10 pages), I would just like to speed up the rendering by reusing the driver. JohnPT fop-dev-return-12113-jthaemlitz=oreillyauto.com@XML. APACHE.ORG To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] 12/12/01 09:31 AM cc: Dvorák Zdenek [EMAIL PROTECTED] Please respond to fop-dev Subject: reuse of PDFRenderer Hi, this is my first time contacting the mail group. If you received this mail in error, I am sorry. I am building a batch printing application. This application processes huge number of documents. I did some measurements and found out that every document beeing processed (Driver.run()) locks about 6 kB of memory. I invastigated the problem and did a pool of Driver objects to reuse them. This doesn't help since the Driver object by starting the setRenderer() method instantiates a PDFRenderer and this is the object that after beeing finished still keeps allocated memory. If I reset() the driver to perform another transformation it creates a corrupted PDF since the renderer was not reinitialized (my opinion). Does anyone have an idea how to make a pool of Driver, PDFRenderer objects or how to get rid of the memory leak? thanks Zdenek - 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 5344] - table with row borders are not rendered
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=5344. 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=5344 table with row borders are not rendered --- Additional Comments From [EMAIL PROTECTED] 2001-12-12 12:11 --- The border properties for rows are not implemented yet. You can create your grid with column borders all around and uppper/lower cell borders. Corinna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Dictionary style pages
Matthias, the directory is part of the fop sitribution. It's a subdirectory of xml-fop - or whatever is the name of your FOP installation root directory -on the samelevel as the src directory. Sorry I wasn't clear about that - and that you had to wait for the answer ;)) Corinna - Original Message - From: Matthias Fischer To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 9:09 AM Subject: RE: Dictionary style pages Hi Corinna, where is: docs/examples/pagination/franklin_2pageseqs.fo ? Are there some other pages with (working) XSL implementations, e.g. for a product catalogue? Matthias -Original Message-From: Corinna Hischke [mailto:[EMAIL PROTECTED]]Sent: Friday, December 07, 2001 4:14 PMTo: [EMAIL PROTECTED]Subject: Re: Dictionary style pages Hi, [...] For more details, see docs/examples/pagination/franklin_2pageseqs.fo. 2. I didn't try it, but theoretically markers should be used for this kind of 'running header'. HTH, Corinna
Re: XML to PDF
Hi, I'm running FOP under Windows 2000 with jdk 1.2.2 which works fine ... But apart from that: svg classes belong to the batik project. They should be in batik.jar, which should be included with the fop distribution in the lib subdirectory of the fop root. HTH, Corinna - Original Message - From: SHU KUO [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 11, 2001 7:26 PM Subject: XML to PDF --- Received from DIST.KUOS 777-282501-12-11 14.26 - [EMAIL PROTECTED] Hi. with ivan's help. I am able to compile the program under Windows 2000. JDK 1.3.1 can't recognize system variable CLASSPATH. Now, I still get the folling not found class message which I don't see is being defined, where it is ? EXCEPTION IN THREAD MAIN JAVA.LANG.NOCLASSDEFFOUNDERROR org/apache/batik/dom/svg/svgcontent at org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMappin g) is this something to do with FO file, I am using the downloaded examples. the following is my code: //DOM import org.w3c.dom.*; import org.apache.xerces.parsers.*; //Java import java.io.*; import java.io.File; import java.lang.String; import java.net.URL; import org.apache.fop.apps.*; import org.apache.fop.apps.InputHandler; import org.apache.fop.svg.*; import org.apache.fop.messaging.*; import org.xml.sax.*; import org.apache.xerces.parsers.SAXParser; public class XMLPDF { public static void main(String[] args) { try{ File xmlf = new File(c:/jdk1.3.1/xslfoRef.xml); File xslf = new File(c:/jdk1.3.1/xml2pdf.xsl); File writefile = new File(test.pdf); writefile.createNewFile(); Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); InputHandler inputHandler = new XSLTInputHandler(xmlf, xslf); XMLReader parser = inputHandler.getParser(); InputSource inputSource = inputHandler.getInputSource(); driver.setOutputStream(new FileOutputStream(writefile)); driver.render(parser, inputSource); //writefile.close(); } catch (Exception ex) {ex.printStackTrace(); } } } thanks for the help. - 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: inline tables?
Hi, the spec says: yes, block-level objects like tables can be children of fo:inline. I didn't try it, but if it works, please tell us. Corinna - Original Message - From: Stephan Michels [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 11, 2001 1:53 PM Subject: inline tables? Hi, are tables as inline objects allowed? Like this e.g. bla bla fo:inlinefo:table.../fo:table/fo:inline When yes, does this work with the fop? Thank you, Stephan Michels. - 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: A simple question: Hot to close acrobat??????????????????
At 03:04 12-12-2001, Raúl Carazo wrote: It's not for this place, but... When I open a pdf-report on a IE I see it. OK. But when I close the IE, there is an acrobat.exe process still open... As far as I can tell, the only way is to open the Acrobat Reader, which will launch quickly because the core process is already running; then, when you quit Acrobat Reader, the process will also close down. ~Chris -- Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc. DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training URL: http://www.hmmci.com/ URL: http://crism.maden.org/consulting/ PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA msg04198/pgp0.pgp Description: PGP signature
cvs commit: xml-fop/docs readme
keiron 01/12/13 00:00:21 Modified:docs readme Log: updated info Revision ChangesPath 1.3 +1 -3 xml-fop/docs/readme Index: readme === RCS file: /home/cvs/xml-fop/docs/readme,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- readme2000/12/16 22:49:32 1.2 +++ readme2001/12/13 08:00:21 1.3 @@ -7,13 +7,11 @@ xml-docs Fop documentation in xml files and a script to create pdf documentation designUML diagrams showing the Fop design -bugtests contains a set of xsl:fo files which are used to test - changes to the Fop code graphics some graphics used by the examples and test files examples a lot of xs:fo example files examples/fo some simple examples to get you started examples/ pagination some simple and some not so simple examples how to use the new page layout tags in xsl:fo -examples/svg quite a lot of examples using svg +examples/svg some example documents of how to use svg in fop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]