Skip to content

Commit

Permalink
TST: Scale page
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Jul 4, 2022
1 parent 4a62a47 commit fac48fa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit fac48fa

Please sign in to comment.