Tips: Redmine Wiki output PDF without link
3974 ワード
Redmine の Wiki を PDF 出力するときに Wikiリンクとマクロを無効化して出力したい。単体の PDF ではこれらは有効ではないため。
— ykws (@ykawashi7) November 16, 2016
Plugin を探そうかと思ったけど、 Bookmarket を利用して良い感じに出力している人がいて
http://hacknote.jp/archives/10621/
でも、リンクが有効のままだったので、少し改良して期待する出力結果が得られた。
redmine_wiki_output_pdf_without_link.js
javascript:(function(){$("#header").remove();$("#top-menu").remove();$(".contextual").remove();$(".breadcrumb").remove();$("#wiki_add_attachment").remove();$(".other-formats").remove();$("#footer").remove();$("#sidebar").remove();$(".attachments").remove();$("#content").width("100%");$(".wiki-anchor").remove();$("a").each(function(){child=this.childNodes;$(this).replaceWith(child);});})();
Author And Source
この問題について(Tips: Redmine Wiki output PDF without link), 我々は、より多くの情報をここで見つけました https://qiita.com/ykws/items/3b5d1fa20f471d303bed著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .