Ko te tino wātea Whakataki PDF
Ka tangohia te kupu whakarongo i tētahi PDF ka taea e koe te whakatuwheratia, te tāpiri rānei i tētahi hei pare i a ia - wātea, kāore he tohu wai, kāore he whakaingoatanga.
He pēhea te mahi
- Whakarewa. Ka kōwhiria te PDF me te kōwhiri i te Whakamute kuputuhi, Tāpiri rānei i te kuputuhi.
- Ka tāuru te kupu whakarongo. Type i te kuputuhi o nāianei hei whakawātea, he kuputuhi hōu rānei hei pare i te pūranga.
- Whakahua. Ka whakawāteatia ā-māori, ka parea rānei e te PDF ngā tāurunga hou.
Mo tēnei utauta
Ka tangohia e te Whakawhāiti PDF te kuputuhi mai i tētahi PDF ka taea e koe te whakatuwheratia, nā reira ka whakatūpatotia koe i ia wā. Ka tāuru te kuputuhi o nāianei, ā, ka whiwhi tārua kāore i te parea. Ka mahi te utauta ōrite i te huarahi kē: ka kōwhiria te Tāpiri, ā, ka whakawaeheretia te PDF me tētahi kuputuhi hou. Ka whakawātea anake i ngā tuhinga ka taea e koe te tuku i te kuputuhi mō - kāore he tikanga hei whakarewa ki tētahi PDF kāore e taea te whakatuwheratia. Kāore he tohu wai, kāore he whakaingoatanga, ka tuwhera i roto i te pūmahara, ā, ka whakawāteatia.
He aha te whakamahinga o te tangata mo ia
- Ka whakakore te tono i tētahi kuputuhi i runga i tētahi PDF e noho ana ki a koe
- Ka tangohia tētahi kupu whakarongo e mōhiotia ana i mua i te whakakotahitanga, i te whakarerekētanga rānei
- E tāpiri ana i tētahi kuputuhi hei pare i tētahi tuhinga āhuahira
- Whakamau anō i tētahi PDF me tētahi kuputuhi hōu
Ka whakawhanakehia te API
Ka whakamātautau tēnei utauta i tōna ake waehere. Whakahaua tētahi tono POST ki te wāhi mutunga i raro iho, ā, ka whiwhi i te hua ōrite te utauta whatunga e whakaputaina ana. He whāiti te mokatere i ia IP, ā, kāore e hiahiatia he whakaingoatanga - Ka tae mai ngā kī API mō ngā tepenga tiketike ake.
https://best.free/api/tools/pdf-unlock/
| Parameter | Hei tauira | E hiahiatia ana | Whakatuhi |
|---|---|---|---|
file (Te tautuhi) |
protected.pdf |
He | PDF, ≤25 MB. |
action |
remove |
Kāore | "remove" to strip a password, "add" to set one. |
password |
currentpass |
Kāore | Current password (required to remove/re-protect). |
new_password |
newpass |
Kāore | New password when action is "add". |
curl -X POST https://best.free/api/tools/pdf-unlock/ \
-F 'file=@protected.pdf' \
-F 'action=remove' \
-F 'password=currentpass' \
-F 'new_password=newpass' \
-o unlocked.pdf
import requests
files = {"file": open("protected.pdf", "rb")}
data = {"action": "remove", "password": "currentpass", "new_password": "newpass"}
r = requests.post("https://best.free/api/tools/pdf-unlock/", files=files, data=data)
with open("unlocked.pdf", "wb") as out:
out.write(r.content)
const fd = new FormData();
fd.append("file", fileInput.files[0]);
fd.append("action", "remove");
fd.append("password", "currentpass");
fd.append("new_password", "newpass");
const r = await fetch("https://best.free/api/tools/pdf-unlock/", { method: "POST", body: fd });
const blob = await r.blob(); // the unlocked.pdf
Whakautu: The PDF with its password removed (or added).