robotframework-markitdown 0.2.2__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/.github/workflows/publish.yml +19 -0
  2. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/CHANGELOG.md +33 -0
  3. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/PKG-INFO +46 -11
  4. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/README.md +41 -10
  5. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/docs/MarkItDownLibrary.html +1 -1
  6. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/docs/index.html +13 -10
  7. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/pyproject.toml +4 -0
  8. robotframework_markitdown-0.3.0/src/MarkItDownLibrary/acroform.py +75 -0
  9. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/src/MarkItDownLibrary/detect.py +15 -4
  10. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/src/MarkItDownLibrary/fields.py +40 -9
  11. robotframework_markitdown-0.3.0/src/MarkItDownLibrary/guard.py +68 -0
  12. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/src/MarkItDownLibrary/library.py +115 -29
  13. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/src/MarkItDownLibrary/tables.py +24 -2
  14. robotframework_markitdown-0.3.0/src/MarkItDownLibrary/version.py +1 -0
  15. robotframework_markitdown-0.3.0/utest/test_acroform.py +182 -0
  16. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/utest/test_convert.py +55 -0
  17. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/utest/test_detect.py +31 -0
  18. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/utest/test_field_keywords.py +30 -0
  19. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/utest/test_fields.py +42 -0
  20. robotframework_markitdown-0.3.0/utest/test_guard.py +59 -0
  21. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/utest/test_tables.py +10 -0
  22. robotframework_markitdown-0.2.2/src/MarkItDownLibrary/acroform.py +0 -15
  23. robotframework_markitdown-0.2.2/src/MarkItDownLibrary/guard.py +0 -25
  24. robotframework_markitdown-0.2.2/src/MarkItDownLibrary/version.py +0 -1
  25. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/.gitattributes +0 -0
  26. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/.gitignore +0 -0
  27. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/LICENSE +0 -0
  28. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/docx.robot +0 -0
  29. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/fixtures/contract_form_blank.pdf +0 -0
  30. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/fixtures/contract_form_filled.pdf +0 -0
  31. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/fixtures/contract_text_blank.pdf +0 -0
  32. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/fixtures/contract_text_filled.pdf +0 -0
  33. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/fixtures/deck.pptx +0 -0
  34. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/fixtures/invoice.xlsx +0 -0
  35. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/fixtures/page.html +0 -0
  36. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/fixtures/table.docx +0 -0
  37. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/html.robot +0 -0
  38. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/pdf.robot +0 -0
  39. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/pptx.robot +0 -0
  40. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/resources/common.resource +0 -0
  41. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/text_csv.robot +0 -0
  42. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/atest/xlsx.robot +0 -0
  43. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/docs/fonts/OFL.txt +0 -0
  44. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/docs/fonts/bricolage-grotesque.woff2 +0 -0
  45. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/docs/fonts/fragment-mono.woff2 +0 -0
  46. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/requirements-dev.lock +0 -0
  47. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/src/MarkItDownLibrary/__init__.py +0 -0
  48. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/src/MarkItDownLibrary/text.py +0 -0
  49. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/tools/make_fixtures.py +0 -0
  50. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/utest/fixtures/page.html +0 -0
  51. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/utest/test_assertions.py +0 -0
  52. {robotframework_markitdown-0.2.2 → robotframework_markitdown-0.3.0}/utest/test_text.py +0 -0
@@ -8,7 +8,26 @@ permissions:
8
8
  contents: read
9
9
 
10
10
  jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
17
+ steps:
18
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
19
+ with:
20
+ persist-credentials: false
21
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
22
+ with:
23
+ python-version: ${{ matrix.python-version }}
24
+ - run: python -m pip install --upgrade pip
25
+ - run: python -m pip install ".[acroform]" --group dev
26
+ - run: python -m pytest
27
+ - run: python -m robot atest
28
+
11
29
  build:
30
+ needs: test
12
31
  runs-on: ubuntu-latest
13
32
  steps:
14
33
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
@@ -3,6 +3,39 @@
3
3
  All notable changes to this project are recorded here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
+ ## 0.3.0 - 2026-12-06
7
+
8
+ ### Changed
9
+
10
+ - `Field Should Be Blank` and `Field Should Be` take `occurrence`. All three
11
+ field keywords take `ignore_case`; an empty `separator` is refused.
12
+ - Failure messages cut long found values at 120 characters.
13
+ - Table parsing is cached per document and about 3 times faster uncached; a
14
+ repeated `Get Table Cell` on a 437 KB table went from 54 ms to 0.05 ms.
15
+ - A size cap above 128 MiB lifts MarkItDown's PDF input limit too.
16
+ - `Get Sheet Names` and `Get Sheet As Table` accept only `.xlsx` and `.xls`.
17
+ - Python 3.10 to 3.13 classifiers, and a test run on Python 3.10 to 3.14 in the
18
+ release workflow before publishing.
19
+
20
+ ### Added
21
+
22
+ - `Get Pdf Field Names`, `Get Pdf Field Value` and `Pdf Field Should Be`.
23
+ - With `next_line=True`, a `Label:` line with nothing after it takes the next
24
+ non-empty line, so a value on the following line no longer reads as blank.
25
+ - `Pdf Field Should Be Blank` reads a checkbox that is off, a missing value and
26
+ a value of spaces as blank, finds nested fields by qualified or leaf name,
27
+ and warns when it falls back to the converted text. Encrypted or unreadable
28
+ PDFs fail with a `ValueError`.
29
+ - Network paths, any `scheme://` string and Office files that expand past 10
30
+ times the size cap are refused. A `.pdf`, `.docx`, `.xlsx` or `.pptx` whose
31
+ bytes are not that format fails with a clear message.
32
+ - A table with repeated column names keeps every column, as `Name`, `Name_2`.
33
+ - `Convert Bytes To Markdown` trims and lower-cases the extension and refuses an
34
+ empty one. The sniffing switch is per conversion context and fails with a
35
+ clear message if MarkItDown drops its detector.
36
+ - The README dev setup installs the dev group, and README and the site state the
37
+ URI, size and field rules.
38
+
6
39
  ## 0.2.2 - 2026-12-06
7
40
 
8
41
  ### Changed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: robotframework-markitdown
3
- Version: 0.2.2
3
+ Version: 0.3.0
4
4
  Summary: Robot Framework library that converts documents to Markdown with MarkItDown, offline, and checks their text
5
5
  Project-URL: Source, https://github.com/ai94iq/robotframework-markitdown
6
6
  Project-URL: Issues, https://github.com/ai94iq/robotframework-markitdown/issues
@@ -13,6 +13,10 @@ Classifier: Framework :: Robot Framework :: Library
13
13
  Classifier: Intended Audience :: Developers
14
14
  Classifier: Operating System :: OS Independent
15
15
  Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
16
20
  Classifier: Programming Language :: Python :: 3.14
17
21
  Classifier: Topic :: Software Development :: Testing
18
22
  Requires-Python: <3.15,>=3.10
@@ -83,6 +87,9 @@ Invoice Sheet Totals
83
87
  | Field Should Be | Passes when a labelled field has the expected value. |
84
88
  | Field Should Be Blank | Passes when a labelled field is found and empty. |
85
89
  | Pdf Field Should Be Blank | Checks a PDF form field, or the text when there is none. |
90
+ | Get Pdf Field Names | Returns the names of a PDF's form fields. |
91
+ | Get Pdf Field Value | Returns one PDF form field's value. |
92
+ | Pdf Field Should Be | Passes when a PDF form field has the expected value. |
86
93
  | Get Sheet Names | Returns the XLSX sheet names in workbook order. |
87
94
  | Get Sheet As Table | Returns one XLSX sheet as rows keyed by header. |
88
95
  | Set Converter Options | Sets the size cap and whether data URIs are kept. |
