summaryrefslogtreecommitdiffstats
path: root/lib/plugins
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-09-30 10:16:16 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-09-30 10:16:16 +0000
commit38e8703ed48be1e3af8e2c13480a324696e43630 (patch)
tree0604094d8af9ba36938628c22effba53e45c96e7 /lib/plugins
parentd8ddb2cee412f7f0d6404253f055aedbd9b855ea (diff)
downloadredmine-38e8703ed48be1e3af8e2c13480a324696e43630.tar.gz
redmine-38e8703ed48be1e3af8e2c13480a324696e43630.zip
pdf: fix empty page attached when exporting (#13632)
Contributed by Jun NAITOH. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12189 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/rfpdf/lib/tcpdf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/rfpdf/lib/tcpdf.rb b/lib/plugins/rfpdf/lib/tcpdf.rb
index 22e1d2c25..d754eb891 100644
--- a/lib/plugins/rfpdf/lib/tcpdf.rb
+++ b/lib/plugins/rfpdf/lib/tcpdf.rb
@@ -2431,7 +2431,7 @@ class TCPDF
out('1 0 obj');
out('<</Type /Pages');
kids='/Kids [';
- 0.upto(nb) do |i|
+ 0.upto(nb - 1) do |i|
kids<<(3+2*i).to_s + ' 0 R ';
end
out(kids + ']');
@@ -3103,7 +3103,7 @@ class TCPDF
# is a stream object that contains the definition of the CMap
# (PDF Reference 1.3 chap. 5.9)
newobj();
- out('<</Length 383>>');
+ out('<</Length 345>>')
out('stream');
out('/CIDInit /ProcSet findresource begin');
out('12 dict begin');