#76 closed enhancement (fixed)
Export of wiki-Pages to one PDF-Document
Reported by: | Owned by: | anybody | |
---|---|---|---|
Priority: | normal | Component: | Request-a-Hack |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.8 |
Description
It would be really nice to have an plugin, that collects all wiki pages and put them into a single PDF-ducument. I don't have an idea, how to handle the structure of the PDF-document. I need this feature to get a mobile version of the wiki pages, so that the people at a custumer can also use the informations stored in the wiki pages.
Attachments (0)
Change History (17)
comment:1 Changed 19 years ago by
comment:2 Changed 19 years ago by
But it would be also very nice to get a navigation inside of the PDF, which would be not so easy in one big HTML page, or?
comment:3 Changed 19 years ago by
Just saw a pointer to this on the Trac mailing list:
http://lists.edgewall.com/archive/trac/2005-April/002729.html
It's about 20 lines of python that should generate the 'one big HTML page'. I have not tried it out myself though
comment:4 Changed 19 years ago by
Actually that script only generates a single HTML page from a single Wiki page.
comment:5 Changed 19 years ago by
In fact this feature should allow to 'export' an arbitrary set of pages, not just all the wiki pages. And it should be able to take into account pseudo hierarchy of pages (wiki page name containing /).
comment:6 Changed 19 years ago by
Priority: | normal → high |
---|
Isn't there already a formatter available for (single page) PDF export? I've seen some sites use it - couldn't that formatter just be modified to output all the pages in a file?
see wwwcherrypy.org/wiki/ for a PDF formatter
comment:9 Changed 19 years ago by
Trac Release: | → 0.8 |
---|
See also trac-ticket:2296 (export to LaTeX + pdflatex = much nicer PDF)
comment:10 Changed 19 years ago by
The gumstix wiki allows for the creation of PDF's by providing a list of the wiki pages and allowing the user to pick and choose which should be included. Its one possible way to provide a UI to create PDF files.
http://www.gumstix.org/tikiwiki/tiki-config_pdf.php?page=Getting+Started
I think it might provide a reasonal initial UI. Thoughts?
comment:11 Changed 19 years ago by
Couldn't the XsltMacro be used for part of this?
Export the wikipage as an XML document and then apply an XSLT (XSL-FO) to create the PDF.
comment:12 Changed 18 years ago by
Priority: | high → normal |
---|---|
Severity: | blocker → normal |
Reset priority and severity
comment:14 follow-up: 15 Changed 18 years ago by
PageToPdfPlugin does the job for a single page. The real trick with exporting a set of pages will be how to select the pages, and how to combine them in a useful way.
A solution for the second problem would be to increment the header depth for all headers in all pages, add a level 1 header to each page with the page name, then concatenate them all and render, possibly adding a PageOutline
.
eg.
Two pages
FooBar:
= Foo is good =
BarFoo:
= Bar is good =
becomes:
[[PageOutline]] = FooBar = == Foo is good == = BarFoo = == Bar is good ==
comment:15 Changed 18 years ago by
Replying to athomas:
PageToPdfPlugin does the job for a single page. The real trick with exporting a set of pages will be how to select the pages, and how to combine them in a useful way.
A first version could just export a particular wiki tree, if it has been organized using the hierachical wiki feature (like exporting all pages mywiki/wiki/subtopic1/*)
comment:16 Changed 18 years ago by
I see this as a natural extension to TracNav - since TracNav requires you to identify a TOC page, that is the "master list" of pages that you want to be exported.
Different TOCs would give different renderings of the content.
comment:17 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
See the CombineWikiPlugin. It does this quite nicely.
It might be slightly simpler to just allow for collecting the Wiki into one big HTML page, and then from this the user could make it a PDF (or print it out, make tarballs, etc)