@@ -93,10 +100,20 @@ Full keyword docs:
93
100
 
94
101
  ## Offline and limits
95
102
 
96
- - Only local files and bytes are converted. Paths starting with `file:`,
97
- `http:`, `https:` or `data:` are refused.
103
+ - Only local files and bytes are converted, through MarkItDown's file and
104
+ stream entry points. String paths that are URIs (`file:`, `http:`, `https:`,
105
+ `data:`, or any `scheme://`) and network paths (`\\host\share`, `//host`)
106
+ are refused; any other path must be an existing regular file.
98
107
  - Plugins, LLM and Azure features are off.
99
- - The default size cap is 50 MB; `Set Converter Options` changes it.
108
+ - The default size cap is 50,000,000 bytes; `Set Converter Options` changes it.
109
+ Each call replaces both its settings. Office files (`.docx`, `.xlsx`,
110
+ `.pptx`) that expand past 10 times the cap are refused. Other limits come
111
+ from MarkItDown.
112
+ - Any other format that MarkItDown's built-in converters read also converts,
113
+ such as `.csv`, `.txt` and `.zip`; the `Get Sheet` keywords accept only
114
+ `.xlsx` and `.xls`. A cap above MarkItDown's own 128 MiB PDF input limit
115
+ raises that limit too. XLSX cells that pandas writes as `NaN` or `12.0` are
116
+ cleaned only by the `Get Sheet` keywords, not by the field keywords.
100
117
  - Embedded data URIs are dropped unless `keep_data_uris` is set.
101
118
  - A PDF over a character limit fails with a resource limit error. Defaults:
102
119
  100,000 characters a page, 2,000,000 in total, 10,000,000 in the output.
@@ -105,8 +122,9 @@ Full keyword docs:
105
122
  `EXIFTOOL_PATH`; otherwise they convert to an empty string.
106
123
  - For `.pdf`, `.docx`, `.xlsx` and `.pptx` the library trusts the file
107
124
  extension and skips MarkItDown's content sniffing. A file with a wrong
108
- extension for these formats is not re-identified. This swaps a private
109
- MarkItDown attribute, so recheck it on each MarkItDown upgrade.
125
+ extension for these formats fails with a message that it is not a PDF or
126
+ not an Office file. This swaps a private MarkItDown attribute, so recheck it
127
+ on each MarkItDown upgrade.
110
128
 
111
129
  ## Field lookup
112
130
 
@@ -120,13 +138,29 @@ this order:
120
138
  next non-empty line, or blank if that line ends with the separator or the
121
139
  label is last.
122
140
 
123
- `occurrence` picks the nth match (from 1) when a label repeats; past the last
124
- match it fails and names the count. A label that is not found fails and shows
141
+ With `next_line=True`, `Label:` with nothing after it on its line also takes
142
+ the next non-empty line, unless that line ends with the separator.
143
+ Labels match exactly, including case, unless `ignore_case=True`. An empty
144
+ `separator` is refused. A value that ends with the separator reads as another
145
+ label in `next_line` mode. Failure messages cut long values at 120 characters.
146
+
147
+ `occurrence` picks the nth match (from 1) when a label repeats, on
148
+ `Get Field Value`, `Field Should Be` and `Field Should Be Blank`; matches are
149
+ counted within the first lookup step that finds any. Past the last match it
150
+ fails and names the count. A label that is not found fails and shows
125
151
  the closest lines.
126
152
 
153
+ `Get Pdf Field Names`, `Get Pdf Field Value` and `Pdf Field Should Be` read the
154
+ form directly and need the `acroform` extra; a missing extra or a PDF without a
155
+ form fails with a message that says so.
156
+
127
157
  `Pdf Field Should Be Blank` first looks for an AcroForm field with that name
128
- (needs pypdf). If found, its value is checked. Otherwise, or without pypdf, the
129
- check runs on the converted text with the rules above.
158
+ (needs pypdf): the qualified name (`form1.Total`) or the leaf name when one
159
+ field has it. A checkbox or radio that is off, a missing value and a value of
160
+ spaces read as blank. If no field matches, or without pypdf, the check runs on
161
+ the converted text with the rules above and a warning says so; a text layer
162
+ can read blank where the form holds a value. An encrypted or unreadable PDF
163
+ fails with a `ValueError` naming the file.
130
164
 
131
165
  ## Measurements
132
166
 
@@ -152,13 +186,14 @@ sample, and the forms have no known values beyond the one the test wrote.
152
186
  ## Development
153
187
 
154
188
  ```sh
155
- uv pip install -e .[acroform]
189
+ uv pip install -e ".[acroform]" --group dev
156
190
  python -m pytest
157
191
  robot atest
158
192
  pyright
159
193
  python -m robot.libdoc MarkItDownLibrary docs/MarkItDownLibrary.html
160
194
  ```
161
195
 
196
+ The release workflow runs the tests on Python 3.10 to 3.14 before it publishes.
162
197
  `pytest` runs `utest/`, `robot atest` runs `atest/`, `pyright` checks `src`,
163
198
  `utest` and `tools` in strict mode, and the last command rebuilds `docs/`.
164
199
 
@@ -59,6 +59,9 @@ Invoice Sheet Totals
59
59
  | Field Should Be | Passes when a labelled field has the expected value. |
60
60
  | Field Should Be Blank | Passes when a labelled field is found and empty. |
61
61
  | Pdf Field Should Be Blank | Checks a PDF form field, or the text when there is none. |
62
+ | Get Pdf Field Names | Returns the names of a PDF's form fields. |
63
+ | Get Pdf Field Value | Returns one PDF form field's value. |
64
+ | Pdf Field Should Be | Passes when a PDF form field has the expected value. |
62
65
  | Get Sheet Names | Returns the XLSX sheet names in workbook order. |
63
66
  | Get Sheet As Table | Returns one XLSX sheet as rows keyed by header. |
64
67
  | Set Converter Options | Sets the size cap and whether data URIs are kept. |
@@ -69,10 +72,20 @@ Full keyword docs:
69
72
 
70
73
  ## Offline and limits
71
74
 
72
- - Only local files and bytes are converted. Paths starting with `file:`,
73
- `http:`, `https:` or `data:` are refused.
75
+ - Only local files and bytes are converted, through MarkItDown's file and
76
+ stream entry points. String paths that are URIs (`file:`, `http:`, `https:`,
77
+ `data:`, or any `scheme://`) and network paths (`\\host\share`, `//host`)
78
+ are refused; any other path must be an existing regular file.
74
79
  - Plugins, LLM and Azure features are off.
75
- - The default size cap is 50 MB; `Set Converter Options` changes it.
80
+ - The default size cap is 50,000,000 bytes; `Set Converter Options` changes it.
81
+ Each call replaces both its settings. Office files (`.docx`, `.xlsx`,
82
+ `.pptx`) that expand past 10 times the cap are refused. Other limits come
83
+ from MarkItDown.
84
+ - Any other format that MarkItDown's built-in converters read also converts,
85
+ such as `.csv`, `.txt` and `.zip`; the `Get Sheet` keywords accept only
86
+ `.xlsx` and `.xls`. A cap above MarkItDown's own 128 MiB PDF input limit
87
+ raises that limit too. XLSX cells that pandas writes as `NaN` or `12.0` are
88
+ cleaned only by the `Get Sheet` keywords, not by the field keywords.
76
89
  - Embedded data URIs are dropped unless `keep_data_uris` is set.
77
90
  - A PDF over a character limit fails with a resource limit error. Defaults:
78
91
  100,000 characters a page, 2,000,000 in total, 10,000,000 in the output.
@@ -81,8 +94,9 @@ Full keyword docs:
81
94
  `EXIFTOOL_PATH`; otherwise they convert to an empty string.
82
95
  - For `.pdf`, `.docx`, `.xlsx` and `.pptx` the library trusts the file
83
96
  extension and skips MarkItDown's content sniffing. A file with a wrong
84
- extension for these formats is not re-identified. This swaps a private
85
- MarkItDown attribute, so recheck it on each MarkItDown upgrade.
97
+ extension for these formats fails with a message that it is not a PDF or
98
+ not an Office file. This swaps a private MarkItDown attribute, so recheck it
99
+ on each MarkItDown upgrade.
86
100
 
87
101
  ## Field lookup
88
102
 
@@ -96,13 +110,29 @@ this order:
96
110
  next non-empty line, or blank if that line ends with the separator or the
97
111
  label is last.
98
112
 
99
- `occurrence` picks the nth match (from 1) when a label repeats; past the last
100
- match it fails and names the count. A label that is not found fails and shows
113
+ With `next_line=True`, `Label:` with nothing after it on its line also takes
114
+ the next non-empty line, unless that line ends with the separator.
115
+ Labels match exactly, including case, unless `ignore_case=True`. An empty
116
+ `separator` is refused. A value that ends with the separator reads as another
117
+ label in `next_line` mode. Failure messages cut long values at 120 characters.
118
+
119
+ `occurrence` picks the nth match (from 1) when a label repeats, on
120
+ `Get Field Value`, `Field Should Be` and `Field Should Be Blank`; matches are
121
+ counted within the first lookup step that finds any. Past the last match it
122
+ fails and names the count. A label that is not found fails and shows
101
123
  the closest lines.
102
124
 
125
+ `Get Pdf Field Names`, `Get Pdf Field Value` and `Pdf Field Should Be` read the
126
+ form directly and need the `acroform` extra; a missing extra or a PDF without a
127
+ form fails with a message that says so.
128
+
103
129
  `Pdf Field Should Be Blank` first looks for an AcroForm field with that name
104
- (needs pypdf). If found, its value is checked. Otherwise, or without pypdf, the
105
- check runs on the converted text with the rules above.
130
+ (needs pypdf): the qualified name (`form1.Total`) or the leaf name when one
131
+ field has it. A checkbox or radio that is off, a missing value and a value of
132
+ spaces read as blank. If no field matches, or without pypdf, the check runs on
133
+ the converted text with the rules above and a warning says so; a text layer
134
+ can read blank where the form holds a value. An encrypted or unreadable PDF
135
+ fails with a `ValueError` naming the file.
106
136
 
107
137
  ## Measurements
108
138
 
@@ -128,13 +158,14 @@ sample, and the forms have no known values beyond the one the test wrote.
128
158
  ## Development
129
159
 
130
160
  ```sh
131
- uv pip install -e .[acroform]
161
+ uv pip install -e ".[acroform]" --group dev
132
162
  python -m pytest
133
163
  robot atest
134
164
  pyright
135
165
  python -m robot.libdoc MarkItDownLibrary docs/MarkItDownLibrary.html
136
166
  ```
137
167
 
168
+ The release workflow runs the tests on Python 3.10 to 3.14 before it publishes.
138
169
  `pytest` runs `utest/`, `robot atest` runs `atest/`, `pyright` checks `src`,
139
170
  `utest` and `tools` in strict mode, and the last command rebuilds `docs/`.
140
171
 
@@ -6,7 +6,7 @@
6
6
  <meta http-equiv=X-UA-Compatible content="IE=edge">
7
7
  <meta content="Robot Framework 7.5.1 (Python 3.14.10 on win32)" name="Generator">
8
8
  <script type="text/javascript">
