title: How to display a footer line above the footer using the pdfkit library in python?
body: <h1>Background Info</h1>
  <p>I have the following Python code that I want to use to generate a pdf file. It uses the <a href="https://pypi.python.org/pypi/pdfkit" rel="nofollow noreferrer">pdfkit library</a>.</p>
  <pre><code>import pdfkit               # import python module
  
  if __name__==&quot;__main__&quot;:
     
      
      options = {
          'page-size': 'Letter',
          'margin-top': '0.5in',
          'margin-right': '0.75in',
          'margin-bottom': '0.5in',
          'margin-left': '0.75in',
          'encoding': &quot;UTF-8&quot;,
          'footer-left': &quot;This is a footer&quot;,
          'footer-font-size':'7',
          'footer-right': '[page] of [topage]',
          
          'custom-header' : [
              ('Accept-Encoding', 'gzip')
          ],
          'no-outline': None
      }
  
      ##this is the path of the whkhtmltopdf.exe in order for the library to 
      ##work on a Windows OS
      path_wkthmltopdf = r'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe'
      config = pdfkit.configuration(wkhtmltopdf=path_wkthmltopdf)
              
      pdfkit.from_url('http://google.com', 'Report.pdf',options=options,configuration=config))
  </code></pre>
  <p>The Resulting PDF is as follows. All I need simply is a line above this is a footer.
  <a href="https://i.stack.imgur.com/2WFaN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2WFaN.png" alt="The Resulting PDF" /></a></p>
  <p>According to to the following site, I can add a footer line above the footer using the attribute <code>footer-line</code> but I'm not understanding the syntax on how to implement it in python</p>
  <blockquote>
  <p><a href="https://wkhtmltopdf.org/usage/wkhtmltopdf.txt" rel="nofollow noreferrer">https://wkhtmltopdf.org/usage/wkhtmltopdf.txt</a></p>
  </blockquote>
  <h1>The Question in Brief</h1>
  <p>How do I modify the <code>options</code> attribute to include <code>footer-line</code>?</p>
  <pre><code> options = {
          'page-size': 'Letter',
          'margin-top': '0.5in',
          'margin-right': '0.75in',
          'margin-bottom': '0.5in',
          'margin-left': '0.75in',
          'encoding': &quot;UTF-8&quot;,
          'footer-left': &quot;This is a footer&quot;,
          'footer-font-size':'7',
          'footer-right': '[page] of [topage]',
          
          'custom-header' : [
              ('Accept-Encoding', 'gzip')
          ],
          'no-outline': None
      }
  </code></pre>