تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

change-pdf-permissions

بواسطة crossservicesolutions

PDF & Documents
847التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Change a PDF’s permission flags (edit, print, copy, forms, annotations, etc.) by uploading it to the Solutions API.

الوصف

ما الذي تفعله هذه المهارة

Changes the permission flags of a PDF file, controlling whether recipients can print, edit, copy, fill forms, or extract content. Uploads the file to the Cross-Service Solutions API, polls for job completion, and returns a download URL for the updated PDF.

Handles the full upload-poll-download cycle automatically, so users get a modified PDF without needing local PDF tools or libraries.

متى تستخدمها

  • Locking a contract PDF to prevent editing before sending to a client
  • Allowing printing but blocking content extraction on a report
  • Restricting form filling on a finalized document
  • Enabling accessibility extraction while disabling general copy-paste
  • Preparing read-only PDFs for public distribution

مثال على سير العمل

الإدخال

User asks: 'Make this contract.pdf print-only, no editing or copying'

الوكيل
  1. 1

    Accept the PDF file and resolve the desired permission flags from the user's request

  2. 2

    Prompt for or retrieve the Cross-Service Solutions API key

  3. 3

    POST the file and permission flags to /api/75 as multipart/form-data

  4. 4

    Poll GET /api/<job_id> until status indicates completion

  5. 5

    Return the download URL and a summary of the applied permissions

الإخراج

{ "job_id": 7501, "status": "done", "download_url": "https://.../permissions.pdf", "permissions": { "canModify": false, "canPrint": true, "canExtractContent": false } }

المتطلبات

  • Cross-Service Solutions API key (register at https://login.cross-service-solutions.com/register)

التثبيت

clawhub install crossservicesolutions/change-pdf-permissions

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط