Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
6f2448526a
@ -528,13 +528,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
var cmd = obj.cmd;
|
var cmd = obj.cmd;
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case 'Tf':
|
case 'Tf':
|
||||||
font = handleSetFont(args[0].name);
|
font = handleSetFont(args[0].name).translated;
|
||||||
break;
|
break;
|
||||||
case 'TJ':
|
case 'TJ':
|
||||||
var items = args[0];
|
var items = args[0];
|
||||||
for (var j = 0, jj = items.length; j < jj; j++) {
|
for (var j = 0, jj = items.length; j < jj; j++) {
|
||||||
if (typeof items[j] === 'string') {
|
if (typeof items[j] === 'string') {
|
||||||
chunk += items[j];
|
chunk += fontCharsToUnicode(items[j], font);
|
||||||
} else if (items[j] < 0) {
|
} else if (items[j] < 0) {
|
||||||
// making all negative offsets a space - better to have
|
// making all negative offsets a space - better to have
|
||||||
// a space in incorrect place than not have them at all
|
// a space in incorrect place than not have them at all
|
||||||
@ -543,17 +543,17 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'Tj':
|
case 'Tj':
|
||||||
chunk += args[0];
|
chunk += fontCharsToUnicode(args[0], font);
|
||||||
break;
|
break;
|
||||||
case "'":
|
case "'":
|
||||||
chunk += args[0] + ' ';
|
chunk += fontCharsToUnicode(args[0], font) + ' ';
|
||||||
break;
|
break;
|
||||||
case '"':
|
case '"':
|
||||||
chunk += args[2] + ' ';
|
chunk += fontCharsToUnicode(args[2], font) + ' ';
|
||||||
break;
|
break;
|
||||||
} // switch
|
} // switch
|
||||||
if (chunk !== '') {
|
if (chunk !== '') {
|
||||||
text += fontCharsToUnicode(chunk, font.translated);
|
text += chunk;
|
||||||
chunk = '';
|
chunk = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,6 +83,12 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "load"
|
"type": "load"
|
||||||
},
|
},
|
||||||
|
{ "id": "arabiccidtruetype-text",
|
||||||
|
"file": "pdfs/ArabicCIDTrueType.pdf",
|
||||||
|
"md5": "d66dbd18bdb572d3ac8b88b32de2ece6",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
{ "id": "complexttffont-pdf",
|
{ "id": "complexttffont-pdf",
|
||||||
"file": "pdfs/complex_ttf_font.pdf",
|
"file": "pdfs/complex_ttf_font.pdf",
|
||||||
"md5": "76de93f9116b01b693bf8583b3e76d91",
|
"md5": "76de93f9116b01b693bf8583b3e76d91",
|
||||||
@ -275,6 +281,13 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "simpletype3font-text",
|
||||||
|
"file": "pdfs/simpletype3font.pdf",
|
||||||
|
"md5": "b374c7543920840c61999e9e86939f99",
|
||||||
|
"link": false,
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
{ "id": "close-path-bug",
|
{ "id": "close-path-bug",
|
||||||
"file": "pdfs/close-path-bug.pdf",
|
"file": "pdfs/close-path-bug.pdf",
|
||||||
"md5": "48dd17ef58393857d2d038d33699cac5",
|
"md5": "48dd17ef58393857d2d038d33699cac5",
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
margin-top: 1.0em;
|
margin-top: 1.0em;
|
||||||
background-color: #482a30;
|
background-color: rgb(64, 64, 64);
|
||||||
|
background-image: url(web/images/texture.png);
|
||||||
font-family: Helvetica, Arial, FreeSans, san-serif;
|
font-family: Helvetica, Arial, FreeSans, san-serif;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
@ -50,20 +51,28 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Try it out!</h2>
|
<h2>Try it out!</h2>
|
||||||
<p>Live <a href="web/viewer.html">demo</a> lives here.</p>
|
<p>Live <a href="web/viewer.html">demo</a> or firefox <a href="https://addons.mozilla.org/en-US/firefox/addon/pdfjs/">extension</a>.</p>
|
||||||
|
|
||||||
<h2>Authors</h2>
|
<h2>Authors</h2>
|
||||||
<p>Vivien Nicolas (21@vingtetun.org)
|
Andreas Gal (gal@mozilla.com)<br/>
|
||||||
<br/>Andreas Gal (andreas.gal@gmail.com)
|
Chris G Jones (cjones@mozilla.com)<br/>
|
||||||
<br/>Soumya Deb (debloper@gmail.com)
|
Shaon Barman (shaon.barman@gmail.com)<br/>
|
||||||
<br/>Chris Jones (jones.chris.g@gmail.com)
|
Vivien Nicolas (21@vingtetun.org)<br/>
|
||||||
<br/>Justin D'Arcangelo (justindarc@gmail.com)
|
Justin D'Arcangelo (justindarc@gmail.com)<br/>
|
||||||
<br/>sbarman (sbarman@eecs.berkeley.edu)
|
Yury Delendik (ydelendik@mozilla.com)<br/>
|
||||||
<br/>
|
Kalervo Kujala<br/>
|
||||||
<br/> </p>
|
Adil Allawi (@ironymark)<br/>
|
||||||
<h2>Contact</h2>
|
Jakob Miland (saebekassebil@gmail.com)<br/>
|
||||||
<p> (andreas.gal@gmail.com)
|
Artur Adib (aadib@mozilla.com)<br/>
|
||||||
<br/> </p>
|
Brendan Dahl (bdahl@mozilla.com)<br/>
|
||||||
|
David Quintana (gigaherz@gmail.com)<br/>
|
||||||
|
Julian Viereck<br/>
|
||||||
|
<a href="https://github.com/mozilla/pdf.js/graphs/contributors">...</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>Contact</h2>
|
||||||
|
<p> (dev-pdf-js@lists.mozilla.org)
|
||||||
|
<br/> </p>
|
||||||
|
|
||||||
|
|
||||||
<h2>Download</h2>
|
<h2>Download</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user