9
- libdoc = {"specversion": 4, "name": "MarkItDownLibrary", "doc": "<p>Converts local documents to Markdown with MarkItDown, offline.</p>\n<p>Only local files and in-memory bytes are converted; URLs and URI strings are refused, and plugins, LLM and Azure features stay off.</p>", "version": "0.2.2", "generated": "2026-12-06T04:34:48+00:00", "type": "LIBRARY", "scope": "GLOBAL", "docFormat": "HTML", "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 19, "tags": [], "inits": [], "keywords": [{"name": "Convert Bytes To Markdown", "doc": "<p>Converts <code>data</code> to Markdown, using <code>extension</code> (for example <code>.pdf</code>) as the format hint.</p>", "shortdoc": "Converts ``data`` to Markdown, using ``extension`` (for example ``.pdf``) as the format hint.", "args": [{"name": "data", "doc": "", "type": {"name": "bytes", "typedoc": "bytes", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "data: bytes"}, {"name": "extension", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "extension: str"}, {"name": "encoding", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "encoding: str | None = None"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 52}, {"name": "Convert File To Markdown", "doc": "<p>Converts the local file <code>path</code> to Markdown and returns it.</p>", "shortdoc": "Converts the local file ``path`` to Markdown and returns it.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}, {"name": "encoding", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "encoding: str | None = None"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 41}, {"name": "Field Should Be", "doc": "<p>Fails unless field <code>label</code> has the value <code>expected</code>.</p>", "shortdoc": "Fails unless field ``label`` has the value ``expected``.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "label", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "label: str"}, {"name": "expected", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "expected: str"}, {"name": "separator", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": ":", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "separator: str = :"}, {"name": "next_line", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "next_line: bool = False"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 148}, {"name": "Field Should Be Blank", "doc": "<p>Fails unless field <code>label</code> is found and blank.</p>", "shortdoc": "Fails unless field ``label`` is found and blank.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "label", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "label: str"}, {"name": "separator", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": ":", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "separator: str = :"}, {"name": "next_line", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "next_line: bool = False"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 143}, {"name": "Get Field Value", "doc": "<p>Returns the value of field <code>label</code> ('' when blank); a missing label fails.</p>\n<p><code>occurrence</code> picks the nth match when the label repeats, counting from 1.</p>", "shortdoc": "Returns the value of field ``label`` ('' when blank); a missing label fails.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "label", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "label: str"}, {"name": "separator", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": ":", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "separator: str = :"}, {"name": "next_line", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "next_line: bool = False"}, {"name": "occurrence", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "1", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "occurrence: int = 1"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 133}, {"name": "Get Sheet As Table", "doc": "<p>Returns one sheet as rows keyed by header; empty cells are blank and 12.0 reads as 12.</p>", "shortdoc": "Returns one sheet as rows keyed by header; empty cells are blank and 12.0 reads as 12.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}, {"name": "sheet", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "sheet: str"}], "returnType": {"name": "list", "typedoc": "list", "nested": [{"name": "dict", "typedoc": "dictionary", "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": false, "alias": null}], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 171}, {"name": "Get Sheet Names", "doc": "<p>Returns the sheet names of an XLSX file in workbook order.</p>", "shortdoc": "Returns the sheet names of an XLSX file in workbook order.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}], "returnType": {"name": "list", "typedoc": "list", "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 166}, {"name": "Get Table Cell", "doc": "<p>Returns the cell at body row <code>row</code> (0-based) and <code>column</code> (header name or 0-based number).</p>", "shortdoc": "Returns the cell at body row ``row`` (0-based) and ``column`` (header name or 0-based number).", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "row", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "row: int"}, {"name": "column", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "column: str | int"}, {"name": "table", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "0", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "table: int = 0"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 125}, {"name": "Get Table From Markdown", "doc": "<p>Returns one table as rows keyed by header; <code>header</code> picks the first table with that column.</p>", "shortdoc": "Returns one table as rows keyed by header; ``header`` picks the first table with that column.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "index", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "0", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "index: int = 0"}, {"name": "header", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "header: str | None = None"}], "returnType": {"name": "list", "typedoc": "list", "nested": [{"name": "dict", "typedoc": "dictionary", "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": false, "alias": null}], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 120}, {"name": "Get Tables From Markdown", "doc": "<p>Returns every pipe table as rows of cells, header row first.</p>", "shortdoc": "Returns every pipe table as rows of cells, header row first.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}], "returnType": {"name": "list", "typedoc": "list", "nested": [{"name": "list", "typedoc": "list", "nested": [{"name": "list", "typedoc": "list", "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": false, "alias": null}], "union": false, "alias": null}], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 115}, {"name": "Markdown Should Contain", "doc": "<p>Fails unless <code>expected</code> is in <code>markdown</code>; the failure shows the 3 closest lines only.</p>", "shortdoc": "Fails unless ``expected`` is in ``markdown``; the failure shows the 3 closest lines only.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "expected", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "expected: str"}, {"name": "ignore_case", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "ignore_case: bool = False"}, {"name": "normalize_whitespace", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "True", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "normalize_whitespace: bool = True"}, {"name": "msg", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "msg: str | None = None"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 86}, {"name": "Markdown Should Match Regexp", "doc": "<p>Fails unless <code>pattern</code> matches (multiline mode); returns the matched text.</p>", "shortdoc": "Fails unless ``pattern`` matches (multiline mode); returns the matched text.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "pattern", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "pattern: str"}, {"name": "msg", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "msg: str | None = None"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 106}, {"name": "Markdown Should Not Contain", "doc": "<p>Fails when <code>expected</code> is in <code>markdown</code>; the failure shows the 3 lines where it was found.</p>", "shortdoc": "Fails when ``expected`` is in ``markdown``; the failure shows the 3 lines where it was found.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "expected", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "expected: str"}, {"name": "ignore_case", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "ignore_case: bool = False"}, {"name": "normalize_whitespace", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "True", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "normalize_whitespace: bool = True"}, {"name": "msg", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "msg: str | None = None"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 96}, {"name": "Pdf Field Should Be Blank", "doc": "<p>Checks a PDF form field when pypdf and an AcroForm are there, else the converted text.</p>", "shortdoc": "Checks a PDF form field when pypdf and an AcroForm are there, else the converted text.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}, {"name": "label", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "label: str"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 157}, {"name": "Set Converter Options", "doc": "<p>Sets whether embedded data URIs stay in the output and the largest document size in bytes.</p>", "shortdoc": "Sets whether embedded data URIs stay in the output and the largest document size in bytes.", "args": [{"name": "keep_data_uris", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "keep_data_uris: bool = False"}, {"name": "max_bytes", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "50000000", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "max_bytes: int = 50000000"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 63}, {"name": "Set Pdf Limits", "doc": "<p>Sets the PDF character limits; a PDF over a limit fails with a resource limit error.</p>\n<p>Each call replaces all three limits, so a call with no arguments restores the defaults.</p>", "shortdoc": "Sets the PDF character limits; a PDF over a limit fails with a resource limit error.", "args": [{"name": "max_chars_per_page", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "100000", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "max_chars_per_page: int = 100000"}, {"name": "max_total_chars", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "2000000", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "max_total_chars: int = 2000000"}, {"name": "max_output_chars", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "10000000", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "max_output_chars: int = 10000000"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 71}], "typedocs": [{"type": "Standard", "name": "boolean", "doc": "<p>Strings <code>TRUE</code>, <code>YES</code>, <code>ON</code>, <code>1</code> and possible localization specific \"true strings\" are converted to Boolean <code>True</code>, the empty string, strings <code>FALSE</code>, <code>NO</code>, <code>OFF</code> and <code>0</code> and possibly localization specific \"false strings\" are converted to Boolean <code>False</code>, and the string <code>NONE</code> is converted to the Python <code>None</code> object. Other strings and all other values are passed as-is, allowing keywords to handle them specially if needed. All string comparisons are case-insensitive.</p>\n<p>Examples: <code>TRUE</code> (converted to <code>True</code>), <code>off</code> (converted to <code>False</code>), <code>example</code> (used as-is)</p>", "usages": ["Field Should Be", "Field Should Be Blank", "Get Field Value", "Markdown Should Contain", "Markdown Should Not Contain", "Set Converter Options"], "accepts": ["string", "integer", "float", "None"]}, {"type": "Standard", "name": "bytes", "doc": "<p>Strings are converted to bytes so that each Unicode code point below 256 is directly mapped to a matching byte. Higher code points are not allowed. Robot Framework's <code>\\xHH</code> escape syntax is convenient with bytes having non-printable values.</p>\n<p>Examples: <code>good</code>, <code>hyv\u00e4</code> (same as <code>hyv\\xE4</code>), <code>\\x00</code> (the null byte)</p>\n<p>Integers and sequences of integers are converted to matching bytes directly. They must be in range 0-255.</p>\n<p>Examples: <code>0</code> (converted to the null byte), <code>[82, 70]</code> (converted to <code>RF</code>)</p>\n<p>Support for integers and sequences of integers is new in Robot Framework 7.4.</p>", "usages": ["Convert Bytes To Markdown"], "accepts": ["string", "bytearray", "Sequence", "integer"]}, {"type": "Standard", "name": "dictionary", "doc": "<p>Strings must be Python <a href=\"https://docs.python.org/library/stdtypes.html#dict\">dictionary</a> literals. They are converted to actual dictionaries using the <a href=\"https://docs.python.org/library/ast.html#ast.literal_eval\">ast.literal_eval</a> function. They can contain any values <code>ast.literal_eval</code> supports, including dictionaries and other collections.</p>\n<p>Any mapping is accepted and converted to a <code>dict</code>.</p>\n<p>If the type has nested types like <code>dict[str, int]</code>, items are converted to those types automatically. This in new in Robot Framework 6.0.</p>\n<p>Examples: <code>{'a': 1, 'b': 2}</code>, <code>{'key': 1, 'nested': {'key': 2}}</code></p>", "usages": ["Get Sheet As Table", "Get Table From Markdown"], "accepts": ["string", "Mapping"]}, {"type": "Standard", "name": "integer", "doc": "<p>Conversion is done using Python's <a href=\"https://docs.python.org/library/functions.html#int\">int</a> built-in function. Floating point numbers are accepted only if they can be represented as integers exactly. For example, <code>1.0</code> is accepted and <code>1.1</code> is not.</p>\n<p>It is possible to use hexadecimal, octal and binary numbers by prefixing values with <code>0x</code>, <code>0o</code> and <code>0b</code>, respectively. Spaces and underscores can be used as visual separators for digit grouping purposes.</p>\n<p>Examples: <code>42</code>, <code>-1</code>, <code>0b1010</code>, <code>10 000 000</code>, <code>0xBAD_C0FFEE</code></p>", "usages": ["Get Field Value", "Get Table Cell", "Get Table From Markdown", "Set Converter Options", "Set Pdf Limits"], "accepts": ["string", "float"]}, {"type": "Standard", "name": "list", "doc": "<p>Strings must be Python <a href=\"https://docs.python.org/library/stdtypes.html#list\">list</a> or <a href=\"https://docs.python.org/library/stdtypes.html#tuple\">tuple</a> literals. They are converted using the <a href=\"https://docs.python.org/library/ast.html#ast.literal_eval\">ast.literal_eval</a> function and possible tuples converted further to lists. They can contain any values <code>ast.literal_eval</code> supports, including lists and other collections.</p>\n<p>If the argument is a list, it is used without conversion. Tuples and other sequences are converted to lists.</p>\n<p>If the type has nested types like <code>list[int]</code>, items are converted to those types automatically.</p>\n<p>Examples: <code>['one', 'two']</code>, <code>[('one', 1), ('two', 2)]</code></p>\n<p>Support to convert nested types is new in Robot Framework 6.0. Support for tuple literals is new in Robot Framework 7.4.</p>", "usages": ["Get Sheet As Table", "Get Sheet Names", "Get Table From Markdown", "Get Tables From Markdown"], "accepts": ["string", "Sequence"]}, {"type": "Standard", "name": "None", "doc": "<p>String <code>NONE</code> (case-insensitive) and the empty string are converted to the Python <code>None</code> object. Other values cause an error.</p>\n<p>Converting the empty string is new in Robot Framework 7.4.</p>", "usages": ["Convert Bytes To Markdown", "Convert File To Markdown", "Field Should Be", "Field Should Be Blank", "Get Table From Markdown", "Markdown Should Contain", "Markdown Should Match Regexp", "Markdown Should Not Contain", "Pdf Field Should Be Blank", "Set Converter Options", "Set Pdf Limits"], "accepts": ["string"]}, {"type": "Standard", "name": "Path", "doc": "<p>Strings are converted <a href=\"https://docs.python.org/library/pathlib.html\">Path</a> objects. On Windows <code>/</code> is converted to <code>\\</code> automatically.</p>\n<p>Examples: <code>/tmp/absolute/path</code>, <code>relative/path/to/file.ext</code>, <code>name.txt</code></p>", "usages": ["Convert File To Markdown", "Get Sheet As Table", "Get Sheet Names", "Pdf Field Should Be Blank"], "accepts": ["string", "PurePath"]}, {"type": "Standard", "name": "string", "doc": "<p>All arguments are converted to Unicode strings.</p>\n<p>Most values are converted simply by using <code>str(value)</code>. An exception is that bytes are mapped directly to Unicode code points with same ordinals. This means that, for example, <code>b\"hyv\\xe4\"</code> becomes <code>\"hyv\u00e4\"</code>.</p>\n<p>Converting bytes specially is new Robot Framework 7.4.</p>", "usages": ["Convert Bytes To Markdown", "Convert File To Markdown", "Field Should Be", "Field Should Be Blank", "Get Field Value", "Get Sheet As Table", "Get Sheet Names", "Get Table Cell", "Get Table From Markdown", "Get Tables From Markdown", "Markdown Should Contain", "Markdown Should Match Regexp", "Markdown Should Not Contain", "Pdf Field Should Be Blank"], "accepts": ["Any"]}]}
9
+ libdoc = {"specversion": 4, "name": "MarkItDownLibrary", "doc": "<p>Converts local documents to Markdown with MarkItDown, offline.</p>\n<p>Only local files and in-memory bytes are converted; URLs and URI strings are refused, and plugins, LLM and Azure features stay off.</p>", "version": "0.3.0", "generated": "2026-12-06T05:11:15+00:00", "type": "LIBRARY", "scope": "GLOBAL", "docFormat": "HTML", "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 22, "tags": [], "inits": [], "keywords": [{"name": "Convert Bytes To Markdown", "doc": "<p>Converts <code>data</code> to Markdown, using <code>extension</code> (for example <code>.pdf</code>) as the format hint.</p>", "shortdoc": "Converts ``data`` to Markdown, using ``extension`` (for example ``.pdf``) as the format hint.", "args": [{"name": "data", "doc": "", "type": {"name": "bytes", "typedoc": "bytes", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "data: bytes"}, {"name": "extension", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "extension: str"}, {"name": "encoding", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "encoding: str | None = None"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 55}, {"name": "Convert File To Markdown", "doc": "<p>Converts the local file <code>path</code> to Markdown and returns it.</p>", "shortdoc": "Converts the local file ``path`` to Markdown and returns it.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}, {"name": "encoding", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "encoding: str | None = None"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 42}, {"name": "Effective Pdf Limits", "doc": "<p>The PDF limits with the input limit raised to the size cap when the cap is larger.</p>", "shortdoc": "The PDF limits with the input limit raised to the size cap when the cap is larger.", "args": [], "returnType": {"name": "PdfLimits", "typedoc": null, "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 70}, {"name": "Field Should Be", "doc": "<p>Fails unless field <code>label</code> has the value <code>expected</code> (compared exactly).</p>\n<p>The lookup is as in <a href=\"#Get%20Field%20Value\" title=\"&quot;Get Field Value&quot; keyword\" class=\"name\">Get Field Value</a>.</p>\n<p>Example:</p>\n<table border=\"1\">\n<tr>\n<td>Field Should Be</td>\n<td>${markdown}</td>\n<td>Customer</td>\n<td>Ana Lima</td>\n</tr>\n</table>", "shortdoc": "Fails unless field ``label`` has the value ``expected`` (compared exactly).", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "label", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "label: str"}, {"name": "expected", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "expected: str"}, {"name": "separator", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": ":", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "separator: str = :"}, {"name": "next_line", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "next_line: bool = False"}, {"name": "occurrence", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "1", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "occurrence: int = 1"}, {"name": "ignore_case", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "ignore_case: bool = False"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 186}, {"name": "Field Should Be Blank", "doc": "<p>Fails unless field <code>label</code> is found and blank; the lookup is as in <a href=\"#Get%20Field%20Value\" title=\"&quot;Get Field Value&quot; keyword\" class=\"name\">Get Field Value</a>.</p>\n<p>A label that is missing fails too, so a typo never passes as blank.</p>\n<p>Example:</p>\n<table border=\"1\">\n<tr>\n<td>Field Should Be Blank</td>\n<td>${markdown}</td>\n<td>Total Amount</td>\n</tr>\n</table>", "shortdoc": "Fails unless field ``label`` is found and blank; the lookup is as in `Get Field Value`.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "label", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "label: str"}, {"name": "separator", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": ":", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "separator: str = :"}, {"name": "next_line", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "next_line: bool = False"}, {"name": "occurrence", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "1", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "occurrence: int = 1"}, {"name": "ignore_case", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "ignore_case: bool = False"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 172}, {"name": "Get Field Value", "doc": "<p>Returns the value of field <code>label</code> ('' when blank); a missing label fails.</p>\n<p>The label is looked up in this order: a table row whose first cell is the label (the value is the second cell), then a line that starts with <code>label</code> and <code>separator</code> (the value is the text after it), then, only with <code>next_line=True</code>, a line that is the label alone (the value is the next non-empty line). <code>Label:</code> with nothing after it also takes the next line then.</p>\n<p><code>occurrence</code> picks the nth match when the label repeats, counting from 1. <code>ignore_case</code> matches the label in any letter case. <code>separator</code> must not be empty.</p>\n<p>Example:</p>\n<table border=\"1\">\n<tr>\n<td>${total}=</td>\n<td>Get Field Value</td>\n<td>${markdown}</td>\n<td>Total Amount</td>\n<td></td>\n</tr>\n<tr>\n<td>${name}=</td>\n<td>Get Field Value</td>\n<td>${markdown}</td>\n<td>Name</td>\n<td>next_line=True</td>\n</tr>\n</table>", "shortdoc": "Returns the value of field ``label`` ('' when blank); a missing label fails.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "label", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "label: str"}, {"name": "separator", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": ":", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "separator: str = :"}, {"name": "next_line", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "next_line: bool = False"}, {"name": "occurrence", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "1", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "occurrence: int = 1"}, {"name": "ignore_case", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "ignore_case: bool = False"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 151}, {"name": "Get Pdf Field Names", "doc": "<p>Returns the qualified names of the PDF form fields; fails when there is no form.</p>\n<p>Needs the <code>acroform</code> extra (pypdf).</p>", "shortdoc": "Returns the qualified names of the PDF form fields; fails when there is no form.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}], "returnType": {"name": "list", "typedoc": "list", "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 220}, {"name": "Get Pdf Field Value", "doc": "<p>Returns the value of the PDF form field <code>name</code> ('' when blank).</p>\n<p><code>name</code> is the qualified name or the leaf name when only one field has it. Fails with the field names when the form has no such field. Needs the <code>acroform</code> extra (pypdf).</p>", "shortdoc": "Returns the value of the PDF form field ``name`` ('' when blank).", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}, {"name": "name", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "name: str"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 228}, {"name": "Get Sheet As Table", "doc": "<p>Returns one sheet as rows keyed by header; empty cells are blank and 12.0 reads as 12.</p>", "shortdoc": "Returns one sheet as rows keyed by header; empty cells are blank and 12.0 reads as 12.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}, {"name": "sheet", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "sheet: str"}], "returnType": {"name": "list", "typedoc": "list", "nested": [{"name": "dict", "typedoc": "dictionary", "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": false, "alias": null}], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 252}, {"name": "Get Sheet Names", "doc": "<p>Returns the sheet names of an XLSX file in workbook order.</p>", "shortdoc": "Returns the sheet names of an XLSX file in workbook order.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}], "returnType": {"name": "list", "typedoc": "list", "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 247}, {"name": "Get Table Cell", "doc": "<p>Returns the cell at body row <code>row</code> (0-based) and <code>column</code> (header name or 0-based number).</p>", "shortdoc": "Returns the cell at body row ``row`` (0-based) and ``column`` (header name or 0-based number).", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "row", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "row: int"}, {"name": "column", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "column: str | int"}, {"name": "table", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "0", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "table: int = 0"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 143}, {"name": "Get Table From Markdown", "doc": "<p>Returns one table as rows keyed by header; <code>header</code> picks the first table with that column.</p>", "shortdoc": "Returns one table as rows keyed by header; ``header`` picks the first table with that column.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "index", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "0", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "index: int = 0"}, {"name": "header", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "header: str | None = None"}], "returnType": {"name": "list", "typedoc": "list", "nested": [{"name": "dict", "typedoc": "dictionary", "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": false, "alias": null}], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 138}, {"name": "Get Tables From Markdown", "doc": "<p>Returns every pipe table as rows of cells, header row first.</p>", "shortdoc": "Returns every pipe table as rows of cells, header row first.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}], "returnType": {"name": "list", "typedoc": "list", "nested": [{"name": "list", "typedoc": "list", "nested": [{"name": "list", "typedoc": "list", "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": false, "alias": null}], "union": false, "alias": null}], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 133}, {"name": "Markdown Should Contain", "doc": "<p>Fails unless <code>expected</code> is in <code>markdown</code>; the failure shows the 3 closest lines only.</p>", "shortdoc": "Fails unless ``expected`` is in ``markdown``; the failure shows the 3 closest lines only.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "expected", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "expected: str"}, {"name": "ignore_case", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "ignore_case: bool = False"}, {"name": "normalize_whitespace", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "True", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "normalize_whitespace: bool = True"}, {"name": "msg", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "msg: str | None = None"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 104}, {"name": "Markdown Should Match Regexp", "doc": "<p>Fails unless <code>pattern</code> matches (multiline mode); returns the matched text.</p>", "shortdoc": "Fails unless ``pattern`` matches (multiline mode); returns the matched text.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "pattern", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "pattern: str"}, {"name": "msg", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "msg: str | None = None"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 124}, {"name": "Markdown Should Not Contain", "doc": "<p>Fails when <code>expected</code> is in <code>markdown</code>; the failure shows the 3 lines where it was found.</p>", "shortdoc": "Fails when ``expected`` is in ``markdown``; the failure shows the 3 lines where it was found.", "args": [{"name": "markdown", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "markdown: str"}, {"name": "expected", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "expected: str"}, {"name": "ignore_case", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "ignore_case: bool = False"}, {"name": "normalize_whitespace", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "True", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "normalize_whitespace: bool = True"}, {"name": "msg", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "msg: str | None = None"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 114}, {"name": "Pdf Field Should Be", "doc": "<p>Fails unless the PDF form field <code>name</code> has the value <code>expected</code>; see <a href=\"#Get%20Pdf%20Field%20Value\" title=\"&quot;Get Pdf Field Value&quot; keyword\" class=\"name\">Get Pdf Field Value</a>.</p>", "shortdoc": "Fails unless the PDF form field ``name`` has the value ``expected``; see `Get Pdf Field Value`.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}, {"name": "name", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "name: str"}, {"name": "expected", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "expected: str"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 240}, {"name": "Pdf Field Should Be Blank", "doc": "<p>Fails unless the PDF form field <code>label</code> is blank.</p>\n<p>The AcroForm is read when pypdf is installed and the PDF has a form; <code>label</code> is a field name, qualified (<code>form1.Total</code>) or the leaf name when only one field has it. Otherwise, or when no field has that name, the converted text is checked and a warning says so.</p>", "shortdoc": "Fails unless the PDF form field ``label`` is blank.", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}, {"name": "label", "doc": "", "type": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "label: str"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 202}, {"name": "Set Converter Options", "doc": "<p>Sets whether embedded data URIs stay in the output and the largest document size in bytes.</p>\n<p>Each call replaces both settings, so <code>keep_data_uris=True</code> alone restores the default cap of 50,000,000 bytes.</p>", "shortdoc": "Sets whether embedded data URIs stay in the output and the largest document size in bytes.", "args": [{"name": "keep_data_uris", "doc": "", "type": {"name": "bool", "typedoc": "boolean", "nested": [], "union": false, "alias": null}, "defaultValue": "False", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "keep_data_uris: bool = False"}, {"name": "max_bytes", "doc": "", "type": {"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, "defaultValue": "50000000", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "max_bytes: int = 50000000"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 75}, {"name": "Set Pdf Limits", "doc": "<p>Sets the PDF character limits; a PDF over a limit fails with a resource limit error.</p>\n<p>Each call replaces all three limits, so a call with no arguments restores the defaults.</p>", "shortdoc": "Sets the PDF character limits; a PDF over a limit fails with a resource limit error.", "args": [{"name": "max_chars_per_page", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "max_chars_per_page: int | None = None"}, {"name": "max_total_chars", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "max_total_chars: int | None = None"}, {"name": "max_output_chars", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "int", "typedoc": "integer", "nested": [], "union": false, "alias": null}, {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": "None", "kind": "POSITIONAL_OR_NAMED", "required": false, "repr": "max_output_chars: int | None = None"}], "returnType": {"name": "None", "typedoc": "None", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 87}, {"name": "Spreadsheet Markdown", "doc": "", "shortdoc": "", "args": [{"name": "path", "doc": "", "type": {"name": "Union", "typedoc": null, "nested": [{"name": "Path", "typedoc": "Path", "nested": [], "union": false, "alias": null}, {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}], "union": true, "alias": null}, "defaultValue": null, "kind": "POSITIONAL_OR_NAMED", "required": true, "repr": "path: Path | str"}], "returnType": {"name": "str", "typedoc": "string", "nested": [], "union": false, "alias": null}, "returnDoc": "", "raises": {}, "tags": [], "source": "D:\\Work\\personal-git-clones\\robotframework-markitdown\\src\\MarkItDownLibrary\\library.py", "lineno": 260}], "typedocs": [{"type": "Standard", "name": "boolean", "doc": "<p>Strings <code>TRUE</code>, <code>YES</code>, <code>ON</code>, <code>1</code> and possible localization specific \"true strings\" are converted to Boolean <code>True</code>, the empty string, strings <code>FALSE</code>, <code>NO</code>, <code>OFF</code> and <code>0</code> and possibly localization specific \"false strings\" are converted to Boolean <code>False</code>, and the string <code>NONE</code> is converted to the Python <code>None</code> object. Other strings and all other values are passed as-is, allowing keywords to handle them specially if needed. All string comparisons are case-insensitive.</p>\n<p>Examples: <code>TRUE</code> (converted to <code>True</code>), <code>off</code> (converted to <code>False</code>), <code>example</code> (used as-is)</p>", "usages": ["Field Should Be", "Field Should Be Blank", "Get Field Value", "Markdown Should Contain", "Markdown Should Not Contain", "Set Converter Options"], "accepts": ["string", "integer", "float", "None"]}, {"type": "Standard", "name": "bytes", "doc": "<p>Strings are converted to bytes so that each Unicode code point below 256 is directly mapped to a matching byte. Higher code points are not allowed. Robot Framework's <code>\\xHH</code> escape syntax is convenient with bytes having non-printable values.</p>\n<p>Examples: <code>good</code>, <code>hyv\u00e4</code> (same as <code>hyv\\xE4</code>), <code>\\x00</code> (the null byte)</p>\n<p>Integers and sequences of integers are converted to matching bytes directly. They must be in range 0-255.</p>\n<p>Examples: <code>0</code> (converted to the null byte), <code>[82, 70]</code> (converted to <code>RF</code>)</p>\n<p>Support for integers and sequences of integers is new in Robot Framework 7.4.</p>", "usages": ["Convert Bytes To Markdown"], "accepts": ["string", "bytearray", "Sequence", "integer"]}, {"type": "Standard", "name": "dictionary", "doc": "<p>Strings must be Python <a href=\"https://docs.python.org/library/stdtypes.html#dict\">dictionary</a> literals. They are converted to actual dictionaries using the <a href=\"https://docs.python.org/library/ast.html#ast.literal_eval\">ast.literal_eval</a> function. They can contain any values <code>ast.literal_eval</code> supports, including dictionaries and other collections.</p>\n<p>Any mapping is accepted and converted to a <code>dict</code>.</p>\n<p>If the type has nested types like <code>dict[str, int]</code>, items are converted to those types automatically. This in new in Robot Framework 6.0.</p>\n<p>Examples: <code>{'a': 1, 'b': 2}</code>, <code>{'key': 1, 'nested': {'key': 2}}</code></p>", "usages": ["Get Sheet As Table", "Get Table From Markdown"], "accepts": ["string", "Mapping"]}, {"type": "Standard", "name": "integer", "doc": "<p>Conversion is done using Python's <a href=\"https://docs.python.org/library/functions.html#int\">int</a> built-in function. Floating point numbers are accepted only if they can be represented as integers exactly. For example, <code>1.0</code> is accepted and <code>1.1</code> is not.</p>\n<p>It is possible to use hexadecimal, octal and binary numbers by prefixing values with <code>0x</code>, <code>0o</code> and <code>0b</code>, respectively. Spaces and underscores can be used as visual separators for digit grouping purposes.</p>\n<p>Examples: <code>42</code>, <code>-1</code>, <code>0b1010</code>, <code>10 000 000</code>, <code>0xBAD_C0FFEE</code></p>", "usages": ["Field Should Be", "Field Should Be Blank", "Get Field Value", "Get Table Cell", "Get Table From Markdown", "Set Converter Options", "Set Pdf Limits"], "accepts": ["string", "float"]}, {"type": "Standard", "name": "list", "doc": "<p>Strings must be Python <a href=\"https://docs.python.org/library/stdtypes.html#list\">list</a> or <a href=\"https://docs.python.org/library/stdtypes.html#tuple\">tuple</a> literals. They are converted using the <a href=\"https://docs.python.org/library/ast.html#ast.literal_eval\">ast.literal_eval</a> function and possible tuples converted further to lists. They can contain any values <code>ast.literal_eval</code> supports, including lists and other collections.</p>\n<p>If the argument is a list, it is used without conversion. Tuples and other sequences are converted to lists.</p>\n<p>If the type has nested types like <code>list[int]</code>, items are converted to those types automatically.</p>\n<p>Examples: <code>['one', 'two']</code>, <code>[('one', 1), ('two', 2)]</code></p>\n<p>Support to convert nested types is new in Robot Framework 6.0. Support for tuple literals is new in Robot Framework 7.4.</p>", "usages": ["Get Pdf Field Names", "Get Sheet As Table", "Get Sheet Names", "Get Table From Markdown", "Get Tables From Markdown"], "accepts": ["string", "Sequence"]}, {"type": "Standard", "name": "None", "doc": "<p>String <code>NONE</code> (case-insensitive) and the empty string are converted to the Python <code>None</code> object. Other values cause an error.</p>\n<p>Converting the empty string is new in Robot Framework 7.4.</p>", "usages": ["Convert Bytes To Markdown", "Convert File To Markdown", "Field Should Be", "Field Should Be Blank", "Get Table From Markdown", "Markdown Should Contain", "Markdown Should Match Regexp", "Markdown Should Not Contain", "Pdf Field Should Be", "Pdf Field Should Be Blank", "Set Converter Options", "Set Pdf Limits"], "accepts": ["string"]}, {"type": "Standard", "name": "Path", "doc": "<p>Strings are converted <a href=\"https://docs.python.org/library/pathlib.html\">Path</a> objects. On Windows <code>/</code> is converted to <code>\\</code> automatically.</p>\n<p>Examples: <code>/tmp/absolute/path</code>, <code>relative/path/to/file.ext</code>, <code>name.txt</code></p>", "usages": ["Convert File To Markdown", "Get Pdf Field Names", "Get Pdf Field Value", "Get Sheet As Table", "Get Sheet Names", "Pdf Field Should Be", "Pdf Field Should Be Blank", "Spreadsheet Markdown"], "accepts": ["string", "PurePath"]}, {"type": "Standard", "name": "string", "doc": "<p>All arguments are converted to Unicode strings.</p>\n<p>Most values are converted simply by using <code>str(value)</code>. An exception is that bytes are mapped directly to Unicode code points with same ordinals. This means that, for example, <code>b\"hyv\\xe4\"</code> becomes <code>\"hyv\u00e4\"</code>.</p>\n<p>Converting bytes specially is new Robot Framework 7.4.</p>", "usages": ["Convert Bytes To Markdown", "Convert File To Markdown", "Field Should Be", "Field Should Be Blank", "Get Field Value", "Get Pdf Field Names", "Get Pdf Field Value", "Get Sheet As Table", "Get Sheet Names", "Get Table Cell", "Get Table From Markdown", "Get Tables From Markdown", "Markdown Should Contain", "Markdown Should Match Regexp", "Markdown Should Not Contain", "Pdf Field Should Be", "Pdf Field Should Be Blank", "Spreadsheet Markdown"], "accepts": ["Any"]}]}
10
10
  </script>
