- html.transform(input_filename, output_filename, parse_dublincore=options.parse_dublincore, flags=('full-page',))
+ doc = WLDocument.from_file(input_filename,
+ parse_dublincore=options.parse_dublincore)
+ flags = ('full-page',) if options.full_page else None
+ html = doc.as_html(flags=flags)
+ doc.save_output_file(html, output_path=output_filename)