Displaying 1 result from an estimated 1 matches for "pdfoflisting".
2006 Nov 04
0
UTF-8 String to PDF using PDF::Writer
...ng="utf-8"?>).
The main problem seems to be smart quotes do not come across I get
strange symbols, everything else seems to work.
My latest attempt.
def create_pdf
# creates a PDF version of an authors 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", "M...