CRe: use getDocumentRenderingHash() to detect rendering changes

Instead of just relying on document full height
and number of pages.
This commit is contained in:
poire-z
2021-01-29 01:02:17 +01:00
parent fbdff1c672
commit 7779e2d8e7
2 changed files with 19 additions and 17 deletions

View File

@@ -270,6 +270,13 @@ function CreDocument:render()
logger.dbg("CreDocument: rendering done.")
end
function CreDocument:getDocumentRenderingHash()
if self.been_rendered then
return self._document:getDocumentRenderingHash()
end
return 0
end
function CreDocument:_readMetadata()
Document._readMetadata(self) -- will grab/update self.info.number_of_pages
if self.been_rendered then