chore(pdfengines): better custom error message if invalid args

This commit is contained in:
Julien Neuhart
2025-09-03 20:41:30 +02:00
parent 84ca118524
commit d6ebc7f230
6 changed files with 27 additions and 20 deletions

View File

@@ -54,7 +54,7 @@ Feature: /forms/pdfengines/encrypt
Then the response status code should be 400
Then the response body should match string:
"""
Invalid form data: both 'userPassword' and 'ownerPassword' form fields must be provided and different
pdftk: both 'userPassword' and 'ownerPassword' must be provided and different. Consider switching to another PDF engine if this behavior does not work with your workflow
"""
Scenario: POST /forms/pdfengines/encrypt (PDFtk - both user and owner passwords)