Fix title info for PDF document
This commit is contained in:
parent
f955befc4b
commit
dee158d80c
@ -94,7 +94,7 @@ var WorkerMessageHandler = {
|
|||||||
fingerprint: pdfModel.getFingerprint(),
|
fingerprint: pdfModel.getFingerprint(),
|
||||||
destinations: pdfModel.catalog.destinations,
|
destinations: pdfModel.catalog.destinations,
|
||||||
outline: pdfModel.catalog.documentOutline,
|
outline: pdfModel.catalog.documentOutline,
|
||||||
info: pdfModel.info,
|
info: pdfModel.getDocumentInfo(),
|
||||||
metadata: pdfModel.catalog.metadata
|
metadata: pdfModel.catalog.metadata
|
||||||
};
|
};
|
||||||
handler.send('GetDoc', {pdfInfo: doc});
|
handler.send('GetDoc', {pdfInfo: doc});
|
||||||
|
@ -550,7 +550,8 @@ var PDFView = {
|
|||||||
self.setInitialView(storedHash, scale);
|
self.setInitialView(storedHash, scale);
|
||||||
});
|
});
|
||||||
|
|
||||||
pdfDocument.getMetadata().then(function(info, metadata) {
|
pdfDocument.getMetadata().then(function(data) {
|
||||||
|
var info = data.info, metadata = data.metadata;
|
||||||
self.documentInfo = info;
|
self.documentInfo = info;
|
||||||
self.metadata = metadata;
|
self.metadata = metadata;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user