| Posted: 08 Jan 2007 11:50 | |
|
Registered User Currently Offline |
Posts: 5 Join Date: Jan 2007 |
|
Hi,
with 0.20.5 version my pdf documents that containing PNG images with alpha channel appearing with a wrong black background. They are ok in chunk and html output. As suggest in apache-fop support forum I've replacing the current fop version with a newer version 0.93 that doesn't suffer from this problem. But when I try to generate pdf version of my file I get this error: Exception in thread "main" java.lang.NoSuchMethodError: main ("main" is my xml source file) What's the problem? Is there a particular setting to do? Thanks in advance and best regards GP |
|
| Posted: 11 Jan 2007 12:54 | |
|
Registered User Currently Offline |
Posts: 28 Join Date: Apr 2005 |
|
I would also like to upgrade fop. Can you give us instructions?
BTW: main does not refer to you xml source file but is part of the error message. |
|
| Posted: 12 Jan 2007 16:57 | |
|
Registered User Currently Offline |
Posts: 5 Join Date: Jan 2007 |
|
1) download the newest fop version from:
http://www.apache.org/dyn/closer.cgi/xmlgraph ... 2) rename your "fop" ede directory in "old_fop" (for example) 3) copy the new fop distribuition in the ede root directory (docbook) 4) renaming it from "fop-0.93" to "fop" 5) in docbook dhell prompt launch "docbook_html myfile" 6) that's all Bye GP |
|
| Posted: 12 Jan 2007 20:42 | |
|
Registered User Currently Offline |
Posts: 3 Join Date: Mar 2005 |
|
I have the same problem here... Maybe the problem is the way the batch files are invoking FOP. Most likely, the entry method has changed...
If anyone knows the solution to this problem, I would appreciate it
Thanks! |
|
| Posted: 15 Jan 2007 11:39 | |
|
Registered User Currently Offline |
Posts: 5 Join Date: Jan 2007 |
|
I've resolved in this way:
1) in the "docbook_pdf" file search line invoking java command (about 90-95 line numbers) 2) rem this command (maybe starting like: java.exe %docbook_java_parameters% -cp %docbook_path%\.... 3) add this command: %docbook_path%\fop\fop.bat -c %docbook_path%\fop\conf\userconfig.xml %docbook_outputdir%\%1.fo -pdf %docbook_outputdir%\%1.pdf bye |
|
| Posted: 17 Jan 2007 17:03 | |
|
Registered User Currently Offline |
Posts: 28 Join Date: Apr 2005 |
| Don't waste your time on ingbl123's ideas. You cannot remove the java line. | |
| Posted: 18 Jan 2007 10:25 | |
|
Registered User Currently Offline |
Posts: 5 Join Date: Jan 2007 |
|
@Docbooker
warning: fop.bat calls java line! I've no problems with this workaround... I'm using fop 0.93 under original eDE distribuition 1.3.0 and all works great. The only problem is the generation of online acrobat readable bookmarks that in this fop version are based on new XSL stylesheets. bye |
|
| Posted: 19 Jan 2007 11:25 | |
|
Registered User Currently Offline |
Posts: 28 Join Date: Apr 2005 |
|
I'm sorry ingbl123, you were right. I added java SDK and JRE in path and Fop works for a short article with no tables or figures. However, I need eDE for large books.
I updated style sheets to 1.71.0 and updated classpath. Now I get error: No adjustColumnWidths function available Any ideas what's wrong and how to fix it, lads? |
|
| Posted: 20 Jan 2007 09:41 | |
|
Registered User Currently Offline |
Posts: 28 Join Date: Apr 2005 |
|
After 10 hours of debugging, I have successfully updated Fop and stylesheets. The new versions are:
- Fop 0.93 - Stylesheets 1.71.0 If you want to do the same, follow these instructions: 1. Update Fop as ingbl123 instructed. 2. In the command ingbl123 gave, replace userconfig.xml with fop.xconf if you want to make your own configurations 3. Update the style sheets in the same manner as you updated Fop 4. Update your classpath. If you use extension, enable them in style sheets with use.extensions = 1 and fop1.extensions = 1 and the other extenstions can also be 1. I have the following items in my classpath (no breaks on the line): C:\docbook\fop\lib\xalan-2.7.0.jar; C:\docbook\fop\lib\xml-apis-1.3.02.jar; C:\docbook\fop\lib\xercesImpl-2.7.1.jar; C:\docbook\xsl\extensions\xalan27.jar; C:\docbook\xsl\extensions\saxon65.jar; C:\docbook\xsl\extensions\xalan2.jar 5. If you use hyphenation, get fop-hyph.jar and copy it to the fop/lib directory 6. If you need more memory for java as I do, add -Xms768m -Xmx768m (use your own amount of memory here) after the "%JAVACMD%" command in fop.bat. 7. Run a test. If you get error messages, debug a while. I had problems with indexterms in chapter body. I moved them to sect1 sections and no problems, but it took two hours to hunt this problem down and kill the bastard. 8. If you encounter problems and fix them, let others know, too. |
|
| Posted: 20 Jan 2007 09:42 | |
|
Registered User Currently Offline |
Posts: 28 Join Date: Apr 2005 |
| Tables printed on several pages don't work with fop 0.93. They just overlap the first footer and disappear into space. Solutions? | |
| Posted: 20 Jan 2007 11:01 | |
|
Registered User Currently Offline |
Posts: 28 Join Date: Apr 2005 |
| I found the solution for the table problem (keep-together.within-column = auto). Has any of you tried to get orphan/widow control to work? | |