BAD PDF Exception
The "ERROR-002" error occurs when the pdf_file
parameter in the POST
request was is not detected as a pdf. Ensure you have a valid PDF with type=application/pdf
Recommended Resolution
Tips
pdf_file
parameter of type: application/pdf
in the POST
request.Example of pdf_file
proper syntax 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'
Refer to the final line for proper usage:
-F 'pdf_file=@YOUR_PDF_DOCUMENT.pdf;type=application/pdf'