Skip to content

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

@brivadeneira

Description

@brivadeneira

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions