CRe: use getDocumentRenderingHash() to detect rendering changes
Instead of just relying on document full height and number of pages.
This commit is contained in:
1 parent
fbdff1c672
commit
7779e2d8e7
2 files changed
+19
-17
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user