Conversation
AaronBenDaniel
left a comment
There was a problem hiding this comment.
Two things that would be fine if left alone, but I think they should be addressed.
Also, at some point, though not in this PR, #36 came back. This is because of the tags used in /src/api/src/create_book/generators/pdf/book.html.
|
This did not happen when I tested it on October 28, but I just built from |
This is not why it's downloading new packages. The |
Fixes #80
Metadata is embedded via HTML
<meta>tags, which Weasyprint parses natively.For an alternative method, the metadata can be viewed and edited through the
doc.metadataattr, doc is also also available duringHTML.write_pdf(through the finisher function parameter). Callingdoc.metadata.__dict__gives us,{ 'title': '...', 'authors': ['theonlywayup'], 'description': '', 'keywords': [], 'generator': '', 'created': None, 'modified': None, 'attachments': [], 'lang': None, 'custom': {'custom': 'metadata'} }The metadata is passed while rendering the HTML Template, so adding metadata tags is the most natural solution.