mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #870 from notmasteryet/issue-867
(#867) Set Type3 font encoding; enable text selection testing
This commit is contained in:
commit
bf755f459e
2 changed files with 10 additions and 3 deletions
|
@ -160,6 +160,10 @@ function nextPage(task, loadError) {
|
|||
canvas.height = pageHeight * pdfToCssUnitsCoef;
|
||||
clear(ctx);
|
||||
|
||||
// using non-attached to the document div to test
|
||||
// text layer creation operations
|
||||
var textLayer = document.createElement('div');
|
||||
|
||||
page.startRendering(
|
||||
ctx,
|
||||
function nextPageStartRendering(error) {
|
||||
|
@ -167,7 +171,8 @@ function nextPage(task, loadError) {
|
|||
if (error)
|
||||
failureMessage = 'render : ' + error.message;
|
||||
snapshotCurrentPage(task, failureMessage);
|
||||
}
|
||||
},
|
||||
textLayer
|
||||
);
|
||||
} catch (e) {
|
||||
failure = 'page setup : ' + e.toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue