lib/isodoc/mpfd/pdf_convert.rb in metanorma-mpfd-0.1.5 vs lib/isodoc/mpfd/pdf_convert.rb in metanorma-mpfd-0.1.6

- old
+ new

@@ -8,13 +8,17 @@ # document schema encapsulation of the document for validation class PdfConvert < IsoDoc::PdfConvert def initialize(options) @libdir = File.dirname(__FILE__) super + end + + def convert1(docxml, filename, dir) FileUtils.cp html_doc_path("logo.jpg"), "logo.jpg" FileUtils.cp html_doc_path('mpfa-logo-no-text@4x.png'), "mpfa-logo-no-text@4x.png" @files_to_delete << "logo.jpg" @files_to_delete << "mpfa-logo-no-text@4x.png" + super end def default_fonts(options) { bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Titillium Web",sans-serif'),