Generate PDF out of multiple wiki pages
Hi all, i'm very interested in xwiki and up to now i'm very satisfied with its features. I just got one problem. I've got a wiki page with multiple subpages (children) and i want to generate a PDF which contains the wiki page with all its subpages. I couldn't find any option which enables me doing that. So i want to know if there is any posibility doing that. Thanks in advance Christoph -- "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
Hi Christoph, On Mar 8, 2007, at 6:07 PM, Christoph Dittmann wrote:
Hi all,
i'm very interested in xwiki and up to now i'm very satisfied with its features.
I just got one problem. I've got a wiki page with multiple subpages (children) and i want to generate a PDF which contains the wiki page with all its subpages. I couldn't find any option which enables me doing that. So i want to know if there is any posibility doing that.
I asked this exact question a few months ago and the answer was that had contributed this very nice extension: http://old.xwiki.org/xwiki/ bin/view/Dev/AggregateDocs However when I tried it didn't work. Thus someone needs to look into this, make it work again and it would be nice actually if it could be packaged either as a XAR application or even better as a Java plugin. If anyone is interested in helping out on this let us know. This is a very very useful feature and the idea of having a separate page where you define the PDF content is excellent and completely in line with the concept of Wiki. Thanks -Vincent
One easy way to handle this is to create a page which includes the childrens using #includeTopic("pagename") You could add the following script at the end of your parent page #if($context.action=="pdf") #set($sql = "where doc.parent='$doc.fullName'") #foreach($item in $xwiki.searchDocuments($sql)) #includeTopic($item) #end #end Ludovic Christoph Dittmann a écrit :
Hi all,
i'm very interested in xwiki and up to now i'm very satisfied with its features.
I just got one problem. I've got a wiki page with multiple subpages (children) and i want to generate a PDF which contains the wiki page with all its subpages. I couldn't find any option which enables me doing that. So i want to know if there is any posibility doing that.
Thanks in advance Christoph
------------------------------------------------------------------------
-- You receive this message as a subscriber of the xwiki-dev@objectweb.org mailing list. To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost AIM: nvludo Yahoo: ludovic
On 3/14/07, Ludovic Dubost <ludovic@xwiki.com> wrote:
One easy way to handle this is to create a page which includes the childrens using #includeTopic("pagename")
You could add the following script at the end of your parent page
#if($context.action=="pdf") #set($sql = "where doc.parent='$doc.fullName'") #foreach($item in $xwiki.searchDocuments($sql)) #includeTopic($item) #end #end
Ludovic
Nice. You could put this on xwiki.org FAQs list. -- http://purl.org/net/sergiu
On Mar 14, 2007, at 12:27 AM, Sergiu Dumitriu wrote:
On 3/14/07, Ludovic Dubost <ludovic@xwiki.com> wrote:
One easy way to handle this is to create a page which includes the childrens using #includeTopic("pagename")
You could add the following script at the end of your parent page
#if($context.action=="pdf") #set($sql = "where doc.parent='$doc.fullName'") #foreach($item in $xwiki.searchDocuments($sql)) #includeTopic($item) #end #end
Ludovic
Nice. You could put this on xwiki.org FAQs list.
I would also put this in the Code snippet zone. -Vincent
On Mar 14, 2007, at 8:16 AM, Vincent Massol wrote:
On Mar 14, 2007, at 12:27 AM, Sergiu Dumitriu wrote:
On 3/14/07, Ludovic Dubost <ludovic@xwiki.com> wrote:
One easy way to handle this is to create a page which includes the childrens using #includeTopic("pagename")
You could add the following script at the end of your parent page
#if($context.action=="pdf") #set($sql = "where doc.parent='$doc.fullName'") #foreach($item in $xwiki.searchDocuments($sql)) #includeTopic($item) #end #end
Ludovic
Nice. You could put this on xwiki.org FAQs list.
I would also put this in the Code snippet zone.
I wanted to put it in the code zone and I've tried it. The result isn't pretty as all pages are included at the bottom and thus there's no page break. A better approach is to use http://old.xwiki.org/xwiki/bin/view/Dev/ AggregateDocs This used to work but is now broken somehiw. This is really the best approach. If someone could fix that would be just great and we could put it as a XAR application on xwiki.org Thanks -Vincent
FWIW I've documented this on http://www.xwiki.org/xwiki/bin/view/Code/ GeneratePdfForChildrenPages -Vincent On Mar 14, 2007, at 9:40 AM, Vincent Massol wrote:
On Mar 14, 2007, at 8:16 AM, Vincent Massol wrote:
On Mar 14, 2007, at 12:27 AM, Sergiu Dumitriu wrote:
On 3/14/07, Ludovic Dubost <ludovic@xwiki.com> wrote:
One easy way to handle this is to create a page which includes the childrens using #includeTopic("pagename")
You could add the following script at the end of your parent page
#if($context.action=="pdf") #set($sql = "where doc.parent='$doc.fullName'") #foreach($item in $xwiki.searchDocuments($sql)) #includeTopic($item) #end #end
Ludovic
Nice. You could put this on xwiki.org FAQs list.
I would also put this in the Code snippet zone.
I wanted to put it in the code zone and I've tried it. The result isn't pretty as all pages are included at the bottom and thus there's no page break.
A better approach is to use http://old.xwiki.org/xwiki/bin/view/Dev/ AggregateDocs
This used to work but is now broken somehiw. This is really the best approach. If someone could fix that would be just great and we could put it as a XAR application on xwiki.org
Thanks -Vincent
participants (4)
-
Christoph Dittmann -
Ludovic Dubost -
Sergiu Dumitriu -
Vincent Massol