KÖTÜ PDF İstisnası
"ERROR-002" hatası, pdf_file parametresi POST isteğinde PDF olarak algılanmadığında ortaya çıkar. type=application/pdf ile geçerli bir PDF'ye sahip olduğunuzdan emin olun.
Önerilen Çözüm
pdf_file parametresinin application/pdf türünde olduğundan POST isteğinde emin olun.
cURL'de pdf_file doğru sözdizimi örneği:
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'Doğru kullanım için son satıra bakın:
-F 'pdf_file=@YOUR_PDF_DOCUMENT.pdf;type=application/pdf'





