Feature #401

Add pdf export for WIKI page

Added by Huang Hai about 7 years ago. Updated almost 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Toshi MARUYAMA% Done:

100%

Category:Wiki
Target version:1.3.0
Resolution:

Description

Add pdf export for WIKI page.

User can click a "pdf" link in wiki page to export content as pdf file.

wiki_pdf_export_app.patch Magnifier (1.54 KB) Jun NAITOH, 2011-10-30 02:35

wiki_pdf_export_lib.patch Magnifier (1.52 KB) Jun NAITOH, 2011-10-30 02:35

TestPage.pdf (472 KB) Jun NAITOH, 2011-10-30 02:35


Related issues

Related to Feature #3463: Export all wiki pages to PDF Closed 2009-06-08
Related to Feature #3261: support attachment images in PDF export Closed 2009-04-29
Related to Defect #9533: Redmine Wiki Gchart LaTeX-style Formula plugin and PDF ex... New 2011-11-06
Duplicated by Defect #1468: Adding PDF Export to wiki Closed 2008-06-16
Duplicated by Feature #1786: Also available in: PDF for Wiki-Pages Closed 2008-08-13

Associated revisions

Revision 7739
Added by Toshi MARUYAMA almost 3 years ago

test: functional: wiki: add tests to show html and txt (#401)

Revision 7740
Added by Toshi MARUYAMA almost 3 years ago

pdf: lib: add a method to export wiki (#401)

Contributed by Jun NAITOH.

Revision 7741
Added by Toshi MARUYAMA almost 3 years ago

pdf: add a new feature to export wiki pdf (#401)

Contributed by Jun NAITOH.

Revision 7742
Added by Toshi MARUYAMA almost 3 years ago

test: functional: wiki: add tests to show pdf (#401)

History

#1 Updated by Toni Kerschbaum about 6 years ago

+1

Is there nay possibility that this feature will be integrated into 0.8?

#2 Updated by Damien Couderc over 5 years ago

+ 1000 !

This IS a must have to create documentations in the wiki sub system and then being able to produce paper versions of those.

#3 Updated by Damien Couderc over 5 years ago

Would it be possible to get that for 0.8.2 ?

#4 Updated by Anton Dollmaier over 5 years ago

+1 for me too

PDF-export would be really nice to have, no need for local pdf printers anymore.

#5 Updated by Adam Kubica over 5 years ago

+1

This is important feature.

#6 Updated by Kiall Mac Innes over 5 years ago

+1

I would also love to see this added.

#7 Updated by Oskar Nordquist over 5 years ago

+1

#8 Updated by John Cole over 5 years ago

+1

#9 Updated by Tim Sjöstrand over 5 years ago

+1

#10 Updated by Cristi Harjoi over 5 years ago

+1

#11 Updated by Michael Aye over 5 years ago

+1

#12 Updated by Olafur Gislason over 5 years ago

+1

Just found this page
http://blog.adsdevshop.com/2007/11/20/easy-pdf-generation-with-ruby-rails-and-htmldoc/
could be helpful to implement this feature into Redmine.

#13 Updated by Andrew Chaika over 5 years ago

Olafur Gislason wrote:

http://blog.adsdevshop.com/2007/11/20/easy-pdf-generation-with-ruby-rails-and-htmldoc/

I have implemented for myself pdf generation with Prince XML, it works well, but it's not free for non personal use.

#14 Updated by Damien Couderc over 5 years ago

I've been thinking a bit on this problem and the "textile to html to pdf solution" is not the cleanest IMHO.
In fact, a direct textile to pdf renderer would be better but it's not an easy task (and should maybe developed outside of the Redmine project).

If only i'd have more spare time to do it :/

#15 Updated by Stewart MacArthur over 5 years ago

+1 This would be a really useful feature

#16 Updated by Colan Schwartz over 5 years ago

+1

#17 Updated by Thomas Capricelli almost 5 years ago

Mediawiki provides this feature through a plugin, and i use it a lot.
I'd love to have this with redmine too :-)

#18 Updated by Enderson Maia almost 5 years ago

#3463 is related to this one.

Maybe this could help - http://github.com/mbleigh/princely

#19 Updated by Felix Schäfer almost 5 years ago

I was under the impression that redcloth supports exporting textile to LaTeX (although I couldn't find since what version). Not sure how much "other" stuff you'd need to get the LaTeX to pdf (I do have LaTeX installed on my machines, not sure how much of a dependency you would want to make that), but that might be a possible solution too.

#20 Updated by Gabriel Lemarie over 4 years ago

Hi All, I'd love this one. By now, I have to export to HTML and merge the files before converting in PDF...

#21 Updated by K Digidi over 4 years ago

+1

#22 Updated by Thomas Wacker over 4 years ago

+1

#23 Updated by Eric Voisard over 4 years ago

+1

#24 Updated by Jason Eacott about 4 years ago

why not skip the html part, and instead go textile to xml, that would seem simple enough, then use xsl-fo to generate pdf?

#25 Updated by Dylan Yee about 4 years ago

Hope to have this feature, +1~!

#26 Updated by Terence Mill about 4 years ago

+1

#27 Updated by Hervé Ménager about 4 years ago

+1

#28 Updated by Bertrand Néron about 4 years ago

+1

#29 Updated by Terence Mill about 4 years ago

You could maybe make use of Apache FOP

#30 Updated by Guilhem Lettron about 4 years ago

+1
Have form for issue export in PDF is great.

#31 Updated by Werner Marcus about 4 years ago

+1

#32 Updated by Adam Kubica about 4 years ago

+1

#33 Updated by Marton Danoczy about 4 years ago

+1

#34 Updated by Colan Schwartz almost 4 years ago

Issues can already be exported to PDF, so there's already code in Redmine that can do this. Can't we just reuse the same code for wiki pages?

#35 Updated by Arnaud Martel almost 4 years ago

Colan,

Unfortunately not!!! Issue's pdf export is made with a complete rewrite of the issue using pdf functions... In my opinion, using wkhtmltopdf, as I did for wiki pages, offers a better result (at least for inline images...) even if I perfectly know that is not perfect (call an external application is never the better solution if you want scalability and cross-platform support).

#36 Updated by Eugene Seliverstov almost 4 years ago

It will be good even if redmine will export wiki to docbook. Docbook generation is not platform dependent and easier unlike pdf generation (mentioned wkhtmltopdf can't work on *bsd). For example MoinMoin has DocBook export.

#37 Updated by Ian DeFazio almost 4 years ago

+1

#38 Updated by Quirin Lohr over 3 years ago

+1

#39 Updated by Christian Mayr over 3 years ago

  • Status changed from New to Resolved

Solved by the wonderful DocPu-Plugin:
http://www.redmine.org/plugins/redmine_doc_pu

#40 Updated by Thomas Capricelli over 3 years ago

Hey, i dont agree. This plugin is probably very cool, but it's not what this ticket is about. As said in the description

User can click a "pdf" link in wiki page to export content as pdf file.

It's about automatic generation from wiki to pdf.

The plugin is about document publishing, you need the admin of the site to explicitely publish each and every page. Also.. using latex for this seems overkill.

Unfortunately, i'm not allowed to re-open this bug :-(

#41 Updated by Joshua Villagomez over 3 years ago

I agree with Thomas, ideally, a link option for every wiki would be a great feature to have. This gives user ability to export to PDF on the fly. We can't have all users be admins using DocPu. There must be a simpler method.

#42 Updated by Etienne Massip over 3 years ago

  • Status changed from Resolved to New

#43 Updated by Terence Mill over 3 years ago

Hey guys, "Arnauds first steps" http://www.redmine.org/issues/3463#note-35 looks very promising. Can the plugin use a hooks for new pdl link in wiki side, better than patching views? Needs some test, also- someone gave it a test?

#44 Updated by Terence Mill over 3 years ago

Looks as the knowledgebase plugin already ships wiki kind export. Maybe functional migration is possible here

#45 Updated by Toshi MARUYAMA over 3 years ago

  • Category set to Wiki

#46 Updated by Josh Davidson about 3 years ago

+1

#48 Updated by Jenny Hanes about 3 years ago

It will be good even if redmine will export wiki to docbook. Docbook generation is not platform dependent and easier unlike pdf generation (mentioned wkhtmltopdf can't work on *bsd). http://www.mainbrick.com/shop/product/pflasterfugenmoertel/pflasterfugenmoertel-wassertolerant-und-allwettertauglich.html For example MoinMoin has DocBook export.

#49 Updated by Matthias Lohr about 3 years ago

+1

#50 Updated by Jun NAITOH almost 3 years ago

I wrote PDF export patch for Wiki Page.
This patch need to http://www.redmine.org/issues/3261#note-15 patch.

I tested on Cent OS 6 and Windows XP and JRuby 1.6.2(CentOS 6.0).
If you need include images, you have to install RMagick.

#51 Updated by Toshi MARUYAMA almost 3 years ago

  • Status changed from New to 7
  • Assignee set to Toshi MARUYAMA
  • Target version set to 1.3.0

#52 Updated by Toshi MARUYAMA almost 3 years ago

  • % Done changed from 0 to 100

I committed this feature from r7739 to r7742.
I posted a new patch at http://www.redmine.org/issues/3261#note-16

#53 Updated by Jun NAITOH almost 3 years ago

Thank you!!!

#54 Updated by Terence Mill almost 3 years ago

Yuhu!

#55 Updated by Jean-Philippe Lang almost 3 years ago

  • Status changed from 7 to Closed

Also available in: Atom PDF