Displaying 1 result from an estimated 1 matches for "macromanencoding".
2006 Nov 04
0
UTF-8 String to PDF using PDF::Writer
...s listing. Pass a listing
object as the methods parameter. AJ
#
pdfOfListing = PDF::Writer.new # defaults to a US Letter,
portrait, PDF version 1.3 document. AJ
pdfOfListing.compressed
pdfOfListing.select_font(''Times-Roman'', {:encoding =>
''MacRomanEncoding''})
pdfOfListing.text(Iconv.conv("UTF-8", "MacRoman",
chapter.chapter_body), :font_size => 12, :justification => :left))
send_data(pdfOfListing.render, :filename =>
listing.title_of_work , :type => "application/pdf" )
end
Thanks
An...