]> source.dussan.org Git - redmine.git/commitdiff
PDF: fix the problem that TCPDF built-in font breaks in the Windows (#61).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 2 Apr 2011 08:01:29 +0000 (08:01 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 2 Apr 2011 08:01:29 +0000 (08:01 +0000)
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

vendor/plugins/rfpdf/lib/tcpdf.rb

index da7d556f7b906ba1d679bb623fb3dba4d3399e71..1e44430578e348a525785caaaf77b12d93a11cb2 100755 (executable)
@@ -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');