diff --git a/dangerzone/isolation_provider/base.py b/dangerzone/isolation_provider/base.py index e761c23b5..43eb4b973 100644 --- a/dangerzone/isolation_provider/base.py +++ b/dangerzone/isolation_provider/base.py @@ -146,7 +146,7 @@ def ocr_page(self, pixmap: fitz.Pixmap, ocr_lang: str) -> bytes: tessdata=get_tessdata_dir(), ) - def _pixels_to_pdf( + def pixels_to_pdf_page( self, untrusted_data: bytes, untrusted_width: int, @@ -224,7 +224,7 @@ def _convert( percentage += step self.print_progress(document, False, text, percentage) - page_pdf = self._pixels_to_pdf( + page_pdf = self.pixels_to_pdf_page( untrusted_pixels, width, height,