Fehlerhafte PDF-Ausnahme
Der Fehler "ERROR-002" tritt auf, wenn der Parameter pdf_file in der Anfrage POST nicht als PDF erkannt wird. Stellen Sie sicher, dass Sie eine gültige PDF-Datei mit type=application/pdf haben.
Empfohlene Lösung
pdf_file vom Typ application/pdf in der Anfrage POST 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'
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'
Beachten Sie die letzte Zeile für die korrekte Verwendung:
-F 'pdf_file=@YOUR_PDF_DOCUMENT.pdf;type=application/pdf'

