X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/b737c3048224884ff24cf30a978d286a18f4cc65..04ea404d7cf94043dacf95ac1433d8b894b8cdfd:/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')