
    >wg4                     F    d dl mZ d dl mZ 	 	 ddZ	 	 d	dZ	 	 d	dZd Zy)
   )PDFKitConfigurationNc           
      J    t        | d||||||      }|j                  |      S )a%  
    Convert file of files from URLs to PDF document

    :param url: URL or list of URLs to be saved
    :param output_path: (optional) path to output PDF file. By default, PDF will be returned for assigning to a variable.
    :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
    :param configuration: (optional) instance of pdfkit.configuration.Configuration()
    :param cover_first: (optional) if True, cover always precedes TOC
    :param verbose: (optional) By default '--quiet' is passed to all calls, set this to False to get wkhtmltopdf output to stdout.

    Returns: True on success
    url)optionstoccoverconfigurationcover_firstverboser   to_pdf)	r   output_pathr   r	   r
   r   r   r   rs	            A/var/www/horilla/myenv/lib/python3.12/site-packages/pdfkit/api.pyfrom_urlr      s1    " 	sE75*W	VA 88K      c	                 L    t        | d|||||||	      }	|	j                  |      S )a  
    Convert HTML file or files to PDF document

    :param input: path to HTML file or list with paths or file-like object
    :param output_path: (optional) path to output PDF file. By default, PDF will be returned for assigning to a variable.
    :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
    :param configuration: (optional) instance of pdfkit.configuration.Configuration()
    :param cover_first: (optional) if True, cover always precedes TOC
    :param verbose: (optional) By default '--quiet' is passed to all calls, set this to False to get wkhtmltopdf output to stdout.

    Returns: True on success
    filer   r	   r
   cssr   r   r   r   
inputr   r   r	   r
   r   r   r   r   r   s
             r   	from_filer      s3    $ 	ufg3e*W	VA 88K  r   c	                 L    t        | d|||||||	      }	|	j                  |      S )a  
    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: (optional) path to output PDF file. By default, PDF will be returned for assigning to a variable.
    :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
    :param configuration: (optional) instance of pdfkit.configuration.Configuration()
    :param cover_first: (optional) if True, cover always precedes TOC
    :param verbose: (optional) By default '--quiet' is passed to all calls, set this to False to get wkhtmltopdf output to stdout.

    Returns: True on success
    stringr   r   r   s
             r   from_stringr   6   s3    $ 	uhS3*W	VA 88K  r   c                      t        di | S )z
    Constructs and returns a :class:`Configuration` with given options

    :param wkhtmltopdf: path to binary
    :param meta_tag_prefix: the prefix for ``pdfkit`` specific meta tags
     r   )kwargss    r   r   r   N   s     "6""r   )NNNNNFF)NNNNNNFF)pdfkitr   r   r   r   r   r   r    r   r   <module>r#      s?     ! CG<A!. PT=B!0 RV?D!0#r   