11
11
  <link rel=icon type=image/x-icon href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKcAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAAqAAAAAAAAAAAAAAAAAAAALIAAAD/AAAA4AAAANwAAADcAAAA3AAAANwAAADcAAAA3AAAANwAAADcAAAA4AAAAP8AAACxAAAAAAAAAKYAAAD/AAAAuwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC/AAAA/wAAAKkAAAD6AAAAzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN8AAAD/AAAA+gAAAMMAAAAAAAAAAgAAAGsAAABrAAAAawAAAGsAAABrAAAAawAAAGsAAABrAAAADAAAAAAAAADaAAAA/wAAAPoAAADDAAAAAAAAAIsAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAANEAAAAAAAAA2gAAAP8AAAD6AAAAwwAAAAAAAAAAAAAAMgAAADIAAAAyAAAAMgAAADIAAAAyAAAAMgAAADIAAAAFAAAAAAAAANoAAAD/AAAA+gAAAMMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADaAAAA/wAAAPoAAADDAAAAAAAAADwAAAB8AAAAAAAAAGAAAABcAAAAAAAAAH8AAABKAAAAAAAAAAAAAAAAAAAA2gAAAP8AAAD6AAAAwwAAAAAAAADCAAAA/wAAACkAAADqAAAA4QAAAAAAAAD7AAAA/wAAALAAAAAGAAAAAAAAANoAAAD/AAAA+gAAAMMAAAAAAAAAIwAAAP4AAAD/AAAA/wAAAGAAAAAAAAAAAAAAAMkAAAD/AAAAigAAAAAAAADaAAAA/wAAAPoAAADDAAAAAAAAAAAAAAAIAAAAcAAAABkAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAAAAAAA2gAAAP8AAAD7AAAAywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN4AAAD/AAAAqwAAAP8AAACvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALIAAAD/AAAAsgAAAAAAAAC5AAAA/wAAAMoAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMkAAAD/AAAAvAAAAAAAAAAAAAAAAAAAAKwAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAArQAAAAAAAAAAwAMAAIABAAAf+AAAP/wAAD/8AAAgBAAAP/wAAD/8AAA//AAAJIwAADHEAAA//AAAP/wAAB/4AACAAQAAwAMAAA==">
