!!! %html{:lang => "fr", :style => "background:transparent !important;" } %head %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" } %body{:style => "background:transparent !important;"} %div{:style => "font-size:3em;position:absolute;top:10cm;width:90%;left:5%;text-align:center;color:rgba(0,0,0,0.2);transform: rotate(-18deg);font-weight:bold; "} -arguments = {:civilite => @file_tunel_download.civilite, :nom => @file_tunel_download.name, :prenom => @file_tunel_download.firstname} -s = @file_tunel.fili_text -arguments.each_pair do |key, value| -s = s.gsub(/\[#{key.to_s}\]/, value.to_s) =s.upcase