From 70605ae240cf1a4bb6578fcf75e95d0682b5fb92 Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Mon, 4 Jul 2022 22:46:14 +0200 Subject: [PATCH] TST: Scale page (indirect rect object) (#1057) --- tests/test_workflows.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_workflows.py b/tests/test_workflows.py index 6340fc0e0..8ad201b32 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_rectangle_indirect_object(): + 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)