fop and VAJ 3.5.3
hi, does anyone know what to do to make FOP run in Visual Age for Java 3.5.3? I tried to import: 1. all java and resource files from Fop's src directory and 2. import xerces-1.2.3.jar, xalan-2.0.0.jar, batic.jar, jimi-1.0.jar But I still get a NullPointerExeption while generating a new sax parser instace in org.apache.fop.configuration.ConfigurationReader.createParser() the actual exception occures in StringPool.ensureCapacity(). See also the screenshot. On the other hand: I could also use Forte3.0 instead of VAJ 3.5.3. Using Forte, would it be easier to get FOP run in the Debugger: (I would like to debug the FOP sourcecode)? Bodo Teichmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: fop and VAJ 3.5.3
Martin, Thank you for you help, now it works. But i note that I got it only running in VAJ if I import the sources from build directory not from the src directory, and it seems that I need to run ant in advance of the import. The result is, that I actually do not debug (and possibly change) the real source but the ant-generated source code. Is this the way one should go or is there a other/better way to do it? Bodo Martin Roob wrote: ..you have to deselect the hook on the NullPointerException on the tab Exceptions in the VA Debugger. Otherwise, VA will stop in the debugger on every NPE, even if the NPE is handled later (which is the case in StringPool.ensureCapacity). Otherwise you have to press the resume button for about 1000 times. In my opinion it is no good style to generate NPEs and handle them instead of avoiding them, but that's how it is here. This makes it somewhat difficult to debug real NPEs. Martin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 6:09 PM Subject: fop and VAJ 3.5.3 hi, does anyone know what to do to make FOP run in Visual Age for Java 3.5.3? I tried to import: 1. all java and resource files from Fop's src directory and 2. import xerces-1.2.3.jar, xalan-2.0.0.jar, batic.jar, jimi-1.0.jar But I still get a NullPointerExeption while generating a new sax parser instace in org.apache.fop.configuration.ConfigurationReader.createParser() the actual exception occures in StringPool.ensureCapacity(). See also the screenshot. On the other hand: I could also use Forte3.0 instead of VAJ 3.5.3. Using Forte, would it be easier to get FOP run in the Debugger: (I would like to debug the FOP sourcecode)? Bodo Teichmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
fop and VAJ 3.5.3
Hi, does anyone know what to do to make FOP run in Visual Age for Java 3.5.3? I tried to import: 1. all java and resource files from Fop's src directory and 2. import %LIBDIR%\ant.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-2.0.0.jar;%LIBDIR%\xalanj1compat.jar;%LIBDIR%\bsf.jar;%LIBDIR%\jimi-1.0.jar But I still get a 294 Problems in VAJ. On the other hand: I could also use Forte3.0 instead of VAJ 3.5.3. Using Forte, would it be easier to get FOP run in the Debugger: (I would like to debug the FOP sourcecode)? If yes: is there any written guidance on how to create a Forte Project for FOP ? Bodo Teichmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: orphan and widow control?
hi, since no one on the fop-user list seems to have a clue im reposting my question on fop-dev: i played a little bit with the orphan and widow attribute in fo:simple-page-master ..orphans=3 widows=3 and also in the flow and block elements but it seems to have no effect. is this feature implemented at all ? bodo teichmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
exceptions for hyphenation
Hi, since Fops hyphenation algorithm (borrowed from TeX, right?) seems to be not working perfect, i wonder whether there is a possiblility to define exceptions: Example : the german word Blumentopferde would be hypenated to Blu-men-top-ferde which is not correct. In TeX one could define an exceptionlist for such words. Is this possible in fop too? Or - if not - is somebody thinking about implementing this in Fop ? Bodo Teichmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
keep-with-next problem on multi column text
hi, i tried to use the keep-with-next property on a multi column page with some text blocks that normally fits on one page with 4 columns. my text consists of this sequence of text blocks: every 2nd block is meant to be a headline and the the following block is the paragraph belonging to that headline. therefore i set the keep-with-next attribute on the headline blocks but still the column break occurred between the headline and the paragraph. looking in to the code i found that in org.apache.fop.fo.flow.Block.layout(Area) the line: this.keepWithNext = this.properties.get(keep-with-next).getEnum(); does not have any effect , since the getEnum() method always returns (0) because the org.apache.fop.fo.KeepProperty(Keep) does not overwrite the getEnum() method. so i patched this so that this.keepWithNext got the value=5 (just to see what will happen then ) but immediately i run in to another error: the headline appeared on the bottom of the old column, a wrong page break occurred (instead of a column break) and the same headline appeared on the top of the new page. if nobody else is currently working on this problems i would be willing to do this, if i (as a someone who just started to try to understand the fop source code) get some assistance from the fop gurus. would you appreciate this? bodo teichmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: - want EURO character instead of #
are you sure that your font on linux contains the euro character at all? there are a lot of font descripton files around that are not yet up to date in this respect. bodo Marc Mueller wrote: Hi, I've got the following problem: My XML input contains the european Euro-Character. After rendering into PDF there is a # sign at the place, the euro was before. This happens only under Linux, when transorming under Windows 2000 everything seems to be OK.. Any idea how to fix that ??? Kind regards, Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Teil 1.3 Content-Type: text/plain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Concat
Hi, xsl-fo does not have a function which can be used to concatenate strings. XSL-Transformation however has such a function (concat(...)) it takes an many arguments as you like. I suppose your parameter is storedas an attributeof some element or as element contentin your xml input. You can use the following line to concatenate strings img href="javascript:void(0);"MARGIN-RIGHT: 0px"> Is there a function like concat for Strings. I have a param in the xml file (the path of a directory) and the name in the XSL file, so I want to create a full path with the path of the directory and the name of the file. Any Idea?? Salve Siete buoni, se potete
RE: FopServlet
It looks as if your tomcat installation does not pick up Xalan.jar. You have to put all FOP jars (fop.jar, batik.jar etc.) into yourwebapp/WEB-INF/lib/ directory. Hope this helps Volker -Original Message- From: Deb Schmutz [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 2:17 AM To: [EMAIL PROTECTED] Subject: FopServlet I am new to Fop and having problems with the FopServlet that came with Fop-0.20.2. Please can anyone give me any pointers. TIA. Error: 500 Location: /fop/fop Internal Servlet Error: javax.servlet.ServletException at FopServlet.renderXML(FopServlet.java:135) at FopServlet.doGet(FopServlet.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Root cause: org.apache.fop.apps.FOPException at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109) at FopServlet.renderXML(FopServlet.java:128) at FopServlet.doGet(FopServlet.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) - java.lang.reflect.InvocationTargetException: javax.xml.transform.TransformerFactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.xalan.processor.TransformerFactoryImpl at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:1 21) at org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72) at java.lang.reflect.Method.invoke(Native Method) at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102) at FopServlet.renderXML(FopServlet.java:128) at FopServlet.doGet(FopServlet.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) javax.xml.transform.TransformerFactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.xalan.processor.TransformerFactoryImpl at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:1 21) at org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72) at java.lang.reflect.Method.invoke(Native Method) at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102) at FopServlet.renderXML(FopServlet.java:128) at FopServlet.doGet(FopServlet.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405
RE: FOPException:no protocol when executin driver.run()
Hi Susan, what files did you try to run? Could it be that you are using images? If so you have to use URL syntax i.e. file://path_to_the_location_of_your_image_file. Volker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: generate pdf files and print them to a specific paper bin
Hi Manoj, there is a way to use different paper sizes at least for some HP printers (i.e. HP LaserJet 2200 model). The printer driver lets you choose which sheet size should be used to print the first page. Maybe this helps Volker -Original Message- From: Manoj Unnikrishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 6:41 PM To: [EMAIL PROTECTED] Subject: generate pdf files and print them to a specific paper bin I want to generate pdf files and print them to a specific paper bin. How can I do this? Can I do this while using fop to generate the PDF. When the PDF is printed I want the first page to be printed on letter head paper and all the others on plain paper. Any help will be appreciated. Thanks Manoj Unnikrishnan __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - 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: Can't bind page number into a variable
Hi Simon, I'm afraid but there is no way to know on which page you are. Is there a reason why you can't put the page number into a static area? If you can then the following snippets might help: 1. Define your pages (left / right) fo:simple-page-master master-name=right_page page-height={$MEDIA_PAGE_HEIGHT}cm page-width={$MEDIA_PAGE_WIDTH}cm margin-top={$MEDIA_MARGIN_TOP}cm margin-bottom={$MEDIA_MARGIN_BOTTOM}cm margin-left={$MEDIA_MARGIN_LEFT}cm margin-right={$MEDIA_MARGIN_RIGHT}cm fo:region-body margin-top={$SUBSIDIARIES_HEADER_EXTENT}cm margin-bottom={$SUBSIDIARIES_FOOTER_EXTENT}cm margin-left={$THUMB_AREA_EXTENT}cm margin-right={$THUMB_AREA_EXTENT}cm xsl:call-template name=makeBackgroundImage/ /fo:region-body fo:region-before extent={$SUBSIDIARIES_HEADER_EXTENT}cm/ fo:region-after region-name=footer-even extent={$SUBSIDIARIES_FOOTER_EXTENT}cm/ fo:region-start extent={$THUMB_AREA_EXTENT}cm/ fo:region-end extent={$THUMB_AREA_EXTENT}cm/ /fo:simple-page-master fo:simple-page-master master-name=left_page page-height={$MEDIA_PAGE_HEIGHT}cm page-width={$MEDIA_PAGE_WIDTH}cm margin-top={$MEDIA_MARGIN_TOP}cm margin-bottom={$MEDIA_MARGIN_BOTTOM}cm margin-left={$MEDIA_MARGIN_LEFT}cm margin-right={$MEDIA_MARGIN_RIGHT}cm fo:region-body margin-top={$SUBSIDIARIES_HEADER_EXTENT}cm margin-bottom={$SUBSIDIARIES_FOOTER_EXTENT}cm margin-left={$THUMB_AREA_EXTENT}cm margin-right={$THUMB_AREA_EXTENT}cm xsl:call-template name=makeBackgroundImage/ /fo:region-body fo:region-before extent={$SUBSIDIARIES_HEADER_EXTENT}cm/ fo:region-after region-name=footer-odd extent={$SUBSIDIARIES_FOOTER_EXTENT}cm/ fo:region-start extent={$THUMB_AREA_EXTENT}cm/ fo:region-end extent={$THUMB_AREA_EXTENT}cm/ /fo:simple-page-master 2. Assign them to odd / even page numbers fo:page-sequence-master master-name=subsidiaries fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=right_page odd-or-even=odd/ fo:conditional-page-master-reference master-reference=left_page odd-or-even=even//fo:repeatable-page-master-alternatives /fo:page-sequence-master 3. Use the page sequence and add layout specific to even / odd pages fo:page-sequence master-reference=subsidiaries fo:static-content flow-name=footer-even xsl:call-template name=makeNotesFootnote/ xsl:call-template name=makePageNumberFooterEven/ /fo:static-content fo:static-content flow-name=footer-odd xsl:call-template name=makeNotesFootnote/ xsl:call-template name=makePageNumberFooterOdd/ /fo:static-content fo:flow ... /fo:flow /fo:page-sequence BTW: Please use fop-users list for questions like this in future. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 9:51 PM To: [EMAIL PROTECTED] Subject: Can't bind page number into a variable Hi, I would like to put specific attributes on odd or even pages, so I began by looking for a way to check the context pages but I did'nt find anything. So I wanted to bind the fo:page-number / into a variable in order to make some test on it when I want to add specific parameters to my tags. xsl:variable name=page_numberfo:page-number //xsl:variable xsl:if test=($page_number mod 2)=1 xsl:attribute name=text-alignstart/xsl:attribute /xsl:if xsl:if test=($page_number mod 2)=0 xsl:attribute name=text-alignend/xsl:attribute /xsl:if But it looks like being impossible to bind the fo:page-number / into a variable or param (I tried to write my variable in a block but it looks like being setted to by the fo:page-number tag). Is here a reason for my variable to be null ? And is there a way to detect the context where I am currently in while writing in a non-static content ? I also tried to make a template with a page_number param but it doesn't work either... Here are some examples of my pdf outputs : http://www.tatouage.fr/temp/ap_skin_example.pdf (here I want to align my titles at the start or the end of the block depending of the odd or even condition, I am in a non-static context) http://www.tatouage.fr/temp/cd_skin_example.pdf (It's the same with this skin but it will be easier for me because every objects have statical
RE: Adding a .png Image
Hi Venkata, are you receiving any error messages? Like Jimi image library not available? If so you need to download the JIMI library from Sun Microsystems at http://java.sun.com/products/jimi/ and make sure the the classes are picked up. -Original Message- Hello , I want to insert a .png image in table but it seems .png is not supported. can anyone suggest me a solution where I can achieve this. Thanks in Advance, Venkata Suresh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]