- pdf = Book.objects.get(pk=book_id).wldocument().as_pdf(
- customizations=customizations,
- morefloats=settings.LIBRARIAN_PDF_MOREFLOATS,
- **kwargs)
+ wldoc = Book.objects.get(pk=book_id).wldocument()
+ pdf = wldoc.as_pdf(
+ customizations=customizations,
+ morefloats=settings.LIBRARIAN_PDF_MOREFLOATS,
+ ilustr_path=gallery_path(wldoc.book_info.url.slug),
+ **kwargs)