12
12
  </head>
@@ -201,8 +201,8 @@ footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4p
201
201
  </div>
202
202
 
203
203
  <section id="keywords">
204
- <h2>Sixteen keywords. <mark class="hl">One import.</mark></h2>
205
- <p class="sub">Import <code>MarkItDownLibrary</code> in a suite. The list below is the libdoc keyword list of version 0.2.0.</p>
204
+ <h2>Nineteen keywords. <mark class="hl">One import.</mark></h2>
205
+ <p class="sub">Import <code>MarkItDownLibrary</code> in a suite. The list below is the libdoc keyword list of the current release.</p>
206
206
  <div class="table-wrap"><table class="kw">
207
207
  <thead><tr><th>Keyword</th><th>What it does</th></tr></thead>
208
208
  <tbody>
@@ -227,9 +227,12 @@ footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4p
227
227
  <tr><td><code>Get Sheet As Table</code></td><td>Returns one XLSX sheet as rows keyed by header.</td></tr>
228
228
  <tr class="grp"><td colspan="2">Settings</td></tr>
229
229
  <tr><td><code>Set Converter Options</code></td><td>Sets the size cap and whether data URIs are kept.</td></tr>
230
+ <tr><td><code>Get Pdf Field Names</code></td><td>Returns the names of a PDF's form fields.</td></tr>
231
+ <tr><td><code>Get Pdf Field Value</code></td><td>Returns one PDF form field's value.</td></tr>
232
+ <tr><td><code>Pdf Field Should Be</code></td><td>Passes when a PDF form field has the expected value.</td></tr>
230
233
  <tr><td><code>Set Pdf Limits</code></td><td>Sets the PDF character limits that MarkItDown enforces.</td></tr>
231
234
  </tbody></table></div>
232
- <p class="docs-link">Arguments and examples: <a href="https://github.com/ai94iq/robotframework-markitdown/blob/main/docs/MarkItDownLibrary.html">MarkItDownLibrary.html</a>, the libdoc keyword docs in the repo.</p>
235
+ <p class="docs-link">Keyword arguments and rules: the <a href="https://github.com/ai94iq/robotframework-markitdown#readme">README</a>, and <a href="https://github.com/ai94iq/robotframework-markitdown/blob/main/docs/MarkItDownLibrary.html">MarkItDownLibrary.html</a>, the libdoc keyword docs in the repo.</p>
233
236
  </section>
234
237
 
235
238
  <section id="offline">
@@ -237,13 +240,13 @@ footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4p
237
240
  <p class="sub">The library converts local files and bytes only. These are the defaults.</p>
238
241
  <div class="cols">
239
242
  <div><h3>Offline guard</h3><ul>
240
- <li>A path that starts with <code>file:</code>, <code>http:</code>, <code>https:</code> or <code>data:</code> is refused.</li>
243
+ <li>A string path that is a URI (<code>file:</code>, <code>http:</code>, <code>https:</code>, <code>data:</code> or any <code>scheme://</code>) or a network path is refused.</li>
241
244
  <li>Plugins, LLM and Azure features are off.</li>
242
245
  <li>Only the built-in converters run.</li>
243
246
  </ul></div>
244
247
  <div><h3>Size cap</h3><ul>
245
- <li>Each document is checked before conversion. The default cap is 50 MB.</li>
246
- <li><code>Set Converter Options</code> changes it.</li>
248
+ <li>Each document is checked before conversion. The default cap is 50,000,000 bytes, and Office files that expand past 10 times it are refused.</li>
249
+ <li><code>Set Converter Options</code> changes it; each call replaces both its settings.</li>
247
250
  <li>Embedded data URIs are dropped unless <code>keep_data_uris</code> is set.</li>
248
251
  </ul></div>
249
252
  <div><h3>PDF limits</h3><ul>
@@ -262,11 +265,11 @@ footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4p
262
265
  <div><h3>Lookup order</h3><ol>
263
266
  <li>A table row whose first cell is the label. The value is the second cell.</li>
264
267
  <li>A line that starts with the label and the separator (<code>:</code> by default). The value is the text after it.</li>
265
- <li>Only with <code>next_line=True</code>: a line that is the label alone. The value is the next non-empty line.</li>
268
+ <li>Only with <code>next_line=True</code>: a line that is the label alone. The value is the next non-empty line, or blank if that line ends with the separator or the label is last. A <code>Label:</code> line with nothing after it also takes the next line.</li>
266
269
  </ol></div>
267
270
  <div><h3>When it fails</h3><p>A label that is not found fails the test and shows the closest lines. A label that is found with no value returns an empty string.</p>
268
- <p>When a label repeats, <code>occurrence</code> picks the nth match, from 1. An <code>occurrence</code> past the last match fails and names the count.</p></div>
269
- <div><h3>AcroForm extra</h3><p><code>Pdf Field Should Be Blank</code> first looks for an AcroForm field with that name, when pypdf is installed. If the field is there, its value is checked. Otherwise the check runs on the converted text.</p>
271
+ <p>When a label repeats, <code>occurrence</code> picks the nth match, from 1, on <code>Get Field Value</code>, <code>Field Should Be</code> and <code>Field Should Be Blank</code>. An <code>occurrence</code> past the last match fails and names the count.</p></div>
272
+ <div><h3>AcroForm extra</h3><p><code>Pdf Field Should Be Blank</code> first looks for an AcroForm field with that name, when pypdf is installed. If the field is there, its value is checked; an unticked checkbox reads as blank. Otherwise the check runs on the converted text and a warning says so.</p>
270
273
  <p>The <code>acroform</code> extra adds pypdf.</p></div>
271
274
  </div>
272
275
  </section>
@@ -300,7 +303,7 @@ footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4p
300
303
  <h3>Import</h3>
301
304
  <pre>*** Settings ***
302
305
  Library MarkItDownLibrary</pre>
303
- <p>Needs Python 3.10 to 3.14. pip installs Robot Framework 7.5.1 and MarkItDown 0.1.10. Every keyword and rule is in the <a href="https://github.com/ai94iq/robotframework-markitdown#readme">README</a>. The list of changes is in the <a href="https://github.com/ai94iq/robotframework-markitdown/blob/main/CHANGELOG.md">changelog</a>.</p>
306
+ <p>Needs Python 3.10 to 3.14. pip installs Robot Framework 7.5.1 and MarkItDown 0.1.10. Every rule is in the <a href="https://github.com/ai94iq/robotframework-markitdown#readme">README</a>. The list of changes is in the <a href="https://github.com/ai94iq/robotframework-markitdown/blob/main/CHANGELOG.md">changelog</a>.</p>
304
307
  </div>
305
308
  </div>
306
309
  </section>