Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita201407

Browse files
committed
Simplify ch 13 second challenge solution
1 parent1bac150 commita201407

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎ch13-interact-with-pdf-files/7-challenge-unscramble-a-pdf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ def get_page_text(page):
2121

2222
forpageinpages:
2323
rotation_degrees=page["/Rotate"]
24-
ifrotation_degrees<0:
25-
page.rotateClockwise(-rotation_degrees)
26-
elifrotation_degrees>0:
24+
ifrotation_degrees!=0:
2725
page.rotateCounterClockwise(rotation_degrees)
2826
pdf_writer.addPage(page)
2927

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp