Commit Graph

62 Commits

Author SHA1 Message Date
Toshi MARUYAMA 19fc985daa pdf: add subtasks and related issues at issue pdf (#5634)
Contributed by Bernhard Furtmueller and Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7788 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-12 11:18:02 +00:00
Toshi MARUYAMA c57a0842d6 pdf: add ancestor issues at head of issue pdf (#5634)
Contributed by Bernhard Furtmueller and Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7787 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-12 11:17:35 +00:00
Toshi MARUYAMA c4d9c29de9 pdf: remove unused "require 'rfpdf/fpdf'" (#8312)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7785 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-12 11:16:26 +00:00
Toshi MARUYAMA 9334d29520 pdf: indent subject of subtask ticket in exported issues PDF (#8617)
Contributed by Hayato Ito.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7761 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-10 10:10:24 +00:00
Toshi MARUYAMA 1713432ab0 pdf: lib: add a method to export wiki (#401)
Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7740 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-06 10:48:28 +00:00
Toshi MARUYAMA aede35d226 PDF: support textilized changeset comments (revision log) on issue (#69).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6154 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-02 13:54:27 +00:00
Toshi MARUYAMA ebdd9c6326 PDF: add revision number/id of associated revisions on issue PDF (#8738).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6146 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-02 07:37:19 +00:00
Toshi MARUYAMA 47ec67532b PDF: support textilized journal notes on issue (#69).
Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6142 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-01 11:54:08 +00:00
Toshi MARUYAMA 139d401dc5 PDF: support textilized issue description on issue (#69).
Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6141 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-01 11:53:36 +00:00
Toshi MARUYAMA aa973f0af6 PDF: code clean up lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6138 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-01 07:49:37 +00:00
Toshi MARUYAMA 3a79ab7401 PDF: add new "RDMwriteHTMLCell" method for textilized PDF (#69).
Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6137 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-01 07:49:07 +00:00
Toshi MARUYAMA 130c20c69d PDF: use RDMMultiCell for drawing lines of issue description (#69).
Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6136 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-01 04:44:15 +00:00
Toshi MARUYAMA 2d011453aa PDF: add 'ln' parameter for drawing lines at RDMMultiCell() (#69).
Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6135 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-30 11:47:55 +00:00
Toshi MARUYAMA a6f1ae1f96 PDF: use DejaVuSans fonts in Vietnamese (#8566).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6035 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-10 00:31:35 +00:00
Toshi MARUYAMA b85092c702 PDF: replace all non ASCII characters to '?' if Iconv error raise in JRuby (#8569, #61).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6024 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-09 03:41:26 +00:00
Toshi MARUYAMA 6f6956e68c PDF: change Shift_JIS to SHIFT_JIS in lib/redmine/export/pdf.rb for Japanese ja.yml general_pdf_encoding (#8565, #61).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6012 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-08 14:39:56 +00:00
Toshi MARUYAMA 521461f5b8 PDF: add *SJIS* and *Shift_JIS* in lib/redmine/export/pdf.rb for Japanese ja.yml general_pdf_encoding (#8565, #61).
JRuby 1.6.2 (ruby-1.8.7-p330) does not support CP932.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6010 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-06-08 13:44:06 +00:00
Toshi MARUYAMA 0418774f50 PDF: more strict Redmine TCPDF class initialize() (#8312).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5723 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-10 01:03:28 +00:00
Toshi MARUYAMA b97087bad5 PDF: remove unused Redmine FPDF class (#8312).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5721 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-09 11:12:48 +00:00
Toshi MARUYAMA 29f6dd2a9e PDF: import CJK patches and all languages use TCPDF (#8312).
Contributed Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5720 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-09 11:12:27 +00:00
Toshi MARUYAMA 3b50809423 PDF: code clean up lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5719 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-09 10:52:08 +00:00
Toshi MARUYAMA 5742f78bd1 PDF: switch encoding and font whether CJK and Thainland non UTF-8 or not in TCPDF Redmine class (#8312).
Contributed Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5718 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-09 10:41:02 +00:00
Toshi MARUYAMA 48a6fb45a7 PDF: replace invalid UTF-8 sequences in TCPDF (#61, #8312).
There is no guarantees that database strings are valid UTF-8 in Ruby 1.8 MySQL and SQLite3.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5716 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-09 06:46:21 +00:00
Toshi MARUYAMA e25dd95389 PDF: replace invalid sequence in converting if encoding destination is UTF-8 (#61, #8312).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5715 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-09 06:45:40 +00:00
Toshi MARUYAMA 32a52a6540 PDF: move fix_text_encoding() logic to new method for common use in FPDF and TCPDF (#61, #8312).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5713 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-09 06:44:23 +00:00
Toshi MARUYAMA 479d9380a7 remove trailing white-spaces lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5663 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-06 10:40:12 +00:00
Toshi MARUYAMA 919bf61cae PDF: wrap title fields properly (#8295).
Contributed Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5651 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-05 05:34:16 +00:00
Toshi MARUYAMA 880e8e575a Wrap long text fields properly in PDF exports (#5629).
Contributed by Hugo Ferreira.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5604 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-30 00:29:22 +00:00
Toshi MARUYAMA c47144a14f PDF: use explicit return value in Redmine::Export::PDF.fix_text_encoding() (#61).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5598 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-29 11:53:24 +00:00
Toshi MARUYAMA f62605c636 PDF: fix 0x5c(backslash) escape processing in FPDF (#61).
Japanese CP932(Shift_JIS) and Traditional Chinese Big5 have 0x5c(backslash) problem.

Contributed Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5565 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-29 05:35:26 +00:00
Toshi MARUYAMA 3be326f0a4 PDF: switch FPDF ANSI or TCPDF UTF-8 with general_pdf_encoding value instead of language value such as 'ja' (#61).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5385 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-10 08:34:52 +00:00
Toshi MARUYAMA 85b891ec9e PDF: code clean up lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5384 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-10 08:34:31 +00:00
Toshi MARUYAMA ce6377b406 PDF: switch FPDF font with general_pdf_encoding value instead of language value such as 'ja' (#61).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5383 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-10 08:34:02 +00:00
Toshi MARUYAMA 2f2cdfd96a PDF: replace converting error characters instead of returning UTF-8 in FPDF ANSI on Ruby 1.8 (#61).
In Japan, UTF-8 characters in Shift_JIS(CP932) becomes garbling(MOJI-BAKE).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5351 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-06 10:50:01 +00:00
Toshi MARUYAMA d6e2e81f0c PDF: nil safe at fix_text_encoding(txt) of lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5345 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-06 05:52:07 +00:00
Toshi MARUYAMA a4bad14359 PDF: Ruby 1.9 compatibility of '0x5c'(backslash) handling in FPDF ANSI (#61, #117).
Japanese Shift_JIS and Traditional Chinese Big5 have '0x5c'(backslash) problem.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5343 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-06 05:38:31 +00:00
Toshi MARUYAMA 73a248530a PDF: fix \\(double backslashes) handling of FPDF ANSI (#61, #117).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5341 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-06 04:27:38 +00:00
Toshi MARUYAMA 91e4d7d298 code clean up lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5335 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-05 23:04:32 +00:00
Toshi MARUYAMA 3b20bd76a8 code clean up lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5308 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-04 05:01:42 +00:00
Toshi MARUYAMA d435195764 PDF: remove replacing non ASCII quotation marks (#61).
Languages except CJK and Thailand use TCPDF UTF-8.
TCPDF UTF-8 supports these quotation marks.

Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5306 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-04 01:10:31 +00:00
Toshi MARUYAMA 90ed078445 PDF: code clean up lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5296 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-03 02:47:06 +00:00
Toshi MARUYAMA 859e8ae828 PDF: set enable to use TCPDF UTF-8 on Windows except CJK and Thai (#61).
Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5291 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-02 08:01:47 +00:00
Toshi MARUYAMA 325af8d48c PDF: switch TCPDF UTF-8 or FPDF ANSI (#61).
If server is Windows or language is CJK or Thai, Redmine uses FPDF.
Else Redmine uses TCPDF.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5259 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-30 11:32:35 +00:00
Toshi MARUYAMA 988841d69a PDF: prepare switching TCPDF UTF-8 in non CJK or FPDF ANSI in CJK (#61).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5258 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-30 07:32:08 +00:00
Toshi MARUYAMA ad5dcaf179 PDF: add missing rfpdf requires (#61).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5248 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-30 03:26:01 +00:00
Jean-Philippe Lang 494cd8cc36 Avoid "private method `gsub' called for nil:NilClass" error when exporting issues with nil description (#7386).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4736 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-22 11:57:02 +00:00
Eric Davis 1809eefe4c Use the correct local variables in the PDF export. #6382
Contributed by Felix Schäfer

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4104 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-20 02:55:20 +00:00
Eric Davis bdb3937e0f Rewrite the Gantt chart. #6276
This version of the Gantt chart supports nested charts. So Projects,
Versions, and Issues will be nested underneath their parents correctly.

Additional features:

* Move all Gantt code to Redmine::Helpers::Gantt class instead of having it in
  the Gantt class, controller, and view
* Recursive and nest sub-projects
* Recursive and nest versions
* Recursive and nest issues
* Draw a line showing when a Project is active and it's progress
* Draw a line showing when a Version is active and it's progress
* Show a version's % complete
* Change the color of Projects, Versions, and Issues if they are late or
  behind schedule
* Added Project#start_date and #due_date
* Added Project#completed_percent
* Use a mini-gravatar on the Gantt chart
* Added tests for the Gantt rendering

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4072 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-10 03:09:02 +00:00
Jean-Philippe Lang bdad35a736 Display project names for versions too on PDF (#5904).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3884 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-07-25 11:19:44 +00:00
Jean-Philippe Lang cb5e63d846 Display project names in cross-project gantt PDF (#5904).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3883 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-07-25 11:10:08 +00:00