parameters: (pagename)
docstring: creates a pdf file from a saved page using firefox (needs command line printing extension)
docstring_summary: creates a pdf file from a saved page using firefox (needs command line printing extension)
docstring_tokens: creates a pdf file from a saved page using firefox ( needs command line printing extension )
function: def createpdf_firefox(pagename):
      "creates a pdf file from a saved page using firefox (needs command line printing extension)"
      # the default printer will be used, so make sure it is set to pdf
      # command line printing extension http://forums.mozillazine.org/viewtopic.php?f=38&t=2729795
      if (not exists(pagename+".pdf",image=True)) or OVERWRITE:
          infile = FOLDER + os.sep + pagename+'.html'
          outfile = FOLDER + os.sep + pagename+'.pdf'
          os.system('firefox -print ' + infile)
          time.sleep(6)
          if os.path.exists(FIREFOXPDFFOLDER + os.sep + pagename + ".pdf"):
              shutil.move(FIREFOXPDFFOLDER+os.sep+pagename+".pdf",outfile)
          else:
              print("-----------------------------------------> Couldn't find print output!")
function_tokens: def createpdf_firefox ( pagename ) : # the default printer will be used, so make sure it is set to pdf # command line printing extension http://forums.mozillazine.org/viewtopic.php?f=38&t=2729795 if ( not exists ( pagename + ".pdf" , image = True ) ) or OVERWRITE : infile = FOLDER + os . sep + pagename + '.html' outfile = FOLDER + os . sep + pagename + '.pdf' os . system ( 'firefox -print ' + infile ) time . sleep ( 6 ) if os . path . exists ( FIREFOXPDFFOLDER + os . sep + pagename + ".pdf" ) : shutil . move ( FIREFOXPDFFOLDER + os . sep + pagename + ".pdf" , outfile ) else : print ( "-----------------------------------------> Couldn't find print output!" )