         page.getTextContent().then (textContent) ->
           appendCounter = 0
           textLayer =
-            beginLayout: () ->
+            beginLayout: ->
               #console.log "beginLayout"
-            endLayout: () ->
+            endLayout: ->
               #console.log "endLayout"
             appendText: (geom) ->
               width = geom.canvasWidth * geom.hScale

            viewport: viewport
            textLayer: textLayer

          page.render(renderContext).then () ->
            return # Do nothing
          , (error) ->
            console.error "PDF Error", error

do -> # To not pollute the namespace
  require = __meteor_bootstrap__.require

  canvas = require 'canvas'
