summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-02 08:01:29 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-02 08:01:29 +0000
commit2b899b73ada88a0726262a74b990e766dedba537 (patch)
tree207b41ba2abe154dc4e9fee35c64080dafea963c /vendor
parentbc5be82683c2ffea98edf45b5e72b9db5bf6bbc3 (diff)
downloadredmine-2b899b73ada88a0726262a74b990e766dedba537.tar.gz
redmine-2b899b73ada88a0726262a74b990e766dedba537.zip
PDF: fix the problem that TCPDF built-in font breaks in the Windows (#61).
This problem occurs because the EOF character string is included in the built-in font. Contributed by Jun NAITOH. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5290 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor')
-rwxr-xr-xvendor/plugins/rfpdf/lib/tcpdf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/plugins/rfpdf/lib/tcpdf.rb b/vendor/plugins/rfpdf/lib/tcpdf.rb
index da7d556f7..1e4443057 100755
--- a/vendor/plugins/rfpdf/lib/tcpdf.rb
+++ b/vendor/plugins/rfpdf/lib/tcpdf.rb
@@ -3063,7 +3063,7 @@ class TCPDF
out('/Filter /FlateDecode');
end
out('>>');
- open(ctgfile) do |f|
+ open(ctgfile, "rb") do |f|
putstream(f.read())
end
out('endobj');