diff --git a/web/pdf_thumbnail_view.js b/web/pdf_thumbnail_view.js index 1294d35542632e..3a62f5dbb50926 100644 --- a/web/pdf_thumbnail_view.js +++ b/web/pdf_thumbnail_view.js @@ -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) {