Class: Markout::Pdf

Inherits:
Formatter show all
Defined in:
lib/markout/formatters/pdf/pdf.rb

Instance Method Summary collapse

Methods inherited from Formatter

#filename, #initialize

Constructor Details

This class inherits a constructor from Markout::Formatter

Instance Method Details

#exportObject



11
12
13
14
15
16
17
18
# File 'lib/markout/formatters/pdf/pdf.rb', line 11

def export
  `cat "#{tempfile.path}" | /opt/local/bin/htmldoc -t pdf \
      --bodyfont "Helvetica" --headfootfont "Helvetica" \
      --no-compression --color --embedfonts \
      --header "" --footer .1. --links --no-title \
      --toctitle "" --tocheader "..." --tocfooter "..." \
      -`
end