Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
a2701dbe
Commit
a2701dbe
authored
Oct 25, 2014
by
Nick Stenning
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1593 from hypothesis/1592-support-ff32-pdf
Update Annotator PDF plugin to support latest PDF.js in FF34
parents
cc34a02d
3f30e694
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
annotator.pdf.js
h/static/scripts/vendor/annotator.pdf.js
+6
-5
No files found.
h/static/scripts/vendor/annotator.pdf.js
View file @
a2701dbe
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
** Dual licensed under the MIT and GPLv3 licenses.
** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE
** https://github.com/okfn/annotator/blob/master/LICENSE
**
**
** Built at: 2014-10-2
3 22:40:2
9Z
** Built at: 2014-10-2
5 11:58:0
9Z
*/
*/
...
@@ -141,9 +141,10 @@
...
@@ -141,9 +141,10 @@
};
};
PDFTextMapper
.
prototype
.
_extractPageText
=
function
(
pageIndex
)
{
PDFTextMapper
.
prototype
.
_extractPageText
=
function
(
pageIndex
)
{
var
page
,
var
page
,
pageSource
,
_ref
,
_this
=
this
;
_this
=
this
;
page
=
PDFFindController
.
pdfPageSource
.
pages
[
pageIndex
];
pageSource
=
(
_ref
=
PDFFindController
.
pdfPageSource
)
!=
null
?
_ref
:
PDFView
.
findController
.
pdfPageSource
;
page
=
pageSource
.
pages
[
pageIndex
];
if
((
page
!=
null
?
page
.
pdfPage
:
void
0
)
==
null
)
{
if
((
page
!=
null
?
page
.
pdfPage
:
void
0
)
==
null
)
{
setTimeout
((
function
()
{
setTimeout
((
function
()
{
return
_this
.
_extractPageText
(
pageIndex
);
return
_this
.
_extractPageText
(
pageIndex
);
...
@@ -151,8 +152,8 @@
...
@@ -151,8 +152,8 @@
return
;
return
;
}
}
return
page
.
getTextContent
().
then
(
function
(
data
)
{
return
page
.
getTextContent
().
then
(
function
(
data
)
{
var
content
,
rawContent
,
text
,
textData
,
_ref
,
_ref1
;
var
content
,
rawContent
,
text
,
textData
,
_ref
1
,
_ref2
;
textData
=
(
_ref
=
(
_ref1
=
data
.
bidiTexts
)
!=
null
?
_ref1
:
data
.
items
)
!=
null
?
_ref
:
data
;
textData
=
(
_ref
1
=
(
_ref2
=
data
.
bidiTexts
)
!=
null
?
_ref2
:
data
.
items
)
!=
null
?
_ref1
:
data
;
rawContent
=
((
function
()
{
rawContent
=
((
function
()
{
var
_i
,
_len
,
_results
;
var
_i
,
_len
,
_results
;
_results
=
[];
_results
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment