PDF 密碼錯誤異常
This article was translated from English: Does it need improvement?
TranslatedView the article in English
"ERROR-003" 錯誤發生於 user_password 和/或 owner_password 參數在 POST 請求中不正確時。
建議的解決方案
- 檢查使用者和擁有者密碼。 使用者密碼是用於查看PDF檔案的密碼,而擁有者密碼是允許您修改PDF檔案的密碼。在某些情況下,它們可能是相同的密碼,但適當保護的PDF應具有不同的值。
cURL中正確密碼應用範例
以下的 curl 指令展示了如何執行 POST 請求,以便在提供使用者和擁有者密碼的情況下編輯PDF中的文字。
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 -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'SHELL
-F 'words_to_redact="IRON"'指定PDF中要編輯的單詞。-F 'user_password="1234"'提供查看PDF的密碼。-F 'owner_password="5678"'提供允許修改PDF的密碼。-F 'pdf_file=@YOUR_PDF_DOCUMENT.pdf;type=application/pdf'說明如何將PDF文件附加到請求。
提示請確保提供的密碼與您PDF文件中設置的密碼匹配。不正確的密碼將導致"ERROR-003" 回應。





