Skip to content

Commit

Permalink
Update parition_pdf docstring (#2292)
Browse files Browse the repository at this point in the history
add `extract_element_types` to partition_pdf docstring and reword other
parameter descriptions
  • Loading branch information
Coniferish authored Dec 19, 2023
1 parent 0c7f64e commit 09f86f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.11.6-dev0
## 0.11.6-dev1

### Enhancements

Expand Down
2 changes: 1 addition & 1 deletion unstructured/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.11.6-dev0" # pragma: no cover
__version__ = "0.11.6-dev1" # pragma: no cover
10 changes: 7 additions & 3 deletions unstructured/partition/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,15 @@ def partition_pdf(
metadata_last_modified
The last modified date for the document.
extract_images_in_pdf
If True and strategy=hi_res, any detected images will be saved in the path specified by
Only applicable if `strategy=hi_res`.
If `True`, any detected images will be saved in the path specified by
image_output_dir_path.
extract_element_types
Only applicable if `strategy=hi_res`.
Images of the element type(s) defined in this list will be saved to `image_output_dir_path`.
image_output_dir_path
If extract_images_in_pdf=True and strategy=hi_res, any detected images or tables
will be saved in the given path
Only applicable if `strategy=hi_res`.
The path for saving images when using `extract_images_in_pdf` or `extract_element_types`.
"""

exactly_one(filename=filename, file=file)
Expand Down

0 comments on commit 09f86f2

Please sign in to comment.