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

How to rotate -90° (or 270) a PDF File? #12

Open
brivadeneira opened this issue Jan 4, 2021 · 1 comment
Open

How to rotate -90° (or 270) a PDF File? #12

brivadeneira opened this issue Jan 4, 2021 · 1 comment

Comments

@brivadeneira
Copy link

Hello!

First at all, thanks for this amazing wrapper!

Can't find the way to to rotate -90° (or 270) a PDF File,
I tried with -90, 270 and 'left', any of them modifies the position.

@vasugamdha
Copy link

It is pretty straightforward for all tasks.

The below code works fine for me.

from pylovepdf.tools.rotate import Rotate

t = Rotate('project_public_xxxxxxx', verify_ssl=True, proxies=None)
t.add_file('/content/demo.pdf')
t.file.rotate = 270
t.debug = False
t.set_output_folder('output_directory')

t.execute()
t.download()
t.delete_current_task()

For a demo, you can try running the cells in this colab

If your issue gets solved, please close it.

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

No branches or pull requests

2 participants