-
-
-
 fs = require('fs')
 system = require('system')
 
-
-
 # ---------------------------------------------------------------------
-
-
 
 input = system.args[1]
 output = system.args[2]

  else
    null



# ---------------------------------------------------------------------



page = require('webpage').create()
page.settings.userAgent = options['user_agent'] if user_agent
page.customHeaders = { 'Referer': options['referer'] } if referer



# ---------------------------------------------------------------------



if output.substr(-4) is ".pdf"
  if paper_size != undefined


page.zoomFactor = zoom_factor

# ---------------------------------------------------------------------

page.open input, ->
  if element_id
