Remove Restrictions API

This instruction is written for Remove Restrictions Plugin - API version 1.

URL:

http://pdfpirate.org/plugins/remove_restrictions/apis/v1/remove_restrictions.html

HTTP method:

MIME-encoded POST

Parameters:

  • format: Return download path in 'text' format.
  • file: A PDF file with select, copy or printing restrictions.

Example query:

curl -F format=text -F file=@/tmp/test.pdf http://pdfpirate.org/plugins/remove_restrictions/apis/v1/remove_restrictions.html

Example response (text):

/storage/remove_restrictions/f43be1de-a1d3-4b2d-a22e-abca6011feb8/pdfpirate.org_unlocked.pdf

Caveats:

  • In case of an error, string 'Error!' will be returned instead of the download path.
  • Ignore the new line and white characters present before path in the response. This is a bug and it will be fixed in the next versions of API.
  • If you want to use other instance of PDFpirate than pdfpirate.org, replace the domain part of the url above with the correct domain.
  • By using this API you agree to these Terms of Service.