Re: [xwiki-users] Export (Pictures, 1.8RC2)
Sergiu Dumitriu wrote: hel-o wrote: Hi, and export again. Tried to export a page with to pics included (one attached to the page, one attached to another page) and got an error both for pdf and for rtf export. 16:37:21,446 [http://semantic-web.hel.at/xwiki/bin/export/Da/KMKnowledgeDiw?format=rtf] [http-8180-Processor24] WARN web.XWikiAction - Uncaught exception: Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF Wrapped Exception: org.apache.fop.fo.ValidationException: null:44:232: Error(44/232): fo:external-graphic, Invalid property name 'display'. As the error says, there's a CSS property that says display: block; on the image, and the FOP engine doesn't like it. A quick solution is to edit the document and remove this rule. Did you manually add the display property, or was it added by the WYSIWYG editor? I'm working on fixing it, I'll keep you posted on the progress. This was fixed, see http://jira.xwiki.org/jira/browse/XWIKI-3332 -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Export (Pictures, 1.8RC2)
Hi, Marius Dumitru Florea wrote: hel-o wrote: See http://www.w3.org/Style/Examples/007/center#block IMO FOP has an issue if it cannot render images with display block. Adding a semantic-less div wrapper with text-align:center and leaving the image in-line just for FOP doesn't seem right, especially since it can generate some complications for the WYSIWYG (like deleting the image and leaving the wrapper as garbage, placing the caret inside the wrapper, etc.). May be right, but fact is rtf/pdf export with centered graphics worked in syntax 1.0 and does not work in syntax 2.0. And it does not look good if you get an error on export. Marius Dumitru Florea wrote: See http://www.w3schools.com/css/pr_class_float.asp By aligning the image on the left you let the text float on the right, and the other way around. In the old WYSIWYG editor (syntax 1.0) you had left and float left for horizontal alignment. I now what float left is standing for but IMO when i align a graphic left i do not expect a float left but a left alignment. hel. - hel. h...@hel.at -- View this message in context: http://n2.nabble.com/Export-%28Pictures%2C-1.8RC2%29-tp2455946p2460167.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Export (Pictures, 1.8RC2)
Hi, and export again. Tried to export a page with to pics included (one attached to the page, one attached to another page) and got an error both for pdf and for rtf export. 16:37:21,446 [http://semantic-web.hel.at/xwiki/bin/export/Da/KMKnowledgeDiw?format=rtf] [http-8180-Processor24] WARN web.XWikiAction - Uncaught exception: Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF Wrapped Exception: org.apache.fop.fo.ValidationException: null:44:232: Error(44/232): fo:external-graphic, Invalid property name 'display'. com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF Wrapped Exception: org.apache.fop.fo.ValidationException: null:44:232: Error(44/232): fo:external-graphic, Invalid property name 'display'. at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:64) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:216) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Wrapped Exception: com.xpn.xwiki.XWikiException: Error number 12002 in 12: Exception while exporting PDF Wrapped Exception: org.apache.fop.fo.ValidationException: null:44:232: Error(44/232): fo:external-graphic, Invalid property name 'display'. at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXMLFO(PdfExportImpl.java:222) at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:165) at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:229) at
Re: [xwiki-users] Export (Pictures, 1.8RC2)
hel-o wrote: Hi, and export again. Tried to export a page with to pics included (one attached to the page, one attached to another page) and got an error both for pdf and for rtf export. 16:37:21,446 [http://semantic-web.hel.at/xwiki/bin/export/Da/KMKnowledgeDiw?format=rtf] [http-8180-Processor24] WARN web.XWikiAction - Uncaught exception: Error number 11015 in 11: Exception while exporting Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF Wrapped Exception: org.apache.fop.fo.ValidationException: null:44:232: Error(44/232): fo:external-graphic, Invalid property name 'display'. As the error says, there's a CSS property that says display: block; on the image, and the FOP engine doesn't like it. A quick solution is to edit the document and remove this rule. Did you manually add the display property, or was it added by the WYSIWYG editor? I'm working on fixing it, I'll keep you posted on the progress. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Export (Pictures, 1.8RC2)
Hi, Sergiu Dumitriu-2 wrote: hel-o wrote: Did you manually add the display property, or was it added by the WYSIWYG editor? Added it with the new WYSIWYG. (Alignment: Horizontal: Centered) Also found that (Alignment: Horizontal: Left) creates an float: left at the moment. Don't now it thats how it should be. hel. - hel. h...@hel.at -- View this message in context: http://n2.nabble.com/Export-%28Pictures%2C-1.8RC2%29-tp2455946p2456193.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Export (Pictures, 1.8RC2)
hel-o wrote: Hi, Sergiu Dumitriu-2 wrote: hel-o wrote: Did you manually add the display property, or was it added by the WYSIWYG editor? Added it with the new WYSIWYG. (Alignment: Horizontal: Centered) See http://www.w3.org/Style/Examples/007/center#block IMO FOP has an issue if it cannot render images with display block. Adding a semantic-less div wrapper with text-align:center and leaving the image in-line just for FOP doesn't seem right, especially since it can generate some complications for the WYSIWYG (like deleting the image and leaving the wrapper as garbage, placing the caret inside the wrapper, etc.). Also found that (Alignment: Horizontal: Left) creates an float: left at the moment. Don't now it thats how it should be. See http://www.w3schools.com/css/pr_class_float.asp By aligning the image on the left you let the text float on the right, and the other way around. Thanks, Marius hel. - hel. h...@hel.at ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Export (Pictures, 1.8RC2)
Marius Dumitru Florea wrote: hel-o wrote: Hi, Sergiu Dumitriu-2 wrote: hel-o wrote: Did you manually add the display property, or was it added by the WYSIWYG editor? Added it with the new WYSIWYG. (Alignment: Horizontal: Centered) See http://www.w3.org/Style/Examples/007/center#block IMO FOP has an issue if it cannot render images with display block. Adding a semantic-less div wrapper with text-align:center and leaving the image in-line just for FOP doesn't seem right, especially since it can generate some complications for the WYSIWYG (like deleting the image and leaving the wrapper as garbage, placing the caret inside the wrapper, etc.). No, the problem is that the xslt that transforms xhtml to xsl-fo is not so good. But yes, unfortunately there's no equivalent to the display property, so I had to manually wrap the fo:external-graphic element with a fo:block. Also found that (Alignment: Horizontal: Left) creates an float: left at the moment. Don't now it thats how it should be. See http://www.w3schools.com/css/pr_class_float.asp By aligning the image on the left you let the text float on the right, and the other way around. Fortunately float is also available in xsl-fo. There's no problem here. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users