X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/433a6bcf58599a09f881d48875746ec3cb18e400..926c8a3e09932478189cc103f4e02787ae66cc61:/librarian/pdf.py diff --git a/librarian/pdf.py b/librarian/pdf.py index 077a1e1..ace83af 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -235,6 +235,9 @@ def transform(wldoc, verbose=False, save_tex=None, morefloats=None, with open(os.path.join(temp, 'cover.png'), 'w') as f: c.save(f) + for img in document.edoc.findall('//ilustr'): + shutil.copy(img.get('src'), temp) + del document # no longer needed large object :) tex_path = os.path.join(temp, 'doc.tex')