
    khT                     \    d dl mZ d dlmZ 	 	 	 	 	 ddZ	 	 	 	 	 	 d	dZ	 	 	 	 	 	 d	dZd Z y)
   Config)IMGKitNc           	      H    t        | d|||||      }|j                  |      S )as  
    Convert URL/URLs to IMG file/files

    :param url: URL or list of URLs to be saved
    :param output_path: path to output image file/files. False means file will be returned as string
    :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 imgkit.config.Config()
    :param cover_first: (optional) if True, cover always precedes TOC
    :return: True when success
    url)optionstoccoverconfigcover_firstr   to_img)r   output_pathr   r	   r
   r   r   rtns           F/var/www/teggl/fontify/venv/lib/python3.12/site-packages/imgkit/api.pyfrom_urlr      s4    * C ::k""    c           
      J    t        | d||||||      }|j                  |      S )a  
    Convert HTML file/files to IMG file/files

    :param filename: path of HTML file or list with paths or file-like object
    :param output_path: path to output image file/files. False means file will be returned as string
    :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 css: style of input
    :param configuration: (optional) instance of imgkit.config.Config()
    :param cover_first: (optional) if True, cover always precedes TOC
    :return: True when success
    filer   r	   r
   cssr   r   r   )	filenamer   r   r	   r
   r   r   r   r   s	            r   	from_filer   '   s7    . 	C ::k""r   c           
      J    t        | d||||||      }|j                  |      S )ay  
    Convert given string/strings to IMG file

    :param string:
    :param output_path: path to output PDF file/files. False means file will be returned as string
    :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 css: style of input
    :param configuration: (optional) instance of imgkit.config.Config()
    :param cover_first: (optional) if True, cover always precedes TOC
    :return: True when success
    stringr   r   )	r   r   r   r	   r
   r   r   r   r   s	            r   from_stringr   K   s7    . 	C ::k""r   c                      t        di | S )z
    Constructs and returns a :class:`Config` with given options

    :param wkhtmltopdf: path to binary
    :param meta_tag_prefix: the prefix for ``imgkit`` specific meta tags
     r   )kwargss    r   r   r   o   s     Fr   )NNNNN)NNNNNN)r   r   imgkitr   r   r   r   r   r   r   <module>r!      s[      
#H 
!#N 
!#Hr   