# File lib/htmldoc.rb, line 78
    def self.create(format = PDF, &block)
      pdf = HTMLDoc.new(format)
      if block_given?
        yield pdf
        pdf.generate
      end
    end