BAD PDF Exception
Der Fehler "ERROR-002" tritt auf, wenn der pdf_file
-Parameter in der POST
-Anfrage nicht als PDF erkannt wird. Stellen Sie sicher, dass Sie ein gültiges PDF mit type=application/pdf
haben
Empfohlene Auflösung
Tipps
pdf_file
vom Typ application/pdf
in der POST
-Anfrage ist.Beispiel für die korrekte Syntax von pdf_file
in cURL:
curl -X POST 'https://api.securedoc.com/v1/document-services/pdfs/redact-text?words_to_redact=IRON' \
-H 'accept: */*' \
-H 'Content-Type: multipart/form-data' \
-F 'pdf_file=@YOUR_PDF_DOCUMENT.pdf;type=application/pdf'
Die korrekte Verwendung ist in der letzten Zeile beschrieben:
-F 'pdf_file=@YOUR_PDF_DOCUMENT.pdf;type=application/pdf'