Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions unstructured/partition/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
PartitionStrategy,
)
from unstructured.partition.utils.sorting import coord_has_valid_points, sort_page_elements
from unstructured.patches.pdfminer import patch_psparser
from unstructured.telemetry import (
mark_partition_ocr_used,
partition_runtime_telemetry,
Expand All @@ -100,12 +99,6 @@
from unstructured_inference.inference.layoutelement import LayoutElement


# Correct a bug that was introduced by a previous patch to
# pdfminer.six, causing needless and unsuccessful repairing of PDFs
# which were not actually broken.
patch_psparser()


RE_MULTISPACE_INCLUDING_NEWLINES = re.compile(pattern=r"\s+", flags=re.DOTALL)
# Regex patterns for counting graphics and text operators in PDF content streams.
GRAPHICS_OPS_PATTERN = re.compile(
Expand Down
Empty file removed unstructured/patches/__init__.py
Empty file.
76 changes: 0 additions & 76 deletions unstructured/patches/pdfminer.py

This file was deleted.

Loading