ó
    )�‘h4  ã                   óL   • S SK Jr  S SK Jr    SS jr  S	S jr  S	S jrS rg)
é   )ÚPDFKit©ÚConfigurationNc                 ó@   • [        U SX#UXVUS9nUR                  U5      $ )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	            ÚNC:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\pdfkit/api.pyÚfrom_urlr      s-   € ô" 	ˆs�E 7¸5Ø*ÈWñ	V€Að �8‰8�KÓ Ð ó    c	                 ó@   • [        U SX#XEXgUS9	n	U	R                  U5      $ )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      s-   € ô$ 	ˆu�f g¸eØ*ÈWñ	V€Að �8‰8�KÓ Ð r   c	                 ó@   • [        U SX#XEXgUS9	n	U	R                  U5      $ )ad  
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   s-   € ô$ 	ˆu�h¨ÀØ*ÈWñ	V€Að �8‰8�KÓ Ð r   c                  ó   • [        S0 U D6$ )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   