Store book metadata and nb of pages in new settings

They may already be available (with other statistics stuff) under
the 'stats' key, but not if Statistics plugin is disabled. As this
plugin may be migrated to SQLite, readerui and readerfooter will now
set two new properties: doc_props (containing all and only the metadata
returned by document:getDocumentProps()) and doc_pages (updated
by readerfooter on any display or font change).

PDF document: returns additional PDF properties: Keywords
and Subject (as Description).
This commit is contained in:
poire-z
2017-07-01 11:41:27 +02:00
committed by Frans de Jonge
parent e6612ec728
commit 64f699ba36
3 changed files with 13 additions and 0 deletions

View File

@@ -174,6 +174,8 @@ function PdfDocument:getProps()
props.authors = props.author
props.series = ""
props.language = ""
props.keywords = props.keywords
props.description = props.subject
return props
end