massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / fpdf2 / fpdf / html.pyi
1 from html.parser import HTMLParser
2 from typing import Any
3
4 LOGGER: Any
5 BULLET_WIN1252: str
6 DEFAULT_HEADING_SIZES: Any
7 COLOR_DICT: Any
8
9 def px2mm(px): ...
10 def color_as_decimal(color: str = ...): ...
11
12 class HTML2FPDF(HTMLParser):
13     pdf: Any
14     image_map: Any
15     li_tag_indent: Any
16     table_line_separators: Any
17     ul_bullet_char: Any
18     style: Any
19     href: str
20     align: str
21     page_links: Any
22     font_stack: Any
23     indent: int
24     bullet: Any
25     font_size: Any
26     font_color: Any
27     table: Any
28     table_col_width: Any
29     table_col_index: Any
30     td: Any
31     th: Any
32     tr: Any
33     thead: Any
34     tfoot: Any
35     tr_index: Any
36     theader: Any
37     tfooter: Any
38     theader_out: bool
39     table_row_height: int
40     heading_level: Any
41     heading_sizes: Any
42     def __init__(
43         self,
44         pdf,
45         image_map: Any | None = ...,
46         li_tag_indent: int = ...,
47         table_line_separators: bool = ...,
48         ul_bullet_char=...,
49         heading_sizes: Any | None = ...,
50         **_,
51     ): ...
52     def width2unit(self, length): ...
53     def handle_data(self, data) -> None: ...
54     def box_shadow(self, w, h, bgcolor) -> None: ...
55     def output_table_header(self) -> None: ...
56     tfooter_out: bool
57     def output_table_footer(self) -> None: ...
58     def output_table_sep(self) -> None: ...
59     font_face: Any
60     table_offset: Any
61     def handle_starttag(self, tag, attrs) -> None: ...
62     tbody: Any
63     def handle_endtag(self, tag) -> None: ...
64     h: Any
65     def set_font(self, face: Any | None = ..., size: Any | None = ...) -> None: ...
66     def set_style(self, tag: Any | None = ..., enable: bool = ...) -> None: ...
67     def set_text_color(self, r: Any | None = ..., g: int = ..., b: int = ...) -> None: ...
68     def put_link(self, txt) -> None: ...
69     def render_toc(self, pdf, outline) -> None: ...
70     def error(self, message) -> None: ...
71
72 class HTMLMixin:
73     HTML2FPDF_CLASS: Any
74     def write_html(self, text, *args, **kwargs) -> None: ...