KÖTÜ PDF İstisnası
"ERROR-002" hatası, pdf_file parametresi, POST isteğinde PDF olarak algılanmadığında meydana gelir. Geçerli bir PDF'ye type=application/pdf ile sahip olduğunuzdan emin olun.
Önerilen Çözüm
POST isteği için pdf_file parametresinin application/pdf türünde olduğundan 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 başvurun:
-F 'pdf_file=@YOUR_PDF_DOCUMENT.pdf;type=application/pdf'





