diff --git a/monopoly/pdf.py b/monopoly/pdf.py index b50ba7c1..99aeeee3 100644 --- a/monopoly/pdf.py +++ b/monopoly/pdf.py @@ -42,7 +42,6 @@ def __init__( self.page_range = slice(*pdf_config.page_range) self.page_bbox: tuple = pdf_config.page_bbox self.brute_force_config = brute_force_config - self.remove_vertical_text = True def open(self, brute_force_config: BruteForceConfig = None): """ @@ -97,9 +96,8 @@ def get_pages(self, brute_force_config=None) -> list[PdfPage]: logger.debug("Cropping page") page.set_cropbox(self.page_bbox) - if self.remove_vertical_text: - logger.debug("Removing vertical text") - page = self._remove_vertical_text(page) + logger.debug("Removing vertical text") + page = self._remove_vertical_text(page) pdf_byte_stream = BytesIO(document.tobytes()) pdf = pdftotext.PDF(pdf_byte_stream, physical=True)