Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crop box parameter order in README.md #175

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

jmpfar
Copy link
Contributor

@jmpfar jmpfar commented Feb 21, 2023

The order should be (left, bottom, right, top) as in

parser.add_argument(
"--crop",
nargs = 4,
type = float,
default = (0, 0, 0, 0),
help = "Amount to crop from (left, bottom, right, top)",

and

crop (typing.Tuple[float, float, float, float]):
Amount in PDF canvas units to cut off from page borders (left, bottom, right, top).
Crop is applied after rotation.

@mara004
Copy link
Member

mara004 commented Feb 21, 2023

Uh, same problem as #174.
I'm sorry. Looks like I'd forgotten to update the readme at some point...

@mara004 mara004 merged commit 240772a into pypdfium2-team:main Feb 21, 2023
@jmpfar
Copy link
Contributor Author

jmpfar commented Feb 21, 2023

Thanks!

@jmpfar jmpfar deleted the patch-1 branch February 21, 2023 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants