PDF 密碼錯誤例外
This article was translated from English: Does it need improvement?
TranslatedView the article in English
當 POST 請求中的 user_password 和/或 owner_password 參數不正確時,會發生"ERROR-003"錯誤。
建議的解決方案
- 請同時檢查 USER 和 OWNER 密碼。 "使用者密碼"是您用來檢視 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"錯誤回應。





