]> git.parisson.com Git - pdf.js.git/commitdiff
Fixing the textLayer parameter
authornotmasteryet <async.processingjs@yahoo.com>
Mon, 5 Dec 2011 23:19:43 +0000 (17:19 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Mon, 5 Dec 2011 23:19:43 +0000 (17:19 -0600)
test/driver.js

index 83f80ebed1f1bb55ddb93b0f9648b81f9cb7ac0c..2467b57a38daf7ecc34c16418fa8991b65d51a08 100644 (file)
@@ -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) {
@@ -168,7 +172,7 @@ function nextPage(task, loadError) {
             failureMessage = 'render : ' + error.message;
           snapshotCurrentPage(task, failureMessage);
         },
-        true
+        textLayer
       );
     } catch (e) {
       failure = 'page setup : ' + e.toString();