Method: PDF#gen_html_from_page_texts

Defined in:
lib/pdf.rb

#gen_html_from_page_texts(page_texts, illustrations, options = {}) ⇒ Object



126
127
128
129
130
131
132
133
# File 'lib/pdf.rb', line 126

def gen_html_from_page_texts(page_texts,illustrations,options={})
  page_htmls = []
  page_texts.each_with_index do |page_text,index|
    page_illustrations = extract_page_illustrations(illustrations,index)
    page_htmls << gen_html_from_page_text(page_text,page_illustrations,options.merge(:index=>index))
  end
  page_htmls.join("")
end