diff --git a/dangerzone/conversion/doc_to_pixels.py b/dangerzone/conversion/doc_to_pixels.py index 38f1615..48f301d 100644 --- a/dangerzone/conversion/doc_to_pixels.py +++ b/dangerzone/conversion/doc_to_pixels.py @@ -254,7 +254,7 @@ class DocumentToPixels(DangerzoneConverter): timeout=timeout, ) - search = re.search(r"Pages:\s*(\d+)\s*\n", stdout.decode()) + search = re.search(r"^Pages:\s*(\d+)\s*\n", stdout.decode(), re.MULTILINE) if search is not None: num_pages: int = int(search.group(1)) else: