X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/262c7082c23ab266254175438d1524470996c4d2..433a6bcf58599a09f881d48875746ec3cb18e400:/librarian/pdf.py diff --git a/librarian/pdf.py b/librarian/pdf.py index bcf8d9a..077a1e1 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -180,14 +180,15 @@ def transform(wldoc, verbose=False, save_tex=None, morefloats=None, verbose: prints all output from LaTeX save_tex: path to save the intermediary LaTeX file to morefloats (old/new/none): force specific morefloats - cover: a cover.Cover object - flags: less-advertising, + cover: a cover.Cover object or True for default + flags: less-advertising, not-wl, images customizations: user requested customizations regarding various formatting parameters (passed to wl LaTeX class) """ + # TODO: images # Parse XSLT try: - document = load_including_children(wldoc) + document = load_including_children(wldoc) if cover: if cover is True: @@ -249,6 +250,10 @@ def transform(wldoc, verbose=False, save_tex=None, morefloats=None, shutil.copy(get_resource('pdf/wl.cls'), temp) shutil.copy(get_resource('res/wl-logo.png'), temp) + # FIXME: temporary + shutil.copy(get_resource('res/ofop-logo.png'), temp) + shutil.copy(get_resource('res/logo-fio.jpg'), temp) + cwd = os.getcwd() os.chdir(temp)