PDF BAD PASSWORD Exception

This article was translated from English: Does it need improvement?
Translated
View the article in English

"ERROR-003" 錯誤發生於 POST 請求中的 user_password 和/或 owner_password 參數不正確時。

建議的解析度

提示
檢查 USER 和 OWNER 密碼。User 密碼是你用來查看 PDF 檔案的密碼,而 Owner 密碼則是允許你更改 PDF 檔案的密碼。

在某些情況下,它們可能是相同的密碼,但妥善保護的 PDF 檔案應該有不同的值。

在cURL中正確應用密碼的範例:

curl -X POST 'https://api.securedoc.com/v1/document-services/pdfs/redact-text' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'words_to_redact="IRON"' \
  -F 'user_password="1234"' \
  -F 'owner_password="5678"' \
  -F 'pdf_file=@YOUR_PDF_DOCUMENT.pdf;type=application/pdf'
CURL

請參考以下行以正確使用:

-F 'user_password="1234"' \

-F 'owner_password="5678"' \