old_contents: # -*- coding: utf-8 -*-
  
  from .pdfkit import PDFKit
  
  
  def from_url(url, output_path, options=None, toc=None, cover=None):
  #TODO rework
      """
      Convert file of files from URLs to PDF document
  
      :param url: URL or list of URLs to be saved
      :param output_path: path to output PDF file
      :param options: (optional) dict with wkhtmltopdf global and page options, without '--'
      :param toc: (optional) dict with toc-specific wkhtmltopdf options, without '--'
      :param cover: (optional) string with url/filename with a cover html page
      """
  
      r = PDFKit(url, 'url', options=options, toc=toc, cover=cover)
  
      r.to_file(output_path)
  
  
  def from_file(input, output_path, options=None, toc=None, cover=None, css=None):
      """
      Convert HTML file or files to PDF document
  
      :param input: path to HTML file or list with paths
      :param output_path: path to output PDF file
      :param options: (optional) dict with wkhtmltopdf options, without '--'
      :param toc: (optional) dict with toc-specific wkhtmltopdf options, without '--'
      :param cover: (optional) string with url/filename with a cover html page
      :param css: (optional) string with path to css file which will be added to a single input file
      """
  
      r = PDFKit(input, 'file', options=options, toc=toc, cover=cover, css=css)
  
      r.to_file(output_path)
  
  
  def from_string(input, output_path, options=None, toc=None, cover=None, css=None):
      """
      Convert given string or strings to PDF document
  
      :param input: string with a desired text. Could be a raw text or a html file
      :param output_path: path to output PDF file
      :param options: (optional) dict with wkhtmltopdf options, without '--'
      :param toc: (optional) dict with toc-specific wkhtmltopdf options, without '--'
      :param cover: (optional) string with url/filename with a cover html page
      :param css: (optional) string with path to css file which will be added to a input string
  
      """
  
      r = PDFKit(input, 'string', options=options, toc=toc, cover=cover, css=css)
  
      r.to_file(output_path)
new_contents: # -*- coding: utf-8 -*-
  
  from .pdfkit import PDFKit
  
  
  def from_url(url, output_path, options=None, toc=None, cover=None):
  #TODO rework
      """
      Convert file of files from URLs to PDF document
  
      :param url: URL or list of URLs to be saved
      :param output_path: path to output PDF file
      :param options: (optional) dict with wkhtmltopdf global and page options, with or w/o '--'
      :param toc: (optional) dict with toc-specific wkhtmltopdf options, with or w/o '--'
      :param cover: (optional) string with url/filename with a cover html page
      """
  
      r = PDFKit(url, 'url', options=options, toc=toc, cover=cover)
  
      r.to_file(output_path)
  
  
  def from_file(input, output_path, options=None, toc=None, cover=None, css=None):
      """
      Convert HTML file or files to PDF document
  
      :param input: path to HTML file or list with paths
      :param output_path: path to output PDF file
      :param options: (optional) dict with wkhtmltopdf options, with or w/o '--'
      :param toc: (optional) dict with toc-specific wkhtmltopdf options, with or w/o '--'
      :param cover: (optional) string with url/filename with a cover html page
      :param css: (optional) string with path to css file which will be added to a single input file
      """
  
      r = PDFKit(input, 'file', options=options, toc=toc, cover=cover, css=css)
  
      r.to_file(output_path)
  
  
  def from_string(input, output_path, options=None, toc=None, cover=None, css=None):
      """
      Convert given string or strings to PDF document
  
      :param input: string with a desired text. Could be a raw text or a html file
      :param output_path: path to output PDF file
      :param options: (optional) dict with wkhtmltopdf options, with or w/o '--'
      :param toc: (optional) dict with toc-specific wkhtmltopdf options, with or w/o '--'
      :param cover: (optional) string with url/filename with a cover html page
      :param css: (optional) string with path to css file which will be added to a input string
  
      """
  
      r = PDFKit(input, 'string', options=options, toc=toc, cover=cover, css=css)
  
      r.to_file(output_path)
subject: update docstrings