Vote #73466
未完了Pluggable PDF export engine
0%
説明
Redmine could support multiple PDF export engines provided in form of redmine plugins.
Administrator could choose different PDF export engines for different projects or system-wide. The main alternative to the currently used PDF export is a wrapper around "wkhtmltopdf":http://code.google.com/p/wkhtmltopdf - "redmine_pdf_wiki":https://github.com/amartel/redmine_pdf_wiki plugin. wkthmltopdf is a PDF renderer that uses an internal qt webkit browser to display provided HTML and to save it to PDF so it looks exactly as the original HTML.
I recently fixed redmine_pdf_wiki to work with Redmine 2.x and to replace standard PDF export (monkey patched wiki_page_to_pdf). I noticed that RFPDF is a plugin and it is already carefully facaded with Redmine::Export::PDF. I think it is relatively easy to support an external PDF export plugin.
Current approach is to issue PDF instructions from a ruby code. It is lightweight and safe solution but when heavy and highly accurate PDFs are needed it could be better to use wkhtmltopdf. It is a native program with several major issues but I hope they will be fixed in future.
Please check an initial discussion with Terence Miller in "pull request":https://github.com/amartel/redmine_pdf_wiki/pull/11
journals
There are plugin which tried to work around this problem but are outdated or imcompatible.
Hower this a protypes of possible solution for this issue.
# "chili_pdf":https://github.com/tomkersten/chili_pdf is nowards imcompatible with redmine 2.x (worked for redmine 1.x) and uses "wkhtmltopdf":http://code.google.com/p/wkhtmltopdf/downloads/list and "wicked_pdf":https://github.com/mileszs/wicked_pdf an a "core patch":https://github.com/chiliproject/chiliproject/pull/62 to solve the problem, see also "chili issue":https://www.chiliproject.org/issues/488
--------------------------------------------------------------------------------
2. "redmine_pdf_wiki":https://github.com/amartel/redmine_pdf_wiki.git uses also "wkhtmltopdf":http://code.google.com/p/wkhtmltopdf/downloads/list and needs passenger web server as soution for a recursion que problem and therefore settings to add "PassengerUseGlobalQueue on"
--------------------------------------------------------------------------------
Now that "RFPDF is dead":http://www.ohloh.net/p/rfpdf and its author is using "Prawn":https://github.com/prawnpdf/prawn, it seems the logical way of fixing many issues with PDF export (such as #10681, #13781 and #8753) is to migrate to a better, alive PDF rendering engine, maybe Prawn.
This is a grave issue, because is some locales such as Persian (and probably Arabic and Hebrew) the exported PDF is totally garbage and of no use.
--------------------------------------------------------------------------------
rfpdf is maitaind by NAITOH Jun who is contributor of #61 etc.
https://github.com/naitoh/rfpdf
I want to define rfpdf gem in Gemfile and remove sources from Redmine.
--------------------------------------------------------------------------------
Any news/progress?
--------------------------------------------------------------------------------
I updated rfpdf base version to TCPDF 5.1.002 from 1.53.0.TC031.
h3. new feature
* RTL (Right-To-Left) languages support was added.
* HTML support improved.
Toshi MARUYAMA wrote:
> I want to define rfpdf gem in Gemfile and remove sources from Redmine.
I would like to create rfpdf gem at the end of next month, and to send the PDF patch of Redmine.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,8753,PDF export for Hebrew is reversed