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;
|
||||
switch (cmd) {
|
||||
case 'Tf':
|
||||
font = handleSetFont(args[0].name);
|
||||
font = handleSetFont(args[0].name).translated;
|
||||
break;
|
||||
case 'TJ':
|
||||
var items = args[0];
|
||||
for (var j = 0, jj = items.length; j < jj; j++) {
|
||||
if (typeof items[j] === 'string') {
|
||||
chunk += items[j];
|
||||
chunk += fontCharsToUnicode(items[j], font);
|
||||
} else if (items[j] < 0) {
|
||||
// making all negative offsets a space - better to have
|
||||
// a space in incorrect place than not have them at all
|
||||
@ -543,17 +543,17 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||
}
|
||||
break;
|
||||
case 'Tj':
|
||||
chunk += args[0];
|
||||
chunk += fontCharsToUnicode(args[0], font);
|
||||
break;
|
||||
case "'":
|
||||
chunk += args[0] + ' ';
|
||||
chunk += fontCharsToUnicode(args[0], font) + ' ';
|
||||
break;
|
||||
case '"':
|
||||
chunk += args[2] + ' ';
|
||||
chunk += fontCharsToUnicode(args[2], font) + ' ';
|
||||
break;
|
||||
} // switch
|
||||
if (chunk !== '') {
|
||||
text += fontCharsToUnicode(chunk, font.translated);
|
||||
text += chunk;
|
||||
chunk = '';
|
||||
}
|
||||
|
||||
|
@ -83,6 +83,12 @@
|
||||
"rounds": 1,
|
||||
"type": "load"
|
||||
},
|
||||
{ "id": "arabiccidtruetype-text",
|
||||
"file": "pdfs/ArabicCIDTrueType.pdf",
|
||||
"md5": "d66dbd18bdb572d3ac8b88b32de2ece6",
|
||||
"rounds": 1,
|
||||
"type": "text"
|
||||
},
|
||||
{ "id": "complexttffont-pdf",
|
||||
"file": "pdfs/complex_ttf_font.pdf",
|
||||
"md5": "76de93f9116b01b693bf8583b3e76d91",
|
||||
@ -275,6 +281,13 @@
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "simpletype3font-text",
|
||||
"file": "pdfs/simpletype3font.pdf",
|
||||
"md5": "b374c7543920840c61999e9e86939f99",
|
||||
"link": false,
|
||||
"rounds": 1,
|
||||
"type": "text"
|
||||
},
|
||||
{ "id": "close-path-bug",
|
||||
"file": "pdfs/close-path-bug.pdf",
|
||||
"md5": "48dd17ef58393857d2d038d33699cac5",
|
||||
|
@ -8,7 +8,8 @@
|
||||
<style type="text/css">
|
||||
body {
|
||||
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;
|
||||
color: #ffffff;
|
||||
}
|
||||
@ -50,20 +51,28 @@
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<p>Vivien Nicolas (21@vingtetun.org)
|
||||
<br/>Andreas Gal (andreas.gal@gmail.com)
|
||||
<br/>Soumya Deb (debloper@gmail.com)
|
||||
<br/>Chris Jones (jones.chris.g@gmail.com)
|
||||
<br/>Justin D'Arcangelo (justindarc@gmail.com)
|
||||
<br/>sbarman (sbarman@eecs.berkeley.edu)
|
||||
<br/>
|
||||
<br/> </p>
|
||||
<h2>Contact</h2>
|
||||
<p> (andreas.gal@gmail.com)
|
||||
<br/> </p>
|
||||
Andreas Gal (gal@mozilla.com)<br/>
|
||||
Chris G Jones (cjones@mozilla.com)<br/>
|
||||
Shaon Barman (shaon.barman@gmail.com)<br/>
|
||||
Vivien Nicolas (21@vingtetun.org)<br/>
|
||||
Justin D'Arcangelo (justindarc@gmail.com)<br/>
|
||||
Yury Delendik (ydelendik@mozilla.com)<br/>
|
||||
Kalervo Kujala<br/>
|
||||
Adil Allawi (@ironymark)<br/>
|
||||
Jakob Miland (saebekassebil@gmail.com)<br/>
|
||||
Artur Adib (aadib@mozilla.com)<br/>
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user