-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes global PDFJS usage from the src/core/. #7053
Conversation
TODOs:
|
|
||
var PDFJS = sharedGlobal.PDFJS; | ||
|
||
var bidi = PDFJS.bidi = (function bidiClosure() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that this is gone, will the export
line at the end of the file still work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 120 below defines bidi
function
@@ -526,7 +530,7 @@ var PDFDocument = (function PDFDocumentClosure() { | |||
var pageFactory = { | |||
createPage: function (pageIndex, dict, ref, fontCache) { | |||
return new Page(self.pdfManager, self.xref, pageIndex, dict, ref, | |||
fontCache); | |||
fontCache, self.evaluatorOptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.pdfManage.evaluatorOptions ?
Some of the functions that are moved from |
d8c75f3
to
140164a
Compare
The test failures are most likely caused by not passing in the CMap options when doing Also, a nit, but shouldn't it ideally be named |
1558d64
to
419c239
Compare
That was it (plus one another thing with passing options as argument in LocalPdfManager)
Renamed /botio test |
419c239
to
e0bda5b
Compare
ae8351c
to
d65387b
Compare
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 1 Live output at: http://107.21.233.14:8877/02ad5968ac4805b/output.txt |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/401b4802a8f4a97/output.txt Total script time: 13.78 mins
Image differences available at: http://107.21.233.14:8877/401b4802a8f4a97/reftest-analyzer.html#web=eq.log |
d65387b
to
7cf0e75
Compare
} | ||
}(this, function (exports, sharedUtil, displayPatternHelper, displayWebGL) { | ||
}(this, function (exports, sharedUtil, displayDOMUtils, displayPatternHelper, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are all the changes in this file necessary? As far as I can see you're just adding displayDOMUtils
but not using it in the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
canvas.js has some PDFJS references (e.g. PDFJS.hasCanvasTypedArrays) and dom_utils.js has these -- it will be changed once we move all display/ PDFJS references in one file (display/global.js)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks for the clarification!
7cf0e75
to
c44c7b3
Compare
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/20eacbdff32384a/output.txt Total script time: 3.92 mins
Image differences available at: http://107.21.233.14:8877/20eacbdff32384a/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/027a5953f547b94/output.txt Total script time: 20.47 mins
|
Firefox is often stops after the test above: issue6961 - the #6961 is a performance issue. Maybe timeout needs to be increased. The problem does not appear when run on the botio-windows from command line. Will continue trying using gh botio interface with increased timeout. /botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/8085979e5920ad3/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/8085979e5920ad3/output.txt Total script time: 19.74 mins
|
/botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/6eabc43343852d0/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/6eabc43343852d0/output.txt Total script time: 19.77 mins
|
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.21.233.14:8877/d381e9ed88752d4/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/8e7b3f476a335ba/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/8e7b3f476a335ba/output.txt Total script time: 19.98 mins
|
/botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 1 Live output at: http://107.22.172.223:8877/7b0f60e7be9f89a/output.txt |
From: Bot.io (Linux)FailedFull output at http://107.21.233.14:8877/d381e9ed88752d4/output.txt Total script time: 60.00 mins |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/7b0f60e7be9f89a/output.txt Total script time: 19.83 mins
|
54d2310
to
2fa4dd6
Compare
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.21.233.14:8877/e1fc89e69266f2c/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/be0aca3444beac9/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/be0aca3444beac9/output.txt Total script time: 19.98 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/e1fc89e69266f2c/output.txt Total script time: 22.05 mins
|
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/7181a4628b9ff42/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/7181a4628b9ff42/output.txt Total script time: 0.99 mins Published |
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/471377ca2a8b7b1/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/d889f5f03ce095d/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/d889f5f03ce095d/output.txt Total script time: 19.78 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/471377ca2a8b7b1/output.txt Total script time: 22.11 mins
|
No description provided.