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

Can't add an image watermark (Error: DamagedFile) #13

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

Can't add an image watermark (Error: DamagedFile) #13

brivadeneira opened this issue Jan 4, 2021 · 1 comment

Comments

@brivadeneira
Copy link

Hello,

watermark tool works perfectly with a text mark,
but it doesn't with an image:

from pylovepdf.tools.watermark import Watermark

t = Watermark(public_key, verify_ssl=True, proxies='')
t.add_file('document.pdf')
t.debug = False
t.image = 'image.png'

t.set_output_folder('./')

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

the result is:

Uploading file...
File uploaded! Below file stats:
Error type: ProcessingError
message: This task can't be processed. Check why in the params.
text: ['Text cannot be blank.']
status: 400

no file to be downloaded
Task delete status: 200

@vasugamdha
Copy link

I guess that you uploaded a damaged file or maybe a protected one, which led you to status 400.
It's working fine for me.

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

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