mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Removes global PDFJS usage from the src/core/.
This commit is contained in:
parent
21ed8ff71d
commit
bda5e6235e
22 changed files with 376 additions and 299 deletions
|
@ -79,6 +79,7 @@ var Page = (function PageClosure() {
|
|||
this.idCounters = {
|
||||
obj: 0
|
||||
};
|
||||
this.evaluatorOptions = pdfManager.evaluatorOptions;
|
||||
this.resourcesPromise = null;
|
||||
}
|
||||
|
||||
|
@ -224,7 +225,8 @@ var Page = (function PageClosure() {
|
|||
handler, this.pageIndex,
|
||||
'p' + this.pageIndex + '_',
|
||||
this.idCounters,
|
||||
this.fontCache);
|
||||
this.fontCache,
|
||||
this.evaluatorOptions);
|
||||
|
||||
var dataPromises = Promise.all([contentStreamPromise, resourcesPromise]);
|
||||
var pageListPromise = dataPromises.then(function(data) {
|
||||
|
@ -289,7 +291,8 @@ var Page = (function PageClosure() {
|
|||
handler, self.pageIndex,
|
||||
'p' + self.pageIndex + '_',
|
||||
self.idCounters,
|
||||
self.fontCache);
|
||||
self.fontCache,
|
||||
self.evaluatorOptions);
|
||||
|
||||
return partialEvaluator.getTextContent(contentStream,
|
||||
task,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue