diff --git a/tests/test_workflows.py b/tests/test_workflows.py index 6340fc0e0f..372505c773 100644 --- a/tests/test_workflows.py +++ b/tests/test_workflows.py @@ -325,3 +325,13 @@ def test_get_fields(): # Cleanup os.remove("tmp.txt") + + +def test_scale(): + url = "https://corpora.tika.apache.org/base/docs/govdocs1/999/999944.pdf" + name = "tika-999944.pdf" + data = BytesIO(get_pdf_from_url(url, name=name)) + reader = PdfReader(data) + + for page in reader.pages: + page.scale(sx=2, sy=3)