Merged r12189 from trunk to 2.3-stable (#13632)

pdf: fix empty page attached when exporting.

Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@12191 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-09-30 12:22:26 +00:00
parent 8a046027e5
commit 4deca5976e
1 changed files with 2 additions and 2 deletions

View File

@ -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');