parameters: (folder=TMPFOLDER,convertor=PDFCONVERTOR)
docstring: scans a folder for html files and converts them all to pdf
docstring_summary: scans a folder for html files and converts them all to pdf
docstring_tokens: scans a folder for html files and converts them all to pdf
function: def buildpdffiles(folder=TMPFOLDER,convertor=PDFCONVERTOR):
      "scans a folder for html files and converts them all to pdf"
      templist = os.listdir(folder)
      fileslist = []
      for i in templist:
          if i[-5:] == '.html':
              fileslist.append(i)
      for f in fileslist:
          if convertor == 'pisa': createpdf_pisa(f[:-5],folder)
          else: createpdf_htmldoc(f[:-5],folder)
function_tokens: def buildpdffiles ( folder = TMPFOLDER , convertor = PDFCONVERTOR ) : templist = os . listdir ( folder ) fileslist = [ ] for i in templist : if i [ - 5 : ] == '.html' : fileslist . append ( i ) for f in fileslist : if convertor == 'pisa' : createpdf_pisa ( f [ : - 5 ] , folder ) else : createpdf_htmldoc ( f [ : - 5 ] , folder )