[xwiki-users] exporting multiple XWiki pages (to PDF)
Hi All, We are looking to export a set of XWiki pages to a single document (PDF) According to http://jira.xwiki.org/browse/XWIKI-1289 an improvement request was created in 2007 to add a UI for exporting multiple pages as PDF. Anno 2014 this request is still 'Open'. We turned my attention to various extensions : * http://extensions.xwiki.org/xwiki/bin/view/Extension/Multipage+Export+Applic... * http://extensions.xwiki.org/xwiki/bin/view/Extension/MultipagePdfExport+Appl... * http://extensions.xwiki.org/xwiki/bin/view/Extension/PDF+Export+Collection+A... None of these extensions work with the XWiki version we've installed.(5.4.4) Does anybody have a tip for me how I can achieve the export in a somewhat elegant manner ? (Following works but is not practical considering the amount of pages to be exported: http://server/xwiki/bin/export/Space/Page?format=pdf&pages=Admin.Page_A&page......) Does anybody know whether "XWIKI-1289" will ever make it to XWiki''s roadmap? Thanks , Kristof
Hi Kristof, On 16 Jun 2014 at 16:41:09, De Wel, Kristof ([email protected](mailto:[email protected])) wrote:
Hi All, We are looking to export a set of XWiki pages to a single document (PDF) According to http://jira.xwiki.org/browse/XWIKI-1289 an improvement request was created in 2007 to add a UI for exporting multiple pages as PDF. Anno 2014 this request is still 'Open'. We turned my attention to various extensions :
* http://extensions.xwiki.org/xwiki/bin/view/Extension/Multipage+Export+Applic...
* http://extensions.xwiki.org/xwiki/bin/view/Extension/MultipagePdfExport+Appl...
* http://extensions.xwiki.org/xwiki/bin/view/Extension/PDF+Export+Collection+A... None of these extensions work with the XWiki version we've installed.(5.4.4)
Would be nice if you could report what doesn’t work, it’s probably not much to fix. It’s strange that a recent one such as http://extensions.xwiki.org/xwiki/bin/view/Extension/PDF+Export+Collection+A... doesn’t work.
Does anybody have a tip for me how I can achieve the export in a somewhat elegant manner ? (Following works but is not practical considering the amount of pages to be exported: http://server/xwiki/bin/export/Space/Page?format=pdf&pages=Admin.Page_A&pages=Admin.Page_B&pages=Admin.Page_C…) Does anybody know whether "XWIKI-1289" will ever make it to XWiki''s roadmap?
Yes it will. It’s been on the roadmap several times in the past already and because other stuff took precedence it’s not been implemented yet but it’s getting high on our todo list. Now my hunch is that it’s been postponed because there are alternatives (the 5-6 extensions that do this) so people are not blocked. If they don’t work their authors need to fix them but first you need to tell them what doesn’t work for you :) <aside> BTW, there’s a way to speed up implementing a feature, it’s by sponsoring some devs to work on that feature. The page at http://www.xwiki.org/xwiki/bin/view/Main/Support#HProfessionalSupport also shows a list of companies active in the development of the XWiki project and I’m sure you could contact them to sponsor the development of the multipage export for example, if that’s something important for you. </aside> Thanks -Vincent
Thanks , Kristof
Hi Vincent, Thanks for your reply. These are my findings testing a couple of PDF export extensions : *http://extensions.xwiki.org/xwiki/bin/view/Extension/Multipage+Export+Applic... I can access the UI of this extension I have a 'test' and 'hello world' page (with the word 'test' in their content), but for whatever scope I search, I never get a result. Therefore I can never select any page to export. *http://extensions.xwiki.org/xwiki/bin/view/Extension/MultipagePdfExport+Appl... - I can see the hierarchy of a Space - I can select a couple of pages - I can drag and drop pages to change the order - When I export the selected pages -- I get a PDF that only contains content from SPACE.WebHome the selected child pages are not in the PDF -- the TOC is empty. -- the footer states the user is 'unknown' e.g."Page 1 - last modified by Unknown User on 2014/06/18 05:28" *http://extensions.xwiki.org/xwiki/bin/view/Extension/PDF+Export+Collection+A... After I installed the PDF export collections extension through the extensions Manager, I could see a new space 'Collections'. When I open it, it seems the labels displayed on the webHome page are corrupted e.g. the "create" button reads "COLLECTIONS.HOME.CREATE.BUTTON" <http://xwiki.475771.n2.nabble.com/file/n7591093/Screenshot-2014-06-18_12.png> Nevertheless I could go ahead and create a Collection When I export the collection to PDF : - The cover sheet doesn't reflect the user( "unknown User") - The TOC is empty - The only content in the PDF is and error -- The error states somewhere that "Full form statements requires programming right" . However, I generated the report as user "Admin" who is in a group 'XWikiAdminGroup' that has programming rights set -- I also tested setting the programming rights directly on user 'Admin'. The same error is reported. Error message: Failed to execute the [velocity] macro org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [#set($query = "select doc.fullName, doc.name from XWikiDocument as doc, BaseObject as obj where doc.fullName = obj.name and obj.className = 'XWiki.PDFClass'") #set($results = $services.query.hql($query).execute()) {{html}} <form action="" class="xform" method="get" name="form_export"> <dl> <dt> <label for="pdftemplate">$msg.get('Collections.exportPage.templateSelectorLabel')</label> </dt> <dd> <select id="pdftemplate" name="pdftemplate"> <option value="">$msg.get('Collections.exportPage.notemplate')</option> #foreach($result in $results) <option value="$result[0]">$result[1]</option> #end </select> </dd> <dt> <label for="exportName">$msg.get('Collections.exportPage.exportLabel')</label> </dt> <dd> <input id="exportName" name="exportName" type="text" size="60" value=""/> </dd> <dt> </dt> <dd> <input type="checkbox" name="recto" value="true">$msg.get('Collections.exportPage.recto')</input> </dd> <dt> </dt> <dd> <input type="checkbox" name="pdfcover" checked="checked" value="1">$msg.get('Collections.exportPage.cover')</input> <input type="hidden" name="pdfcover" value="0" /> </dd> <dt> <dd> <input type="checkbox" name="pdftoc" checked="checked" value="1">$msg.get('Collections.exportPage.toc')</input> <input type="hidden" name="pdftoc" value="0" /> </dd> </dt> </dl> <input type="hidden" name="exportListDoc" value="$request.exportListDoc" /> <p> <input class="button" type="submit" value="$msg.get('Collections.exportPage.export')"/> <input class="button cancelButton" type="reset" value="$msg.get('Collections.exportPage.cancel')"/> </p> </form> {{/html}} #if("$!request.exportName"!="") #set($exportName = $request.exportName) #if("$!request.recto"=="true") #set($recto = true) #else #set($recto = false) #end #set($exportListDoc = $xwiki.getDocument("$request.exportListDoc")) #set($listObj = $exportListDoc.getObject('Collections.StaticCollectionClass')) #set($exportList = $listObj.getProperty('pages').value) #set($docsToExport = []) #foreach($item in $exportList) #set($discard = $docsToExport.add("$item")) #end #set($url = $services.pdfexporter.export("$exportName",$docsToExport, $recto)) #end] at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131) at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50) at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:302) at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:198) at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:59) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:191) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:132)Collections - TEST Page 4 - last modified by Unknown User on 2014/06/18 05:38 at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:87) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:252) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:125) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:55) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38) at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113) at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:997) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:976) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1007) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:619) at sun.reflect.GeneratedMethodAccessor318.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105) at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluate(DefaultPrivilegedTemplateRenderer.java:125) at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluateTemplate(DefaultPrivilegedTemplateRenderer.java:75) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1687) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1627) at org.xwiki.pdf.multipageexport.internal.XslFopPdfExporter.export(XslFopPdfExporter.java:271) at org.xwiki.pdf.multipageexport.internal.XslFopPdfExporter.export(XslFopPdfExporter.java:159) at org.xwiki.pdf.multipageexport.internal.MultipagePdfExporterService.export(MultipagePdfExporterService.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124) at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50) at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:302) at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:198) at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:59) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:191) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:132) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:87) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:252) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:125) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:55) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38) at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113) at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:997) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:976) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1007) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:619) at sun.reflect.GeneratedMethodAccessor318.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)Collections - TEST Page 5 - last modified by Unknown User on 2014/06/18 05:38 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105) at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluate(DefaultPrivilegedTemplateRenderer.java:125) at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluateTemplate(DefaultPrivilegedTemplateRenderer.java:75) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1687) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1627) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:918) at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105) at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluate(DefaultPrivilegedTemplateRenderer.java:125) at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluateTemplate(DefaultPrivilegedTemplateRenderer.java:75) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1687) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:167) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:304) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)Collections - TEST Page 6 - last modified by Unknown User on 2014/06/18 05:38 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [xwiki:Collections.ExportColection] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:247) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124) ... 166 more Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'execute' in class org.xwiki.query.internal.ScriptQuery threw exception org.xwiki.query.QueryException: Full form statements requires programming right. Query statement = [select doc.fullName, doc.name from XWikiDocument as doc, BaseObject as obj where doc.fullName = obj.name and obj.className = 'XWiki.PDFClass'] at xwiki:Collections.ExportColection[line 2, column 45] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) ... 168 more Caused by: org.xwiki.query.QueryException: Full form statements requires programming right. Query statement = [select doc.fullName, doc.name from XWikiDocument as doc, BaseObject as obj where doc.fullName = obj.name and obj.className = 'XWiki.PDFClass'] at org.xwiki.query.internal.SecureQueryExecutorManager.execute(SecureQueryExecutorManager.java:88) at org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:248) at org.xwiki.query.internal.ScriptQuery.execute(ScriptQuery.java:236) at sun.reflect.GeneratedMethodAccessor293.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) ... 174 more vmassol wrote
Hi Kristof, <aside> BTW, there’s a way to speed up implementing a feature, it’s by sponsoring some devs to work on that feature. The page at http://www.xwiki.org/xwiki/bin/view/Main/Support#HProfessionalSupport also shows a list of companies active in the development of the XWiki project and I’m sure you could contact them to sponsor the development of the multipage export for example, if that’s something important for you. </aside>
We are currently still evaluating XWiki to see how well it meets our requirements We'll consider the possibility of sponsored development in our analysis. Cheers, Kristof -- View this message in context: http://xwiki.475771.n2.nabble.com/exporting-multiple-XWiki-pages-to-PDF-tp75... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
De Wel, Kristof -
Kristof -
vincent@massol.net