Use case
適合外發給客戶、供應商或公開下載前清理作者、軟體與時間戳。網站工具適合人工確認,API 適合穩定重複的伺服器端流程。
PDF Tools API
把移除 PDF 元資料接進後端、批次任務或產品流程,不需要自行維護 PDF 處理服務。
Credits
1 Credit / call
1 Credit per successful API request. Failed processing attempts are refunded automatically.
Pricing
1,000 Credits = $1
Every signed-in user receives 100 free API Credits each month.
Endpoint
/api/external/pdf-tools/remove-metadataUse your API Key in the x-api-key header.
適合外發給客戶、供應商或公開下載前清理作者、軟體與時間戳。網站工具適合人工確認,API 適合穩定重複的伺服器端流程。
curl -X POST https://itextmaster.com/api/external/pdf-tools/remove-metadata \
-H 'x-api-key: YOUR_API_KEY' \
-F 'file=@input.pdf;type=application/pdf' \
-F 'options={}' \
--output metadata-removed.pdfcurl -X POST https://itextmaster.com/api/external/pdf-tools/remove-metadata \
-H 'x-api-key: YOUR_API_KEY' \
-F 'file=@input.pdf;type=application/pdf' \
-F 'options={}' \
--output metadata-removed.pdfcurl -X POST https://itextmaster.com/api/external/pdf-tools/remove-metadata \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"file": { "name": "input.pdf", "dataBase64": "JVBERi0xLjcK..." },
"options": {}
}' \
--output metadata-removed.pdfimport { writeFile } from 'node:fs/promises';
const response = await fetch('https://itextmaster.com/api/external/pdf-tools/remove-metadata', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': process.env.ITEXTMASTER_API_KEY
},
body: JSON.stringify({
file: { name: 'input.pdf', dataBase64: 'JVBERi0xLjcK...' },
options: {}
})
});
if (!response.ok) {
throw new Error(await response.text());
}
await writeFile('metadata-removed.pdf', Buffer.from(await response.arrayBuffer()));import os
import requests
response = requests.post(
'https://itextmaster.com/api/external/pdf-tools/remove-metadata',
headers={
'Content-Type': 'application/json',
'x-api-key': os.environ['ITEXTMASTER_API_KEY'],
},
json={
'file': {'name': 'input.pdf', 'dataBase64': 'JVBERi0xLjcK...'},
'options': {}
},
)
response.raise_for_status()
with open('metadata-removed.pdf', 'wb') as f:
f.write(response.content)invalid_api_keyx-api-key 缺少、無效或已輪換。
insufficient_credits帳號 API Credits 不足。
pdf_tool_processing_failed檔案、參數或 PDF 結構無法處理;失敗處理會自動退回 Credits。
metadata-removed.pdf,回應標頭會列出本次扣除的 Credits 與剩餘額度。
Content-TypeContent-DispositionX-Credits-ChargedX-Credit-Balance成功的 移除 PDF 元資料 API 請求會使用 API Credits;處理失敗會自動退回。每位登入使用者每月有 100 個免費 API Credits,1,000 Credits = $1。
瀏覽器本地處理的網站工具不使用 API Credits;只有帶 API Key 的自動化請求才計費。
不建議。API Key 應保存在伺服器端、排程任務或後端自動化腳本中。
Create an API Key, test 移除 PDF 元資料 API, and buy more Credits only when automation volume grows.