Skip to content

Commit

Permalink
convert rendered canvas from pipeline to png
Browse files Browse the repository at this point in the history
  • Loading branch information
awang committed Aug 1, 2015
1 parent 97b04e6 commit 9e4f3f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/pdf_thumbnail_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {
rejectRenderPromise(error);
return;
}

self.image.src = self.canvas.toDataURL();
self.canvas.width = 0;
self.canvas.height = 0;
delete self.canvas;
self.renderingState = RenderingStates.FINISHED;

if (!error) {
Expand Down

0 comments on commit 9e4f3f7

Please sign in to comment.